| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SimpleSnapRounder |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| Sv new(SV*, SV* precisionModel) { |
| 5 |
2 |
▶ | auto& pm = xs::in<PrecisionModel&>(precisionModel); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& pm = xs::in<PrecisionModel&>(precisionModel); |
2 |
0 |
2 |
|
| 6 |
2 |
▶ | Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
Branch: 5 branches
| Branch | True | False | Total |
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
2 |
0 |
2 |
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
2 |
0 |
2 |
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
2 |
0 |
2 |
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
2 |
0 |
2 |
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
0 |
0 |
0 |
|
| 7 |
2 |
▶ | wrapped.payload_attach(precisionModel, &payload_marker); |
Branch: 1 branch
| Branch | True | False | Total |
| wrapped.payload_attach(precisionModel, &payload_marker); |
2 |
0 |
2 |
|
| 8 |
2 |
▶ | RETVAL = wrapped.ref(); |
Branch: 2 branches
| Branch | True | False | Total |
| RETVAL = wrapped.ref(); |
2 |
0 |
2 |
| RETVAL = wrapped.ref(); |
2 |
0 |
2 |
|
| 9 |
|
| } |
| 10 |
|
| |
| 11 |
|
| void SimpleSnapRounder::computeVertexSnaps (Array edges) { |
| 12 |
2 |
| std::vector<SegmentString *> v; |
| 13 |
2 |
▶ | v.reserve(edges.size()); |
Branch: 2 branches
| Branch | True | False | Total |
| v.reserve(edges.size()); |
2 |
0 |
2 |
| v.reserve(edges.size()); |
2 |
0 |
2 |
|
| 14 |
|
| |
| 15 |
4 |
▶ | for(auto it: edges) { |
Branch: 4 branches
| Branch | True | False | Total |
| for(auto it: edges) { |
2 |
0 |
2 |
| for(auto it: edges) { |
2 |
0 |
2 |
| for(auto it: edges) { |
2 |
0 |
2 |
| for(auto it: edges) { |
2 |
2 |
4 |
|
| 16 |
2 |
▶ | auto& ss = xs::in<SegmentString&>(it); |
Branch: 1 branch
| Branch | True | False | Total |
| auto& ss = xs::in<SegmentString&>(it); |
2 |
0 |
2 |
|
| 17 |
2 |
▶ | v.push_back(&ss); |
Branch: 1 branch
| Branch | True | False | Total |
| v.push_back(&ss); |
2 |
0 |
2 |
|
| 18 |
2 |
| } |
| 19 |
2 |
▶ | THIS->computeVertexSnaps(v); |
Branch: 1 branch
| Branch | True | False | Total |
| THIS->computeVertexSnaps(v); |
2 |
0 |
2 |
|
| 20 |
|
| } |
| 21 |
|
| |
| 22 |
|
| |
| 23 |
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 |
|
| 24 |
|
| |
| 25 |
|
| BOOT { |
| 26 |
46 |
▶ | Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder"); |
Branch: 2 branches
| Branch | True | False | Total |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder"); |
46 |
0 |
46 |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::Noder"); |
46 |
0 |
46 |
|
| 27 |
|
| } |