| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::NodedSegmentString |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| NodedSegmentString* new(SV*, Array coords) { |
| 5 |
15 |
| auto seq = Helper::convert_coords(coords); |
| 6 |
15 |
▶ | auto v = new NodedSegmentString(seq.clone(), NULL); |
Branch: 2 branches
| Branch | True | False | Total |
| auto v = new NodedSegmentString(seq.clone(), NULL); |
15 |
0 |
15 |
| auto v = new NodedSegmentString(seq.clone(), NULL); |
15 |
0 |
15 |
|
| 7 |
15 |
▶ | RETVAL = v; |
Branch: 3 branches
| Branch | True | False | Total |
| RETVAL = v; |
15 |
0 |
15 |
| RETVAL = v; |
15 |
0 |
15 |
| RETVAL = v; |
0 |
0 |
0 |
|
| 8 |
15 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
15 |
0 |
15 |
|
| 9 |
|
| |
| 10 |
|
| Sv NodedSegmentString::addIntersectionNode (Coordinate& c, std::size_t segmentIndex) { |
| 11 |
3 |
▶ | auto* node = THIS->addIntersectionNode(&c, segmentIndex); |
Branch: 1 branch
| Branch | True | False | Total |
| auto* node = THIS->addIntersectionNode(&c, segmentIndex); |
3 |
0 |
3 |
|
| 12 |
3 |
▶ | Sv wrapped = xs::out<SegmentNode*>(node); |
Branch: 1 branch
| Branch | True | False | Total |
| Sv wrapped = xs::out<SegmentNode*>(node); |
3 |
0 |
3 |
|
| 13 |
3 |
▶ | Object obj{ST(0)}; |
Branch: 1 branch
| Branch | True | False | Total |
| Object obj{ST(0)}; |
3 |
0 |
3 |
|
| 14 |
3 |
▶ | wrapped.payload_attach(obj.detach(), &payload_marker); |
Branch: 2 branches
| Branch | True | False | Total |
| wrapped.payload_attach(obj.detach(), &payload_marker); |
3 |
0 |
3 |
| wrapped.payload_attach(obj.detach(), &payload_marker); |
3 |
0 |
3 |
|
| 15 |
3 |
▶ | RETVAL = wrapped; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = wrapped; |
3 |
0 |
3 |
|
| 16 |
|
| } |
| 17 |
|
| |
| 18 |
0 |
▶ | int NodedSegmentString::getSegmentOctant (unsigned int index) |
Branch: 1 branch
| Branch | True | False | Total |
| int NodedSegmentString::getSegmentOctant (unsigned int index) |
0 |
0 |
0 |
|
| 19 |
|
| |
| 20 |
|
| void NodedSegmentString::addIntersections (LineIntersector& li, unsigned int segmentIndex, int geomIndex) { |
| 21 |
1 |
| THIS->addIntersections(&li, segmentIndex, geomIndex); |
| 22 |
|
| } |
| 23 |
|
| |
| 24 |
|
| void NodedSegmentString::addIntersection (Object arg1, unsigned int segmentIndex, SV* arg3 = NULL, SV* arg4 = NULL) { |
| 25 |
2 |
▶ | if (!arg3) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (!arg3) { |
1 |
1 |
2 |
|
| 26 |
1 |
▶ | auto& c = xs::in<Coordinate&>(arg1); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& c = xs::in<Coordinate&>(arg1); |
1 |
0 |
1 |
|
| 27 |
1 |
▶ | THIS->addIntersection(c, segmentIndex); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->addIntersection(c, segmentIndex); |
1 |
0 |
1 |
|
| 28 |
|
| } |
| 29 |
|
| else { |
| 30 |
1 |
▶ | auto& li = xs::in<LineIntersector&>(arg1); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& li = xs::in<LineIntersector&>(arg1); |
1 |
0 |
1 |
|
| 31 |
1 |
▶ | if (!arg3) throw("missing mandatory argument"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (!arg3) throw("missing mandatory argument"); |
0 |
1 |
1 |
|
| 32 |
1 |
▶ | if (!arg4) throw("missing mandatory argument"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (!arg4) throw("missing mandatory argument"); |
0 |
1 |
1 |
|
| 33 |
1 |
▶ | THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); |
Branch: 3 branches
| Branch | True | False | Total |
| THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); |
1 |
0 |
1 |
| THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); |
1 |
0 |
1 |
| THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); |
1 |
0 |
1 |
|
| 34 |
|
| } |
| 35 |
|
| } |
| 36 |
|
| |
| 37 |
0 |
▶ | int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
Branch: 1 branch
| Branch | True | False | Total |
| int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
0 |
0 |
0 |
|
| 38 |
|
| |
| 39 |
|
| BOOT { |
| 40 |
46 |
▶ | Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString"); |
Branch: 2 branches
| Branch | True | False | Total |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString"); |
46 |
0 |
46 |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentString"); |
46 |
0 |
46 |
|
| 41 |
|
| } |