xsi/noding/SegmentIntersectionDetector.xsi

filter: Statementstmt 68.7% 11 / 16 Branchbran 41.6% 10 / 24 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 52.5% 21 / 40 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/WKBConstants.xsi ↑ Summary xsi/Coordinate.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SegmentIntersectionDetector
2 PROTOTYPES: DISABLE
3  
4 Sv new(SV*,SV* liObj) {
5 2 ▶ LineIntersector& li = xs::in<LineIntersector&>(liObj);
Branch: 1 branch
BranchTrueFalseTotal
LineIntersector& li = xs::in<LineIntersector&>(liObj); 2 0 2
6 2 ▶ Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li));
Branch: 3 branches
BranchTrueFalseTotal
Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); 2 0 2
Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); 2 0 2
Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); 0 0 0
7 2 ▶ wrapped.payload_attach(SvRV(liObj), &payload_marker);
Branch: 1 branch
BranchTrueFalseTotal
wrapped.payload_attach(SvRV(liObj), &payload_marker); 2 0 2
8 2 ▶ RETVAL = wrapped;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = wrapped; 2 0 2
9 }
10  
11  
12 0 bool SegmentIntersectionDetector::hasIntersection ()
13  
14 1 bool SegmentIntersectionDetector::hasProperIntersection ()
15  
16 1 bool SegmentIntersectionDetector::hasNonProperIntersection ()
17  
18 0 void SegmentIntersectionDetector::setFindProper(bool findProper)
19  
20 0 void SegmentIntersectionDetector::setFindAllIntersectionTypes (bool findAllTypes)
21  
22 xs::Array SegmentIntersectionDetector::getIntersectionSegments (){
23 1 ▶ RETVAL = Helper::convert_copy(THIS->getIntersectionSegments());
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = Helper::convert_copy(THIS->getIntersectionSegments()); 1 0 1
24 }
25  
26 Coordinate* SegmentIntersectionDetector::getIntersection() {
27 1 auto c = THIS->getIntersection();
28 1 if (c) RETVAL = new Coordinate(*c);
29 1 ▶ else XSRETURN_UNDEF;
Branch: 2 branches
BranchTrueFalseTotal
else XSRETURN_UNDEF; 1 0 1
else XSRETURN_UNDEF; 1 0 1
30 0 }
31  
32  
33 0 ▶int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; }
Branch: 1 branch
BranchTrueFalseTotal
int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } 0 0 0
34  
35 BOOT {
36 46 ▶ Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector");
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); 46 0 46
Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); 46 0 46
37 }
« xsi/WKBConstants.xsi ↑ Summary xsi/Coordinate.xsi »