| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Precision::GeometryPrecisionReducer |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| Sv new(SV*, SV* arg0) { |
| 5 |
|
| GeometryPrecisionReducer* self; |
| 6 |
1 |
▶ | Object arg{arg0}; |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg{arg0}; |
1 |
0 |
1 |
|
| 7 |
1 |
▶ | if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
Branch: 4 branches
| Branch | True | False | Total |
| if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
1 |
0 |
1 |
| if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
1 |
0 |
1 |
| if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
1 |
0 |
1 |
| if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
1 |
0 |
1 |
|
| 8 |
1 |
▶ | PrecisionModel& pm = xs::in<PrecisionModel&>(arg); |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel& pm = xs::in<PrecisionModel&>(arg); |
1 |
0 |
1 |
|
| 9 |
1 |
▶ | self = new GeometryPrecisionReducer(pm); |
Branch: 1 branch
| Branch | True | False | Total |
| self = new GeometryPrecisionReducer(pm); |
1 |
0 |
1 |
|
| 10 |
|
| } |
| 11 |
|
| else { |
| 12 |
0 |
▶ | GeometryFactory& gf = xs::in<GeometryFactory&>(arg); |
Branch: 1 branch
| Branch | True | False | Total |
| GeometryFactory& gf = xs::in<GeometryFactory&>(arg); |
0 |
0 |
0 |
|
| 13 |
0 |
▶ | self = new GeometryPrecisionReducer(gf); |
Branch: 3 branches
| Branch | True | False | Total |
| self = new GeometryPrecisionReducer(gf); |
0 |
0 |
0 |
| self = new GeometryPrecisionReducer(gf); |
0 |
0 |
0 |
| self = new GeometryPrecisionReducer(gf); |
0 |
0 |
0 |
|
| 14 |
|
| } |
| 15 |
1 |
▶ | Object wrapped = xs::out<GeometryPrecisionReducer*>(self); |
Branch: 2 branches
| Branch | True | False | Total |
| Object wrapped = xs::out<GeometryPrecisionReducer*>(self); |
1 |
0 |
1 |
| Object wrapped = xs::out<GeometryPrecisionReducer*>(self); |
1 |
0 |
1 |
|
| 16 |
1 |
▶ | wrapped.payload_attach(SvRV(arg0), &payload_marker); |
Branch: 1 branch
| Branch | True | False | Total |
| wrapped.payload_attach(SvRV(arg0), &payload_marker); |
1 |
0 |
1 |
|
| 17 |
1 |
▶ | RETVAL = wrapped.ref(); |
Branch: 2 branches
| Branch | True | False | Total |
| RETVAL = wrapped.ref(); |
1 |
0 |
1 |
| RETVAL = wrapped.ref(); |
1 |
0 |
1 |
|
| 18 |
|
| } |
| 19 |
|
| |
| 20 |
1 |
| void GeometryPrecisionReducer::setRemoveCollapsedComponents(bool remove) |
| 21 |
|
| |
| 22 |
1 |
| void GeometryPrecisionReducer::setPointwise (bool pointwise) |
| 23 |
|
| |
| 24 |
|
| Sv GeometryPrecisionReducer::reduce(Geometry& g) { |
| 25 |
1 |
▶ | auto ptr = THIS->reduce(g); |
Branch: 1 branch
| Branch | True | False | Total |
| auto ptr = THIS->reduce(g); |
1 |
0 |
1 |
|
| 26 |
1 |
▶ | RETVAL = Helper::uplift(ptr.release()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Helper::uplift(ptr.release()); |
1 |
0 |
1 |
|
| 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 |
|