| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Index::MonotoneChain |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| Sv new(SV*, Array pts, std::size_t start, std::size_t end) { |
| 5 |
2 |
▶ | auto seq = Helper::convert_coords(pts); |
Branch: 2 branches
| Branch | True | False | Total |
| auto seq = Helper::convert_coords(pts); |
2 |
0 |
2 |
| auto seq = Helper::convert_coords(pts); |
2 |
0 |
2 |
|
| 6 |
2 |
▶ | auto seq_ptr = seq.clone(); |
Branch: 1 branch
| Branch | True | False | Total |
| auto seq_ptr = seq.clone(); |
2 |
0 |
2 |
|
| 7 |
2 |
▶ | auto payload = new MonotoneChain_payload(); |
Branch: 1 branch
| Branch | True | False | Total |
| auto payload = new MonotoneChain_payload(); |
2 |
0 |
2 |
|
| 8 |
2 |
| payload->seq.reset(seq_ptr); |
| 9 |
|
| |
| 10 |
2 |
▶ | Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
Branch: 5 branches
| Branch | True | False | Total |
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
2 |
0 |
2 |
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
2 |
0 |
2 |
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
2 |
0 |
2 |
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
2 |
0 |
2 |
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
0 |
0 |
0 |
|
| 11 |
2 |
▶ | wrapped.payload_attach(payload, &payload_marker_MonotoneChain); |
Branch: 1 branch
| Branch | True | False | Total |
| wrapped.payload_attach(payload, &payload_marker_MonotoneChain); |
2 |
0 |
2 |
|
| 12 |
|
| |
| 13 |
2 |
▶ | RETVAL = wrapped.ref(); |
Branch: 2 branches
| Branch | True | False | Total |
| RETVAL = wrapped.ref(); |
2 |
0 |
2 |
| RETVAL = wrapped.ref(); |
2 |
0 |
2 |
|
| 14 |
|
| } |
| 15 |
|
| |
| 16 |
|
| Array getChains(Array pts) { |
| 17 |
1 |
▶ | auto seq = Helper::convert_coords(pts); |
Branch: 2 branches
| Branch | True | False | Total |
| auto seq = Helper::convert_coords(pts); |
1 |
0 |
1 |
| auto seq = Helper::convert_coords(pts); |
1 |
0 |
1 |
|
| 18 |
1 |
| std::vector<MonotoneChain*> v; |
| 19 |
1 |
▶ | MonotoneChainBuilder::getChains(&seq, NULL, v); |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChainBuilder::getChains(&seq, NULL, v); |
1 |
0 |
1 |
|
| 20 |
|
| |
| 21 |
1 |
▶ | Array result = Array::create(v.size()); |
Branch: 1 branch
| Branch | True | False | Total |
| Array result = Array::create(v.size()); |
1 |
0 |
1 |
|
| 22 |
6 |
▶ | for(auto mc: v) { |
Branch: 1 branch
| Branch | True | False | Total |
| for(auto mc: v) { |
5 |
1 |
6 |
|
| 23 |
5 |
▶ | result.push(xs::out<MonotoneChain*>(mc)); |
Branch: 2 branches
| Branch | True | False | Total |
| result.push(xs::out<MonotoneChain*>(mc)); |
5 |
0 |
5 |
| result.push(xs::out<MonotoneChain*>(mc)); |
5 |
0 |
5 |
|
| 24 |
|
| } |
| 25 |
1 |
▶ | RETVAL = result; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = result; |
1 |
0 |
1 |
|
| 26 |
|
| } |
| 27 |
|
| |
| 28 |
|
| Envelope* MonotoneChain::getEnvelope () { |
| 29 |
1 |
| RETVAL = new Envelope(THIS->getEnvelope()); |
| 30 |
1 |
▶ | } |
Branch: 5 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
0 |
0 |
0 |
|
| 31 |
|
| |
| 32 |
1 |
| size_t MonotoneChain::getStartIndex() |
| 33 |
|
| |
| 34 |
1 |
| size_t MonotoneChain::getEndIndex() |
| 35 |
|
| |
| 36 |
|
| LineSegment* MonotoneChain::getLineSegment(std::size_t index){ |
| 37 |
2 |
| LineSegment ls; |
| 38 |
2 |
▶ | THIS->getLineSegment(index, ls); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->getLineSegment(index, ls); |
2 |
0 |
2 |
|
| 39 |
2 |
▶ | RETVAL = new LineSegment(ls); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = new LineSegment(ls); |
2 |
0 |
2 |
|
| 40 |
2 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
0 |
0 |
0 |
|
| 41 |
|
| |
| 42 |
|
| Array MonotoneChain::getCoordinates () { |
| 43 |
1 |
▶ | auto smart_ptr = THIS->getCoordinates(); |
Branch: 1 branch
| Branch | True | False | Total |
| auto smart_ptr = THIS->getCoordinates(); |
1 |
0 |
1 |
|
| 44 |
1 |
▶ | RETVAL = Helper::convert_copy(smart_ptr.get()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Helper::convert_copy(smart_ptr.get()); |
1 |
0 |
1 |
|
| 45 |
|
| } |
| 46 |
|
| |
| 47 |
|
| void MonotoneChain::computeOverlaps(MonotoneChain &mc, MonotoneChainOverlapAction &mco) { |
| 48 |
1 |
| THIS->computeOverlaps(&mc, &mco); |
| 49 |
|
| } |
| 50 |
|
| |
| 51 |
1 |
| void MonotoneChain::setId(int nId) |
| 52 |
|
| |
| 53 |
1 |
| int MonotoneChain::getId() |
| 54 |
|
| |
| 55 |
|
| BOOT { |
| 56 |
46 |
▶ | xs::exp::autoexport(Stash(__PACKAGE__)); |
Branch: 2 branches
| Branch | True | False | Total |
| xs::exp::autoexport(Stash(__PACKAGE__)); |
46 |
0 |
46 |
| xs::exp::autoexport(Stash(__PACKAGE__)); |
46 |
0 |
46 |
|
| 57 |
46 |
| payload_marker_MonotoneChain.svt_free = payload_marker_MonotoneChain_free; |
| 58 |
|
| } |