| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Index::MonotoneChainOverlapAction |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
1 |
| MonotoneChainOverlapAction* new(SV*) |
| 5 |
1 |
▶ | |
Branch: 4 branches
| Branch | True | False | Total |
|
1 |
0 |
1 |
|
1 |
0 |
1 |
|
1 |
0 |
1 |
|
0 |
0 |
0 |
|
| 6 |
|
| void MonotoneChainOverlapAction::overlap(Object arg1, SV* arg2, SV* arg3 = NULL, SV* arg4 = NULL) { |
| 7 |
2 |
▶ | if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
Branch: 4 branches
| Branch | True | False | Total |
| if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
2 |
0 |
2 |
| if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
2 |
0 |
2 |
| if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
2 |
0 |
2 |
| if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
1 |
1 |
2 |
|
| 8 |
1 |
▶ | auto& ls1 = xs::in<LineSegment&>(arg1); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& ls1 = xs::in<LineSegment&>(arg1); |
1 |
0 |
1 |
|
| 9 |
1 |
▶ | auto& ls2 = xs::in<LineSegment&>(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& ls2 = xs::in<LineSegment&>(arg2); |
1 |
0 |
1 |
|
| 10 |
1 |
▶ | THIS->overlap(ls1, ls2); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->overlap(ls1, ls2); |
1 |
0 |
1 |
|
| 11 |
|
| } |
| 12 |
|
| else { |
| 13 |
1 |
▶ | if(!arg2) throw("undef not allowed"); |
Branch: 1 branch
| Branch | True | False | Total |
| if(!arg2) throw("undef not allowed"); |
0 |
1 |
1 |
|
| 14 |
1 |
▶ | if(!arg4) throw("undef not allowed"); |
Branch: 1 branch
| Branch | True | False | Total |
| if(!arg4) throw("undef not allowed"); |
0 |
1 |
1 |
|
| 15 |
1 |
▶ | auto& mc1 = xs::in<MonotoneChain&>(arg1); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& mc1 = xs::in<MonotoneChain&>(arg1); |
1 |
0 |
1 |
|
| 16 |
1 |
▶ | auto& mc2 = xs::in<MonotoneChain&>(arg3); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& mc2 = xs::in<MonotoneChain&>(arg3); |
1 |
0 |
1 |
|
| 17 |
1 |
▶ | std::size_t start1 = SvUV(arg2); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t start1 = SvUV(arg2); |
1 |
0 |
1 |
|
| 18 |
1 |
▶ | std::size_t start2 = SvUV(arg4); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t start2 = SvUV(arg4); |
1 |
0 |
1 |
|
| 19 |
1 |
▶ | THIS->overlap(mc1, start1, mc2, start2); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->overlap(mc1, start1, mc2, start2); |
1 |
0 |
1 |
|
| 20 |
|
| } |
| 21 |
|
| } |
| 22 |
|
| |
| 23 |
|
| Envelope* MonotoneChainOverlapAction::tempEnv1(SV* newval = NULL) : ALIAS(tempEnv2=1) { |
| 24 |
4 |
| Envelope* val; |
| 25 |
|
| switch (ix) { |
| 26 |
4 |
▶ | case 0: val = &THIS->tempEnv1; break; |
Branch: 1 branch
| Branch | True | False | Total |
| case 0: val = &THIS->tempEnv1; break; |
2 |
2 |
4 |
|
| 27 |
2 |
| default: val = &THIS->tempEnv2; break; |
| 28 |
2 |
| } |
| 29 |
|
| if (newval) { |
| 30 |
4 |
▶ | auto e = xs::in<Envelope*>(newval); |
Branch: 1 branch
| Branch | True | False | Total |
| auto e = xs::in<Envelope*>(newval); |
0 |
4 |
4 |
|
| 31 |
0 |
▶ | *val = *e; |
Branch: 1 branch
| Branch | True | False | Total |
| *val = *e; |
0 |
0 |
0 |
|
| 32 |
0 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
0 |
0 |
0 |
|
| 33 |
|
| RETVAL = new Envelope(*val); |
| 34 |
4 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
4 |
0 |
4 |
| } |
4 |
0 |
4 |
| } |
4 |
0 |
4 |
| } |
0 |
0 |
0 |
|
| 35 |
|
| |