| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SingleInteriorIntersectionFinder |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| Sv new(SV*,SV* liObj) { |
| 5 |
1 |
▶ | auto& li = xs::in<LineIntersector&>(liObj); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& li = xs::in<LineIntersector&>(liObj); |
1 |
0 |
1 |
|
| 6 |
1 |
▶ | Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
Branch: 4 branches
| Branch | True | False | Total |
| Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
1 |
0 |
1 |
| Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
1 |
0 |
1 |
| Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
1 |
0 |
1 |
| Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
0 |
0 |
0 |
|
| 7 |
1 |
▶ | wrapped.payload_attach(SvRV(liObj), &payload_marker); |
Branch: 1 branch
| Branch | True | False | Total |
| wrapped.payload_attach(SvRV(liObj), &payload_marker); |
1 |
0 |
1 |
|
| 8 |
1 |
▶ | RETVAL = wrapped; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = wrapped; |
1 |
0 |
1 |
|
| 9 |
|
| } |
| 10 |
|
| |
| 11 |
|
| |
| 12 |
0 |
▶ | bool SingleInteriorIntersectionFinder::hasIntersection () |
Branch: 1 branch
| Branch | True | False | Total |
| bool SingleInteriorIntersectionFinder::hasIntersection () |
0 |
0 |
0 |
|
| 13 |
|
| |
| 14 |
|
| Coordinate* SingleInteriorIntersectionFinder::getInteriorIntersection() { |
| 15 |
1 |
| RETVAL = new Coordinate(THIS->getInteriorIntersection()); |
| 16 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 17 |
|
| |
| 18 |
|
| xs::Array SingleInteriorIntersectionFinder::getIntersectionSegments() { |
| 19 |
1 |
| auto& vector = THIS->getIntersectionSegments(); |
| 20 |
1 |
▶ | auto r = xs::Array::create(vector.size()); |
Branch: 1 branch
| Branch | True | False | Total |
| auto r = xs::Array::create(vector.size()); |
1 |
0 |
1 |
|
| 21 |
5 |
▶ | for(auto& c: vector) { |
Branch: 1 branch
| Branch | True | False | Total |
| for(auto& c: vector) { |
4 |
1 |
5 |
|
| 22 |
4 |
▶ | auto copy = xs::out<Coordinate*>(new Coordinate(c)); |
Branch: 3 branches
| Branch | True | False | Total |
| auto copy = xs::out<Coordinate*>(new Coordinate(c)); |
4 |
0 |
4 |
| auto copy = xs::out<Coordinate*>(new Coordinate(c)); |
4 |
0 |
4 |
| auto copy = xs::out<Coordinate*>(new Coordinate(c)); |
0 |
0 |
0 |
|
| 23 |
4 |
▶ | r.push(copy); |
Branch: 1 branch
| Branch | True | False | Total |
| r.push(copy); |
4 |
0 |
4 |
|
| 24 |
4 |
| } |
| 25 |
1 |
▶ | RETVAL = r; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = r; |
1 |
0 |
1 |
|
| 26 |
|
| } |
| 27 |
|
| |
| 28 |
|
| |
| 29 |
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 |
|
| 30 |
|
| |
| 31 |
|
| BOOT { |
| 32 |
46 |
▶ | Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
Branch: 2 branches
| Branch | True | False | Total |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
46 |
0 |
46 |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
46 |
0 |
46 |
|
| 33 |
|
| } |