| 1 |
|
| /* |
| 2 |
|
| * This file was generated automatically by XS::Install::FrozenShit::ParseXS version 3.57 from the |
| 3 |
|
| * contents of Geos.xs. Do not edit this file, edit Geos.xs instead. |
| 4 |
|
| * |
| 5 |
|
| * ANY CHANGES MADE HERE WILL BE LOST! |
| 6 |
|
| * |
| 7 |
|
| */ |
| 8 |
|
| |
| 9 |
|
| #line 1 "Geos.xs" |
| 10 |
|
| #include "xs/geos/geos.h" |
| 11 |
|
| #include "panda/Geos/Helper.h" |
| 12 |
|
| #include "panda/Geos/tesselate.h" |
| 13 |
|
| #include "xsi/private_typemaps.h" |
| 14 |
|
| |
| 15 |
|
| using xs::my_perl; |
| 16 |
|
| using xs::Sv; |
| 17 |
|
| using namespace geos::geom; |
| 18 |
|
| using namespace geos::geom::prep; |
| 19 |
|
| using namespace geos::algorithm; |
| 20 |
|
| using namespace geos::noding; |
| 21 |
|
| using namespace geos::noding::snapround; |
| 22 |
|
| using namespace geos::io; |
| 23 |
|
| using namespace geos::index::chain; |
| 24 |
|
| using namespace geos::index; |
| 25 |
|
| using namespace geos::precision; |
| 26 |
|
| using namespace geos::operation::buffer; |
| 27 |
|
| using namespace geos::operation::distance; |
| 28 |
|
| using namespace geos::operation::overlay; |
| 29 |
|
| using namespace geos::operation::valid; |
| 30 |
|
| using namespace geos::operation::relate; |
| 31 |
|
| using namespace geos::operation::linemerge; |
| 32 |
|
| using namespace geos::triangulate; |
| 33 |
|
| using namespace xs; |
| 34 |
|
| using namespace Geo::Geos; |
| 35 |
|
| using namespace panda; |
| 36 |
|
| |
| 37 |
|
| struct IntersectionFinderAdder_payload { |
| 38 |
|
| using vector_t = std::vector<::geos::geom::Coordinate>; |
| 39 |
|
| |
| 40 |
|
| xs::Object lineIntersector; |
| 41 |
|
| vector_t coords; |
| 42 |
|
| }; |
| 43 |
|
| |
| 44 |
|
| struct Noder_payload { |
| 45 |
|
| using vector_t = std::vector<::geos::noding::SegmentString*>; |
| 46 |
|
| |
| 47 |
|
| xs::Ref array_ref; |
| 48 |
|
| vector_t segments; |
| 49 |
|
| }; |
| 50 |
|
| |
| 51 |
|
| |
| 52 |
|
| struct MonotoneChain_payload { |
| 53 |
|
| std::unique_ptr<CoordinateSequence> seq; |
| 54 |
|
| }; |
| 55 |
|
| |
| 56 |
|
| struct SubItemVisitor: public geos::index::ItemVisitor { |
| 57 |
|
| xs::Sub sub; |
| 58 |
|
| Helper::lookup_map_t& lookup_map; |
| 59 |
|
| |
| 60 |
|
| SubItemVisitor(Sub sub_, Helper::lookup_map_t& lookup_map_):sub{sub_}, lookup_map{lookup_map_} {}; |
| 61 |
|
| void visitItem (void *data) { |
| 62 |
|
| SV* key = static_cast<SV*>(data); |
| 63 |
|
| HE* he = hv_fetch_ent(lookup_map, key, 0, 0); |
| 64 |
|
| if (!he) throw ("Cannot lookup key in map"); |
| 65 |
|
| Scalar arg {HeVAL(he)}; |
| 66 |
|
| sub(arg); |
| 67 |
|
| } |
| 68 |
|
| }; |
| 69 |
|
| |
| 70 |
|
| struct SVs_map_payload { |
| 71 |
|
| Helper::lookup_map_t map; |
| 72 |
|
| SVs_map_payload(): map{Hash::create()} {} |
| 73 |
|
| }; |
| 74 |
|
| |
| 75 |
|
| static xs::Sv::payload_marker_t payload_marker{}; |
| 76 |
|
| static xs::Sv::payload_marker_t payload_marker_IntersectionFinderAdder{}; |
| 77 |
|
| static xs::Sv::payload_marker_t payload_marker_Noder{}; |
| 78 |
|
| static xs::Sv::payload_marker_t payload_marker_MonotoneChain{}; |
| 79 |
|
| static xs::Sv::payload_marker_t payload_marker_SVs_map{}; |
| 80 |
|
| |
| 81 |
|
| static int payload_marker_IntersectionFinderAdder_free(pTHX_ SV*, MAGIC* mg) { |
| 82 |
|
| if (mg->mg_virtual == &payload_marker_IntersectionFinderAdder) { |
| 83 |
|
| auto* payload = static_cast<IntersectionFinderAdder_payload*>((void*)mg->mg_ptr); |
| 84 |
|
| delete payload; |
| 85 |
|
| } |
| 86 |
|
| return 0; |
| 87 |
|
| } |
| 88 |
|
| |
| 89 |
|
| static int payload_marker_Noder_free(pTHX_ SV*, MAGIC* mg) { |
| 90 |
|
| if (mg->mg_virtual == &payload_marker_Noder) { |
| 91 |
|
| auto* payload = static_cast<Noder_payload*>((void*)mg->mg_ptr); |
| 92 |
|
| delete payload; |
| 93 |
|
| } |
| 94 |
|
| return 0; |
| 95 |
|
| } |
| 96 |
|
| |
| 97 |
|
| static int payload_marker_MonotoneChain_free(pTHX_ SV*, MAGIC* mg) { |
| 98 |
|
| if (mg->mg_virtual == &payload_marker_MonotoneChain) { |
| 99 |
|
| auto* payload = static_cast<MonotoneChain_payload*>((void*)mg->mg_ptr); |
| 100 |
|
| delete payload; |
| 101 |
|
| } |
| 102 |
|
| return 0; |
| 103 |
|
| } |
| 104 |
|
| |
| 105 |
|
| static int payload_marker_SVs_map_free(pTHX_ SV*, MAGIC* mg) { |
| 106 |
|
| if (mg->mg_virtual == &payload_marker_SVs_map) { |
| 107 |
|
| auto* payload = static_cast<SVs_map_payload*>((void*)mg->mg_ptr); |
| 108 |
|
| delete payload; |
| 109 |
|
| } |
| 110 |
|
| return 0; |
| 111 |
|
| } |
| 112 |
|
| |
| 113 |
|
| |
| 114 |
|
| static Sv coordinate_create_null () { |
| 115 |
|
| Sv ret = xs::out<const Coordinate*>(new Coordinate()); |
| 116 |
|
| return ret; |
| 117 |
|
| } |
| 118 |
|
| |
| 119 |
|
| static Sv coordinate_get_null () { |
| 120 |
|
| static thread_local Sv obj = coordinate_create_null(); |
| 121 |
|
| return obj; |
| 122 |
|
| } |
| 123 |
|
| |
| 124 |
|
| //static Sv::payload_marker_t payload_marker; |
| 125 |
|
| |
| 126 |
|
| #line 127 "Geos_xsgen.cc" |
| 127 |
|
| #ifndef PERL_UNUSED_VAR |
| 128 |
|
| # define PERL_UNUSED_VAR(var) if (0) var = var |
| 129 |
|
| #endif |
| 130 |
|
| |
| 131 |
|
| #ifndef dVAR |
| 132 |
|
| # define dVAR dNOOP |
| 133 |
|
| #endif |
| 134 |
|
| |
| 135 |
|
| |
| 136 |
|
| /* This stuff is not part of the API! You have been warned. */ |
| 137 |
|
| #ifndef PERL_VERSION_DECIMAL |
| 138 |
|
| # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s) |
| 139 |
|
| #endif |
| 140 |
|
| #ifndef PERL_DECIMAL_VERSION |
| 141 |
|
| # define PERL_DECIMAL_VERSION \ |
| 142 |
|
| PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION) |
| 143 |
|
| #endif |
| 144 |
|
| #ifndef PERL_VERSION_GE |
| 145 |
|
| # define PERL_VERSION_GE(r,v,s) \ |
| 146 |
|
| (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s)) |
| 147 |
|
| #endif |
| 148 |
|
| #ifndef PERL_VERSION_LE |
| 149 |
|
| # define PERL_VERSION_LE(r,v,s) \ |
| 150 |
|
| (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s)) |
| 151 |
|
| #endif |
| 152 |
|
| |
| 153 |
|
| /* XS_INTERNAL is the explicit static-linkage variant of the default |
| 154 |
|
| * XS macro. |
| 155 |
|
| * |
| 156 |
|
| * XS_EXTERNAL is the same as XS_INTERNAL except it does not include |
| 157 |
|
| * "STATIC", ie. it exports XSUB symbols. You probably don't want that |
| 158 |
|
| * for anything but the BOOT XSUB. |
| 159 |
|
| * |
| 160 |
|
| * See XSUB.h in core! |
| 161 |
|
| */ |
| 162 |
|
| |
| 163 |
|
| |
| 164 |
|
| /* TODO: This might be compatible further back than 5.10.0. */ |
| 165 |
|
| #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1) |
| 166 |
|
| # undef XS_EXTERNAL |
| 167 |
|
| # undef XS_INTERNAL |
| 168 |
|
| # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING) |
| 169 |
|
| # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name) |
| 170 |
|
| # define XS_INTERNAL(name) STATIC XSPROTO(name) |
| 171 |
|
| # endif |
| 172 |
|
| # if defined(__SYMBIAN32__) |
| 173 |
|
| # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name) |
| 174 |
|
| # define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name) |
| 175 |
|
| # endif |
| 176 |
|
| # ifndef XS_EXTERNAL |
| 177 |
|
| # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus) |
| 178 |
|
| # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__) |
| 179 |
|
| # define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__) |
| 180 |
|
| # else |
| 181 |
|
| # ifdef __cplusplus |
| 182 |
|
| # define XS_EXTERNAL(name) extern "C" XSPROTO(name) |
| 183 |
|
| # define XS_INTERNAL(name) static XSPROTO(name) |
| 184 |
|
| # else |
| 185 |
|
| # define XS_EXTERNAL(name) XSPROTO(name) |
| 186 |
|
| # define XS_INTERNAL(name) STATIC XSPROTO(name) |
| 187 |
|
| # endif |
| 188 |
|
| # endif |
| 189 |
|
| # endif |
| 190 |
|
| #endif |
| 191 |
|
| |
| 192 |
|
| /* perl >= 5.10.0 && perl <= 5.15.1 */ |
| 193 |
|
| |
| 194 |
|
| |
| 195 |
|
| /* The XS_EXTERNAL macro is used for functions that must not be static |
| 196 |
|
| * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL |
| 197 |
|
| * macro defined, the best we can do is assume XS is the same. |
| 198 |
|
| * Dito for XS_INTERNAL. |
| 199 |
|
| */ |
| 200 |
|
| #ifndef XS_EXTERNAL |
| 201 |
|
| # define XS_EXTERNAL(name) XS(name) |
| 202 |
|
| #endif |
| 203 |
|
| #ifndef XS_INTERNAL |
| 204 |
|
| # define XS_INTERNAL(name) XS(name) |
| 205 |
|
| #endif |
| 206 |
|
| |
| 207 |
|
| /* Now, finally, after all this mess, we want an XS::Install::FrozenShit::ParseXS |
| 208 |
|
| * internal macro that we're free to redefine for varying linkage due |
| 209 |
|
| * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use |
| 210 |
|
| * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to! |
| 211 |
|
| */ |
| 212 |
|
| |
| 213 |
|
| #undef XS_EUPXS |
| 214 |
|
| #if defined(PERL_EUPXS_ALWAYS_EXPORT) |
| 215 |
|
| # define XS_EUPXS(name) XS_EXTERNAL(name) |
| 216 |
|
| #else |
| 217 |
|
| /* default to internal */ |
| 218 |
|
| # define XS_EUPXS(name) XS_INTERNAL(name) |
| 219 |
|
| #endif |
| 220 |
|
| |
| 221 |
|
| #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE |
| 222 |
|
| #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params) |
| 223 |
|
| |
| 224 |
|
| /* prototype to pass -Wmissing-prototypes */ |
| 225 |
|
| STATIC void |
| 226 |
|
| S_croak_xs_usage(const CV *const cv, const char *const params); |
| 227 |
|
| |
| 228 |
|
| STATIC void |
| 229 |
|
| S_croak_xs_usage(const CV *const cv, const char *const params) |
| 230 |
|
| { |
| 231 |
|
| const GV *const gv = CvGV(cv); |
| 232 |
|
| |
| 233 |
|
| PERL_ARGS_ASSERT_CROAK_XS_USAGE; |
| 234 |
|
| |
| 235 |
|
| if (gv) { |
| 236 |
|
| const char *const gvname = GvNAME(gv); |
| 237 |
|
| const HV *const stash = GvSTASH(gv); |
| 238 |
|
| const char *const hvname = stash ? HvNAME(stash) : NULL; |
| 239 |
|
| |
| 240 |
|
| if (hvname) |
| 241 |
|
| Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params); |
| 242 |
|
| else |
| 243 |
|
| Perl_croak_nocontext("Usage: %s(%s)", gvname, params); |
| 244 |
|
| } else { |
| 245 |
|
| /* Pants. I don't think that it should be possible to get here. */ |
| 246 |
|
| Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params); |
| 247 |
|
| } |
| 248 |
|
| } |
| 249 |
|
| #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE |
| 250 |
|
| |
| 251 |
|
| #define croak_xs_usage S_croak_xs_usage |
| 252 |
|
| |
| 253 |
|
| #endif |
| 254 |
|
| |
| 255 |
|
| /* NOTE: the prototype of newXSproto() is different in versions of perls, |
| 256 |
|
| * so we define a portable version of newXSproto() |
| 257 |
|
| */ |
| 258 |
|
| #ifdef newXS_flags |
| 259 |
|
| #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0) |
| 260 |
|
| #else |
| 261 |
|
| #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv) |
| 262 |
|
| #endif /* !defined(newXS_flags) */ |
| 263 |
|
| |
| 264 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 265 |
|
| # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file) |
| 266 |
|
| #else |
| 267 |
|
| # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b) |
| 268 |
|
| #endif |
| 269 |
|
| |
| 270 |
|
| /* simple backcompat versions of the TARGx() macros with no optimisation */ |
| 271 |
|
| #ifndef TARGi |
| 272 |
|
| # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv) |
| 273 |
|
| # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv) |
| 274 |
|
| # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv) |
| 275 |
|
| #endif |
| 276 |
|
| |
| 277 |
|
| #line 278 "Geos_xsgen.cc" |
| 278 |
|
| |
| 279 |
|
| /* INCLUDE: Including 'xsi/Coordinate.xsi' from 'Geos.xs' */ |
| 280 |
|
| |
| 281 |
|
| |
| 282 |
|
| |
| 283 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_getNull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_getNull) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 284 |
|
| { |
| 285 |
0 |
| dVAR; dXSARGS; |
| 286 |
0 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
0 |
0 |
|
| 287 |
0 |
| croak_xs_usage(cv, ""); |
| 288 |
|
| { |
| 289 |
0 |
| Sv RETVAL; |
| 290 |
|
| #line 4 "./xsi/Coordinate.xsi" |
| 291 |
|
| RETVAL = coordinate_get_null(); |
| 292 |
|
| #line 293 "Geos_xsgen.cc" |
| 293 |
|
| { |
| 294 |
|
| SV * RETVALSV; |
| 295 |
0 |
| RETVALSV = NULL; |
| 296 |
0 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
0 |
0 |
|
| 297 |
0 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
0 |
0 |
0 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
0 |
0 |
0 |
|
| 298 |
0 |
| else switch (RETVAL.type()) { |
| 299 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 300 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 301 |
0 |
| case SVt_PVCV: |
| 302 |
|
| case SVt_PVIO: |
| 303 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 304 |
0 |
| break; |
| 305 |
0 |
| default: throw "unknown type of Sv to return"; |
| 306 |
|
| } |
| 307 |
0 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
0 |
0 |
0 |
|
| 308 |
0 |
| ST(0) = RETVALSV; |
| 309 |
|
| } |
| 310 |
0 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
0 |
0 |
0 |
|
| 311 |
0 |
| XSRETURN(1); |
| 312 |
0 |
| }); } |
| 313 |
|
| |
| 314 |
|
| |
| 315 |
|
| |
| 316 |
632 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_new) { xs::throw_guard(cv, [=]() |
316 |
0 |
316 |
|
| 317 |
|
| { |
| 318 |
316 |
| dVAR; dXSARGS; |
| 319 |
316 |
▶ | if (items < 1 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 4) |
316 |
0 |
316 |
| if (items < 1 || items > 4) |
0 |
316 |
316 |
|
| 320 |
0 |
| croak_xs_usage(cv, "_____unused1, x= 0, y= 0, z= NULL"); |
| 321 |
|
| { |
| 322 |
|
| Coordinate * RETVAL; |
| 323 |
|
| double x; |
| 324 |
|
| double y; |
| 325 |
|
| SV* z; |
| 326 |
|
| |
| 327 |
316 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
0 |
316 |
316 |
|
| 328 |
0 |
| x = 0; |
| 329 |
|
| else { |
| 330 |
316 |
▶ | x = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| x = (double)SvNV(ST(1)) |
316 |
0 |
316 |
|
| 331 |
|
| ; |
| 332 |
|
| } |
| 333 |
|
| |
| 334 |
316 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
0 |
316 |
316 |
|
| 335 |
0 |
| y = 0; |
| 336 |
|
| else { |
| 337 |
316 |
▶ | y = (double)SvNV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| y = (double)SvNV(ST(2)) |
316 |
0 |
316 |
|
| 338 |
|
| ; |
| 339 |
|
| } |
| 340 |
|
| |
| 341 |
316 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
309 |
7 |
316 |
|
| 342 |
309 |
| z = NULL; |
| 343 |
|
| else { |
| 344 |
7 |
| z = ST(3) |
| 345 |
|
| ; |
| 346 |
|
| } |
| 347 |
|
| #line 7 "./xsi/Coordinate.xsi" |
| 348 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 349 |
|
| RETVAL = new Coordinate(x, y, z ? SvNV(z) : DoubleNotANumber); |
| 350 |
|
| #line 351 "Geos_xsgen.cc" |
| 351 |
|
| { |
| 352 |
|
| SV * RETVALSV; |
| 353 |
316 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
316 |
0 |
316 |
|
| 354 |
316 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
316 |
0 |
316 |
|
| 355 |
316 |
| ST(0) = RETVALSV; |
| 356 |
|
| } |
| 357 |
316 |
| } |
| 358 |
316 |
| XSRETURN(1); |
| 359 |
316 |
| }); } |
| 360 |
|
| |
| 361 |
|
| |
| 362 |
|
| |
| 363 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_x) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_x) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 364 |
|
| { |
| 365 |
8 |
| dVAR; dXSARGS; |
| 366 |
8 |
| dXSI32; |
| 367 |
8 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
8 |
0 |
8 |
| if (items < 1 || items > 2) |
0 |
8 |
8 |
|
| 368 |
0 |
| croak_xs_usage(cv, "THIS, newval= NULL"); |
| 369 |
|
| { |
| 370 |
|
| double RETVAL; |
| 371 |
8 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
8 |
0 |
8 |
|
| 372 |
8 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
8 |
8 |
|
| 373 |
|
| ; |
| 374 |
|
| SV* newval; |
| 375 |
|
| |
| 376 |
8 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
8 |
0 |
8 |
|
| 377 |
8 |
| newval = NULL; |
| 378 |
|
| else { |
| 379 |
0 |
| newval = ST(1) |
| 380 |
|
| ; |
| 381 |
|
| } |
| 382 |
|
| #line 11 "./xsi/Coordinate.xsi" |
| 383 |
|
| double* val; |
| 384 |
|
| switch (ix) { |
| 385 |
|
| case 0: val = &THIS->x; break; |
| 386 |
|
| case 1: val = &THIS->y; break; |
| 387 |
|
| default: val = &THIS->z; break; |
| 388 |
|
| } |
| 389 |
|
| if (newval) { |
| 390 |
|
| if (SvREADONLY(ST(0))) throw "cannot modify readonly object"; |
| 391 |
|
| *val = SvNV(newval); |
| 392 |
|
| } |
| 393 |
|
| RETVAL = *val; |
| 394 |
|
| #line 395 "Geos_xsgen.cc" |
| 395 |
8 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
8 |
8 |
|
| 396 |
8 |
| ST(0) = TARG; |
| 397 |
|
| } |
| 398 |
8 |
| XSRETURN(1); |
| 399 |
8 |
| }); } |
| 400 |
|
| |
| 401 |
|
| |
| 402 |
|
| |
| 403 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_setNull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_setNull) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 404 |
|
| { |
| 405 |
0 |
| dVAR; dXSARGS; |
| 406 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 407 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 408 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 409 |
0 |
| SP -= items; |
| 410 |
|
| { |
| 411 |
0 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 412 |
|
| ; |
| 413 |
|
| #line 25 "./xsi/Coordinate.xsi" |
| 414 |
|
| if (SvREADONLY(ST(0))) throw "cannot modify readonly object"; |
| 415 |
|
| THIS->setNull(); |
| 416 |
|
| #line 417 "Geos_xsgen.cc" |
| 417 |
0 |
| PUTBACK; |
| 418 |
0 |
| return; |
| 419 |
|
| } |
| 420 |
0 |
| }); } |
| 421 |
|
| |
| 422 |
|
| |
| 423 |
|
| |
| 424 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_isNull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_isNull) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 425 |
|
| { |
| 426 |
3 |
| dVAR; dXSARGS; |
| 427 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 428 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 429 |
|
| { |
| 430 |
|
| bool RETVAL; |
| 431 |
3 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 432 |
|
| ; |
| 433 |
|
| #line 29 "./xsi/Coordinate.xsi" |
| 434 |
|
| RETVAL = THIS->isNull(); |
| 435 |
|
| #line 436 "Geos_xsgen.cc" |
| 436 |
3 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
3 |
3 |
|
| 437 |
|
| } |
| 438 |
3 |
| XSRETURN(1); |
| 439 |
3 |
| }); } |
| 440 |
|
| |
| 441 |
|
| |
| 442 |
|
| |
| 443 |
20 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_equals) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_equals) { xs::throw_guard(cv, [=]() |
10 |
0 |
10 |
|
| 444 |
|
| { |
| 445 |
10 |
| dVAR; dXSARGS; |
| 446 |
10 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
10 |
10 |
|
| 447 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 448 |
|
| { |
| 449 |
|
| bool RETVAL; |
| 450 |
10 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
10 |
10 |
|
| 451 |
|
| ; |
| 452 |
10 |
| Coordinate& other = xs::in<Coordinate&>(ST(1)); |
| 453 |
|
| ; |
| 454 |
|
| #line 31 "./xsi/Coordinate.xsi" |
| 455 |
|
| RETVAL = THIS->equals(other); |
| 456 |
|
| #line 457 "Geos_xsgen.cc" |
| 457 |
10 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
4 |
10 |
|
| 458 |
|
| } |
| 459 |
10 |
| XSRETURN(1); |
| 460 |
10 |
| }); } |
| 461 |
|
| |
| 462 |
|
| |
| 463 |
|
| |
| 464 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_equals2D) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_equals2D) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 465 |
|
| { |
| 466 |
6 |
| dVAR; dXSARGS; |
| 467 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 468 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 469 |
|
| { |
| 470 |
|
| bool RETVAL; |
| 471 |
6 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 472 |
|
| ; |
| 473 |
6 |
| Coordinate& other = xs::in<Coordinate&>(ST(1)); |
| 474 |
|
| ; |
| 475 |
|
| #line 33 "./xsi/Coordinate.xsi" |
| 476 |
|
| RETVAL = THIS->equals2D(other); |
| 477 |
|
| #line 478 "Geos_xsgen.cc" |
| 478 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
4 |
6 |
|
| 479 |
|
| } |
| 480 |
6 |
| XSRETURN(1); |
| 481 |
6 |
| }); } |
| 482 |
|
| |
| 483 |
|
| |
| 484 |
|
| |
| 485 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_equals3D) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_equals3D) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 486 |
|
| { |
| 487 |
6 |
| dVAR; dXSARGS; |
| 488 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 489 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 490 |
|
| { |
| 491 |
|
| bool RETVAL; |
| 492 |
6 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 493 |
|
| ; |
| 494 |
6 |
| Coordinate& other = xs::in<Coordinate&>(ST(1)); |
| 495 |
|
| ; |
| 496 |
|
| #line 35 "./xsi/Coordinate.xsi" |
| 497 |
|
| RETVAL = THIS->equals3D(other); |
| 498 |
|
| #line 499 "Geos_xsgen.cc" |
| 499 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
4 |
6 |
|
| 500 |
|
| } |
| 501 |
6 |
| XSRETURN(1); |
| 502 |
6 |
| }); } |
| 503 |
|
| |
| 504 |
|
| |
| 505 |
|
| |
| 506 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_compareTo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_compareTo) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 507 |
|
| { |
| 508 |
6 |
| dVAR; dXSARGS; |
| 509 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 510 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 511 |
|
| { |
| 512 |
|
| int RETVAL; |
| 513 |
6 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
6 |
0 |
6 |
|
| 514 |
6 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 515 |
|
| ; |
| 516 |
6 |
| Coordinate& other = xs::in<Coordinate&>(ST(1)); |
| 517 |
|
| ; |
| 518 |
|
| #line 37 "./xsi/Coordinate.xsi" |
| 519 |
|
| RETVAL = THIS->compareTo(other); |
| 520 |
|
| #line 521 "Geos_xsgen.cc" |
| 521 |
6 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
6 |
6 |
|
| 522 |
6 |
| ST(0) = TARG; |
| 523 |
|
| } |
| 524 |
6 |
| XSRETURN(1); |
| 525 |
6 |
| }); } |
| 526 |
|
| |
| 527 |
|
| |
| 528 |
|
| |
| 529 |
96 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_eq) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_eq) { xs::throw_guard(cv, [=]() |
48 |
0 |
48 |
|
| 530 |
|
| { |
| 531 |
48 |
| dVAR; dXSARGS; |
| 532 |
48 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
48 |
48 |
|
| 533 |
0 |
| croak_xs_usage(cv, "THIS, other_arg, _____unused2"); |
| 534 |
|
| { |
| 535 |
|
| bool RETVAL; |
| 536 |
48 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
48 |
0 |
48 |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
48 |
48 |
|
| 537 |
|
| ; |
| 538 |
48 |
| Sv other_arg = ST(1) |
| 539 |
|
| ; |
| 540 |
|
| #line 40 "./xsi/Coordinate.xsi" |
| 541 |
|
| auto* other = xs::in<Coordinate*>(other_arg); |
| 542 |
|
| RETVAL = other ? THIS->equals(*other) : false; |
| 543 |
|
| #line 544 "Geos_xsgen.cc" |
| 544 |
48 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
48 |
0 |
48 |
|
| 545 |
48 |
| } |
| 546 |
48 |
| XSRETURN(1); |
| 547 |
48 |
| }); } |
| 548 |
|
| |
| 549 |
|
| |
| 550 |
|
| |
| 551 |
264 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_toString) { xs::throw_guard(cv, [=]() |
132 |
0 |
132 |
|
| 552 |
|
| { |
| 553 |
132 |
| dVAR; dXSARGS; |
| 554 |
132 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
132 |
132 |
|
| 555 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 556 |
|
| { |
| 557 |
132 |
| std::string RETVAL; |
| 558 |
132 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
113 |
19 |
132 |
| dXSTARG; |
19 |
0 |
19 |
|
| 559 |
132 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
132 |
0 |
132 |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
132 |
132 |
|
| 560 |
|
| ; |
| 561 |
|
| #line 45 "./xsi/Coordinate.xsi" |
| 562 |
|
| RETVAL = THIS->toString(); |
| 563 |
|
| #line 564 "Geos_xsgen.cc" |
| 564 |
132 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
132 |
0 |
132 |
|
| 565 |
132 |
| ST(0) = TARG; |
| 566 |
132 |
| } |
| 567 |
132 |
| XSRETURN(1); |
| 568 |
132 |
| }); } |
| 569 |
|
| |
| 570 |
|
| |
| 571 |
|
| |
| 572 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_distance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_distance) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 573 |
|
| { |
| 574 |
6 |
| dVAR; dXSARGS; |
| 575 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 576 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 577 |
|
| { |
| 578 |
|
| double RETVAL; |
| 579 |
6 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
6 |
0 |
6 |
|
| 580 |
6 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 581 |
|
| ; |
| 582 |
6 |
| Coordinate& other = xs::in<Coordinate&>(ST(1)); |
| 583 |
|
| ; |
| 584 |
|
| #line 47 "./xsi/Coordinate.xsi" |
| 585 |
|
| RETVAL = THIS->distance(other); |
| 586 |
|
| #line 587 "Geos_xsgen.cc" |
| 587 |
6 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
6 |
6 |
|
| 588 |
6 |
| ST(0) = TARG; |
| 589 |
|
| } |
| 590 |
6 |
| XSRETURN(1); |
| 591 |
6 |
| }); } |
| 592 |
|
| |
| 593 |
|
| |
| 594 |
|
| |
| 595 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_hashCode) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_hashCode) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 596 |
|
| { |
| 597 |
0 |
| dVAR; dXSARGS; |
| 598 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 599 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 600 |
|
| { |
| 601 |
|
| int RETVAL; |
| 602 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 603 |
0 |
▶ | Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate* THIS = xs::in<Coordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 604 |
|
| ; |
| 605 |
|
| #line 49 "./xsi/Coordinate.xsi" |
| 606 |
|
| RETVAL = THIS->hashCode(); |
| 607 |
|
| #line 608 "Geos_xsgen.cc" |
| 608 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 609 |
0 |
| ST(0) = TARG; |
| 610 |
|
| } |
| 611 |
0 |
| XSRETURN(1); |
| 612 |
0 |
| }); } |
| 613 |
|
| |
| 614 |
|
| |
| 615 |
|
| |
| 616 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Coordinate_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Coordinate_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 617 |
|
| { |
| 618 |
0 |
| dVAR; dXSARGS; |
| 619 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 620 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 621 |
|
| { |
| 622 |
|
| int RETVAL; |
| 623 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 624 |
|
| #line 51 "./xsi/Coordinate.xsi" |
| 625 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 626 |
|
| #line 627 "Geos_xsgen.cc" |
| 627 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 628 |
0 |
| ST(0) = TARG; |
| 629 |
|
| } |
| 630 |
0 |
| XSRETURN(1); |
| 631 |
0 |
| }); } |
| 632 |
|
| |
| 633 |
|
| |
| 634 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Coordinate.xsi' */ |
| 635 |
|
| |
| 636 |
|
| |
| 637 |
|
| /* INCLUDE: Including 'xsi/Dimension.xsi' from 'Geos.xs' */ |
| 638 |
|
| |
| 639 |
|
| |
| 640 |
|
| |
| 641 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Dimension_toDimensionSymbol) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Dimension_toDimensionSymbol) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 642 |
|
| { |
| 643 |
7 |
| dVAR; dXSARGS; |
| 644 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 645 |
0 |
| croak_xs_usage(cv, "value"); |
| 646 |
|
| { |
| 647 |
7 |
| string RETVAL; |
| 648 |
7 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
7 |
0 |
7 |
| dXSTARG; |
0 |
0 |
0 |
|
| 649 |
7 |
▶ | int value = (int)SvIV(ST(0)) |
Branch: 2 branches
| Branch | True | False | Total |
| int value = (int)SvIV(ST(0)) |
7 |
0 |
7 |
| int value = (int)SvIV(ST(0)) |
6 |
1 |
7 |
|
| 650 |
|
| ; |
| 651 |
|
| #line 5 "./xsi/Dimension.xsi" |
| 652 |
|
| char c = Dimension::toDimensionSymbol(value); |
| 653 |
|
| RETVAL = c; |
| 654 |
|
| #line 655 "Geos_xsgen.cc" |
| 655 |
6 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
6 |
0 |
6 |
|
| 656 |
6 |
| ST(0) = TARG; |
| 657 |
7 |
| } |
| 658 |
6 |
| XSRETURN(1); |
| 659 |
6 |
| }); } |
| 660 |
|
| |
| 661 |
|
| |
| 662 |
|
| |
| 663 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Dimension_toDimensionValue) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Dimension_toDimensionValue) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 664 |
|
| { |
| 665 |
8 |
| dVAR; dXSARGS; |
| 666 |
8 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
8 |
8 |
|
| 667 |
0 |
| croak_xs_usage(cv, "value"); |
| 668 |
|
| { |
| 669 |
|
| int RETVAL; |
| 670 |
8 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
8 |
0 |
8 |
| dXSTARG; |
0 |
0 |
0 |
|
| 671 |
8 |
| string value; |
| 672 |
|
| |
| 673 |
|
| { STRLEN __value_len; |
| 674 |
8 |
| const char* __value_buf = SvPV(ST(0), __value_len); |
| 675 |
8 |
▶ | value.assign(__value_buf, __value_len); } |
Branch: 1 branch
| Branch | True | False | Total |
| value.assign(__value_buf, __value_len); } |
8 |
0 |
8 |
|
| 676 |
|
| ; |
| 677 |
|
| #line 10 "./xsi/Dimension.xsi" |
| 678 |
|
| if (value.size() != 1) throw "string of one char is expected"; |
| 679 |
|
| RETVAL = Dimension::toDimensionValue(value[0]); |
| 680 |
|
| #line 681 "Geos_xsgen.cc" |
| 681 |
6 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
6 |
6 |
| TARGi((IV)RETVAL, 1); |
6 |
0 |
6 |
|
| 682 |
6 |
| ST(0) = TARG; |
| 683 |
8 |
| } |
| 684 |
6 |
| XSRETURN(1); |
| 685 |
6 |
| }); } |
| 686 |
|
| |
| 687 |
|
| |
| 688 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Dimension.xsi' */ |
| 689 |
|
| |
| 690 |
|
| |
| 691 |
|
| /* INCLUDE: Including 'xsi/Envelope.xsi' from 'Geos.xs' */ |
| 692 |
|
| |
| 693 |
|
| |
| 694 |
|
| |
| 695 |
84 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_new) { xs::throw_guard(cv, [=]() |
41 |
0 |
41 |
|
| 696 |
|
| { |
| 697 |
42 |
| dVAR; dXSARGS; |
| 698 |
42 |
▶ | if (items < 1 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 5) |
42 |
0 |
42 |
| if (items < 1 || items > 5) |
0 |
42 |
42 |
|
| 699 |
0 |
| croak_xs_usage(cv, "_____unused3, arg1= Sv(), arg2= NULL, arg3= NULL, arg4= NULL"); |
| 700 |
|
| { |
| 701 |
|
| Envelope * RETVAL; |
| 702 |
42 |
| Sv arg1; |
| 703 |
|
| SV* arg2; |
| 704 |
|
| SV* arg3; |
| 705 |
|
| SV* arg4; |
| 706 |
|
| |
| 707 |
42 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
41 |
42 |
|
| 708 |
1 |
| arg1 = Sv(); |
| 709 |
|
| else { |
| 710 |
41 |
▶ | arg1 = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| arg1 = ST(1) |
41 |
0 |
41 |
|
| 711 |
|
| ; |
| 712 |
|
| } |
| 713 |
|
| |
| 714 |
42 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
3 |
39 |
42 |
|
| 715 |
3 |
| arg2 = NULL; |
| 716 |
|
| else { |
| 717 |
39 |
| arg2 = ST(2) |
| 718 |
|
| ; |
| 719 |
|
| } |
| 720 |
|
| |
| 721 |
42 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
6 |
36 |
42 |
|
| 722 |
6 |
| arg3 = NULL; |
| 723 |
|
| else { |
| 724 |
36 |
| arg3 = ST(3) |
| 725 |
|
| ; |
| 726 |
|
| } |
| 727 |
|
| |
| 728 |
42 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
6 |
36 |
42 |
|
| 729 |
6 |
| arg4 = NULL; |
| 730 |
|
| else { |
| 731 |
36 |
| arg4 = ST(4) |
| 732 |
|
| ; |
| 733 |
|
| } |
| 734 |
|
| #line 5 "./xsi/Envelope.xsi" |
| 735 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 736 |
|
| if (items == 1) RETVAL = new Envelope(); |
| 737 |
|
| else if (items == 2) { |
| 738 |
|
| if (!arg1.is_simple()) { |
| 739 |
|
| auto& c = xs::in<Coordinate&>(arg1); |
| 740 |
|
| RETVAL = new Envelope(c); |
| 741 |
|
| } |
| 742 |
|
| else { |
| 743 |
|
| if(!arg1) throw("undef not allowed"); |
| 744 |
|
| panda::string_view sw = Simple(arg1); |
| 745 |
|
| std::string str { sw.begin(), sw.end() }; |
| 746 |
|
| RETVAL = new Envelope(str); |
| 747 |
|
| } |
| 748 |
|
| } |
| 749 |
|
| else if (items == 3) { |
| 750 |
|
| auto& c1 = xs::in<Coordinate&>(arg1); |
| 751 |
|
| auto& c2 = xs::in<Coordinate&>(arg2); |
| 752 |
|
| RETVAL = new Envelope(c1, c2); |
| 753 |
|
| } |
| 754 |
|
| else if (items == 5) RETVAL = new Envelope(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
| 755 |
|
| else throw ("unsupported constructor"); |
| 756 |
|
| #line 757 "Geos_xsgen.cc" |
| 757 |
|
| { |
| 758 |
|
| SV * RETVALSV; |
| 759 |
41 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
41 |
0 |
41 |
|
| 760 |
41 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
41 |
0 |
41 |
|
| 761 |
41 |
| ST(0) = RETVALSV; |
| 762 |
|
| } |
| 763 |
43 |
| } |
| 764 |
41 |
| XSRETURN(1); |
| 765 |
41 |
| }); } |
| 766 |
|
| |
| 767 |
|
| |
| 768 |
|
| |
| 769 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_init) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_init) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 770 |
|
| { |
| 771 |
6 |
| dVAR; dXSARGS; |
| 772 |
6 |
▶ | if (items < 1 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 5) |
6 |
0 |
6 |
| if (items < 1 || items > 5) |
0 |
6 |
6 |
|
| 773 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL, arg2= NULL, arg3= NULL, arg4= NULL"); |
| 774 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 775 |
6 |
| SP -= items; |
| 776 |
|
| { |
| 777 |
6 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 778 |
|
| ; |
| 779 |
|
| SV* arg1; |
| 780 |
|
| SV* arg2; |
| 781 |
|
| SV* arg3; |
| 782 |
|
| SV* arg4; |
| 783 |
|
| |
| 784 |
6 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
3 |
3 |
6 |
|
| 785 |
3 |
| arg1 = NULL; |
| 786 |
|
| else { |
| 787 |
3 |
| arg1 = ST(1) |
| 788 |
|
| ; |
| 789 |
|
| } |
| 790 |
|
| |
| 791 |
6 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
4 |
2 |
6 |
|
| 792 |
4 |
| arg2 = NULL; |
| 793 |
|
| else { |
| 794 |
2 |
| arg2 = ST(2) |
| 795 |
|
| ; |
| 796 |
|
| } |
| 797 |
|
| |
| 798 |
6 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
5 |
1 |
6 |
|
| 799 |
5 |
| arg3 = NULL; |
| 800 |
|
| else { |
| 801 |
1 |
| arg3 = ST(3) |
| 802 |
|
| ; |
| 803 |
|
| } |
| 804 |
|
| |
| 805 |
6 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
5 |
1 |
6 |
|
| 806 |
5 |
| arg4 = NULL; |
| 807 |
|
| else { |
| 808 |
1 |
| arg4 = ST(4) |
| 809 |
|
| ; |
| 810 |
|
| } |
| 811 |
|
| #line 28 "./xsi/Envelope.xsi" |
| 812 |
|
| if (items == 1) THIS->init(); |
| 813 |
|
| else if (items == 2) { |
| 814 |
|
| auto& c = xs::in<Coordinate&>(arg1); |
| 815 |
|
| THIS->init(c); |
| 816 |
|
| } |
| 817 |
|
| else if (items == 3) { |
| 818 |
|
| auto c1 = xs::in<Coordinate&>(arg1); |
| 819 |
|
| auto c2 = xs::in<Coordinate&>(arg2); |
| 820 |
|
| THIS->init(c1, c2); |
| 821 |
|
| } |
| 822 |
|
| else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
| 823 |
|
| else throw ("unsupported arguments"); |
| 824 |
|
| #line 825 "Geos_xsgen.cc" |
| 825 |
6 |
| PUTBACK; |
| 826 |
6 |
| return; |
| 827 |
|
| } |
| 828 |
6 |
| }); } |
| 829 |
|
| |
| 830 |
|
| |
| 831 |
|
| |
| 832 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_setToNull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_setToNull) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 833 |
|
| { |
| 834 |
1 |
| dVAR; dXSARGS; |
| 835 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 836 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 837 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 838 |
1 |
| SP -= items; |
| 839 |
|
| { |
| 840 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 841 |
|
| ; |
| 842 |
|
| #line 42 "./xsi/Envelope.xsi" |
| 843 |
|
| THIS->setToNull(); |
| 844 |
|
| #line 845 "Geos_xsgen.cc" |
| 845 |
1 |
| PUTBACK; |
| 846 |
1 |
| return; |
| 847 |
|
| } |
| 848 |
1 |
| }); } |
| 849 |
|
| |
| 850 |
|
| |
| 851 |
|
| |
| 852 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getArea) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 853 |
|
| { |
| 854 |
2 |
| dVAR; dXSARGS; |
| 855 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 856 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 857 |
|
| { |
| 858 |
|
| double RETVAL; |
| 859 |
2 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
|
| 860 |
2 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 861 |
|
| ; |
| 862 |
|
| #line 44 "./xsi/Envelope.xsi" |
| 863 |
|
| RETVAL = THIS->getArea(); |
| 864 |
|
| #line 865 "Geos_xsgen.cc" |
| 865 |
2 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
2 |
2 |
|
| 866 |
2 |
| ST(0) = TARG; |
| 867 |
|
| } |
| 868 |
2 |
| XSRETURN(1); |
| 869 |
2 |
| }); } |
| 870 |
|
| |
| 871 |
|
| |
| 872 |
|
| |
| 873 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getMaxY) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getMaxY) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 874 |
|
| { |
| 875 |
1 |
| dVAR; dXSARGS; |
| 876 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 877 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 878 |
|
| { |
| 879 |
|
| double RETVAL; |
| 880 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 881 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 882 |
|
| ; |
| 883 |
|
| #line 46 "./xsi/Envelope.xsi" |
| 884 |
|
| RETVAL = THIS->getMaxY(); |
| 885 |
|
| #line 886 "Geos_xsgen.cc" |
| 886 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 887 |
1 |
| ST(0) = TARG; |
| 888 |
|
| } |
| 889 |
1 |
| XSRETURN(1); |
| 890 |
1 |
| }); } |
| 891 |
|
| |
| 892 |
|
| |
| 893 |
|
| |
| 894 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getMaxX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getMaxX) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 895 |
|
| { |
| 896 |
1 |
| dVAR; dXSARGS; |
| 897 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 898 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 899 |
|
| { |
| 900 |
|
| double RETVAL; |
| 901 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 902 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 903 |
|
| ; |
| 904 |
|
| #line 48 "./xsi/Envelope.xsi" |
| 905 |
|
| RETVAL = THIS->getMaxX(); |
| 906 |
|
| #line 907 "Geos_xsgen.cc" |
| 907 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 908 |
1 |
| ST(0) = TARG; |
| 909 |
|
| } |
| 910 |
1 |
| XSRETURN(1); |
| 911 |
1 |
| }); } |
| 912 |
|
| |
| 913 |
|
| |
| 914 |
|
| |
| 915 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getMinY) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getMinY) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 916 |
|
| { |
| 917 |
1 |
| dVAR; dXSARGS; |
| 918 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 919 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 920 |
|
| { |
| 921 |
|
| double RETVAL; |
| 922 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 923 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 924 |
|
| ; |
| 925 |
|
| #line 50 "./xsi/Envelope.xsi" |
| 926 |
|
| RETVAL = THIS->getMinY(); |
| 927 |
|
| #line 928 "Geos_xsgen.cc" |
| 928 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 929 |
1 |
| ST(0) = TARG; |
| 930 |
|
| } |
| 931 |
1 |
| XSRETURN(1); |
| 932 |
1 |
| }); } |
| 933 |
|
| |
| 934 |
|
| |
| 935 |
|
| |
| 936 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getMinX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getMinX) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 937 |
|
| { |
| 938 |
1 |
| dVAR; dXSARGS; |
| 939 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 940 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 941 |
|
| { |
| 942 |
|
| double RETVAL; |
| 943 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 944 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 945 |
|
| ; |
| 946 |
|
| #line 52 "./xsi/Envelope.xsi" |
| 947 |
|
| RETVAL = THIS->getMinX(); |
| 948 |
|
| #line 949 "Geos_xsgen.cc" |
| 949 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 950 |
1 |
| ST(0) = TARG; |
| 951 |
|
| } |
| 952 |
1 |
| XSRETURN(1); |
| 953 |
1 |
| }); } |
| 954 |
|
| |
| 955 |
|
| |
| 956 |
|
| |
| 957 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getWidth) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getWidth) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 958 |
|
| { |
| 959 |
1 |
| dVAR; dXSARGS; |
| 960 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 961 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 962 |
|
| { |
| 963 |
|
| double RETVAL; |
| 964 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 965 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 966 |
|
| ; |
| 967 |
|
| #line 54 "./xsi/Envelope.xsi" |
| 968 |
|
| RETVAL = THIS->getWidth(); |
| 969 |
|
| #line 970 "Geos_xsgen.cc" |
| 970 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 971 |
1 |
| ST(0) = TARG; |
| 972 |
|
| } |
| 973 |
1 |
| XSRETURN(1); |
| 974 |
1 |
| }); } |
| 975 |
|
| |
| 976 |
|
| |
| 977 |
|
| |
| 978 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_getHeight) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_getHeight) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 979 |
|
| { |
| 980 |
1 |
| dVAR; dXSARGS; |
| 981 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 982 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 983 |
|
| { |
| 984 |
|
| double RETVAL; |
| 985 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 986 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 987 |
|
| ; |
| 988 |
|
| #line 56 "./xsi/Envelope.xsi" |
| 989 |
|
| RETVAL = THIS->getHeight(); |
| 990 |
|
| #line 991 "Geos_xsgen.cc" |
| 991 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 992 |
1 |
| ST(0) = TARG; |
| 993 |
|
| } |
| 994 |
1 |
| XSRETURN(1); |
| 995 |
1 |
| }); } |
| 996 |
|
| |
| 997 |
|
| |
| 998 |
|
| |
| 999 |
18 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_isNull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_isNull) { xs::throw_guard(cv, [=]() |
9 |
0 |
9 |
|
| 1000 |
|
| { |
| 1001 |
9 |
| dVAR; dXSARGS; |
| 1002 |
9 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9 |
9 |
|
| 1003 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1004 |
|
| { |
| 1005 |
|
| bool RETVAL; |
| 1006 |
9 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
9 |
9 |
|
| 1007 |
|
| ; |
| 1008 |
|
| #line 58 "./xsi/Envelope.xsi" |
| 1009 |
|
| RETVAL = THIS->isNull(); |
| 1010 |
|
| #line 1011 "Geos_xsgen.cc" |
| 1011 |
9 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
3 |
6 |
9 |
|
| 1012 |
|
| } |
| 1013 |
9 |
| XSRETURN(1); |
| 1014 |
9 |
| }); } |
| 1015 |
|
| |
| 1016 |
|
| |
| 1017 |
|
| |
| 1018 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_hashCode) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_hashCode) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1019 |
|
| { |
| 1020 |
1 |
| dVAR; dXSARGS; |
| 1021 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1022 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1023 |
|
| { |
| 1024 |
|
| int RETVAL; |
| 1025 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 1026 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1027 |
|
| ; |
| 1028 |
|
| #line 60 "./xsi/Envelope.xsi" |
| 1029 |
|
| RETVAL = THIS->hashCode(); |
| 1030 |
|
| #line 1031 "Geos_xsgen.cc" |
| 1031 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 1032 |
1 |
| ST(0) = TARG; |
| 1033 |
|
| } |
| 1034 |
1 |
| XSRETURN(1); |
| 1035 |
1 |
| }); } |
| 1036 |
|
| |
| 1037 |
|
| |
| 1038 |
|
| |
| 1039 |
28 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_toString) { xs::throw_guard(cv, [=]() |
14 |
0 |
14 |
|
| 1040 |
|
| { |
| 1041 |
14 |
| dVAR; dXSARGS; |
| 1042 |
14 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
14 |
14 |
|
| 1043 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 1044 |
|
| { |
| 1045 |
14 |
| std::string RETVAL; |
| 1046 |
14 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
7 |
7 |
14 |
| dXSTARG; |
7 |
0 |
7 |
|
| 1047 |
14 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
14 |
0 |
14 |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
14 |
14 |
|
| 1048 |
|
| ; |
| 1049 |
|
| #line 62 "./xsi/Envelope.xsi" |
| 1050 |
|
| RETVAL = THIS->toString(); |
| 1051 |
|
| #line 1052 "Geos_xsgen.cc" |
| 1052 |
14 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
14 |
0 |
14 |
|
| 1053 |
14 |
| ST(0) = TARG; |
| 1054 |
14 |
| } |
| 1055 |
14 |
| XSRETURN(1); |
| 1056 |
14 |
| }); } |
| 1057 |
|
| |
| 1058 |
|
| |
| 1059 |
|
| |
| 1060 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_eq) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_eq) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 1061 |
|
| { |
| 1062 |
8 |
| dVAR; dXSARGS; |
| 1063 |
8 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
8 |
8 |
|
| 1064 |
0 |
| croak_xs_usage(cv, "THIS, other_arg, _____unused4"); |
| 1065 |
|
| { |
| 1066 |
|
| bool RETVAL; |
| 1067 |
8 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
8 |
0 |
8 |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
8 |
8 |
|
| 1068 |
|
| ; |
| 1069 |
8 |
| Sv other_arg = ST(1) |
| 1070 |
|
| ; |
| 1071 |
|
| #line 65 "./xsi/Envelope.xsi" |
| 1072 |
|
| auto other = xs::in<Envelope*>(other_arg); |
| 1073 |
|
| RETVAL = other ? THIS->equals(other) : false; |
| 1074 |
|
| #line 1075 "Geos_xsgen.cc" |
| 1075 |
8 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
8 |
0 |
8 |
|
| 1076 |
8 |
| } |
| 1077 |
8 |
| XSRETURN(1); |
| 1078 |
8 |
| }); } |
| 1079 |
|
| |
| 1080 |
|
| |
| 1081 |
|
| |
| 1082 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_centre) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_centre) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1083 |
|
| { |
| 1084 |
1 |
| dVAR; dXSARGS; |
| 1085 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1086 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1087 |
|
| { |
| 1088 |
|
| Coordinate * RETVAL; |
| 1089 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1090 |
|
| ; |
| 1091 |
|
| #line 70 "./xsi/Envelope.xsi" |
| 1092 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 1093 |
|
| Coordinate c; |
| 1094 |
|
| if (!THIS->centre(c)) XSRETURN_UNDEF; |
| 1095 |
|
| RETVAL = new Coordinate(c); |
| 1096 |
|
| #line 1097 "Geos_xsgen.cc" |
| 1097 |
|
| { |
| 1098 |
|
| SV * RETVALSV; |
| 1099 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 1100 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 1101 |
1 |
| ST(0) = RETVALSV; |
| 1102 |
|
| } |
| 1103 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 1104 |
1 |
| XSRETURN(1); |
| 1105 |
1 |
| }); } |
| 1106 |
|
| |
| 1107 |
|
| |
| 1108 |
|
| |
| 1109 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_contains) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_contains) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 1110 |
|
| { |
| 1111 |
7 |
| dVAR; dXSARGS; |
| 1112 |
7 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
7 |
0 |
7 |
| if (items < 2 || items > 3) |
0 |
7 |
7 |
|
| 1113 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL"); |
| 1114 |
|
| { |
| 1115 |
|
| bool RETVAL; |
| 1116 |
7 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 1117 |
|
| ; |
| 1118 |
7 |
| SV* arg1 = ST(1) |
| 1119 |
|
| ; |
| 1120 |
|
| SV* arg2; |
| 1121 |
|
| |
| 1122 |
7 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
5 |
2 |
7 |
|
| 1123 |
5 |
| arg2 = NULL; |
| 1124 |
|
| else { |
| 1125 |
2 |
| arg2 = ST(2) |
| 1126 |
|
| ; |
| 1127 |
|
| } |
| 1128 |
|
| #line 76 "./xsi/Envelope.xsi" |
| 1129 |
|
| if (!arg2) { |
| 1130 |
|
| Object obj {arg1}; |
| 1131 |
|
| if(!obj) throw("wrong argument"); |
| 1132 |
|
| if (obj.stash().name() == "Geo::Geos::Envelope") { |
| 1133 |
|
| auto e = xs::in<Envelope*>(obj); |
| 1134 |
|
| RETVAL = THIS->contains(e); |
| 1135 |
|
| } |
| 1136 |
|
| else { |
| 1137 |
|
| auto& c = xs::in<Coordinate&>(obj); |
| 1138 |
|
| RETVAL = THIS->contains(c); |
| 1139 |
|
| } |
| 1140 |
|
| } |
| 1141 |
|
| else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
| 1142 |
|
| #line 1143 "Geos_xsgen.cc" |
| 1143 |
7 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
4 |
3 |
7 |
|
| 1144 |
|
| } |
| 1145 |
7 |
| XSRETURN(1); |
| 1146 |
7 |
| }); } |
| 1147 |
|
| |
| 1148 |
|
| |
| 1149 |
|
| |
| 1150 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_covers) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_covers) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 1151 |
|
| { |
| 1152 |
7 |
| dVAR; dXSARGS; |
| 1153 |
7 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
7 |
0 |
7 |
| if (items < 2 || items > 3) |
0 |
7 |
7 |
|
| 1154 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL"); |
| 1155 |
|
| { |
| 1156 |
|
| bool RETVAL; |
| 1157 |
7 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 1158 |
|
| ; |
| 1159 |
7 |
| SV* arg1 = ST(1) |
| 1160 |
|
| ; |
| 1161 |
|
| SV* arg2; |
| 1162 |
|
| |
| 1163 |
7 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
5 |
2 |
7 |
|
| 1164 |
5 |
| arg2 = NULL; |
| 1165 |
|
| else { |
| 1166 |
2 |
| arg2 = ST(2) |
| 1167 |
|
| ; |
| 1168 |
|
| } |
| 1169 |
|
| #line 92 "./xsi/Envelope.xsi" |
| 1170 |
|
| if (!arg2) { |
| 1171 |
|
| Object obj {arg1}; |
| 1172 |
|
| if(!obj) throw("wrong argument"); |
| 1173 |
|
| if (obj.stash().name() == "Geo::Geos::Envelope") { |
| 1174 |
|
| auto e = xs::in<Envelope*>(obj); |
| 1175 |
|
| RETVAL = THIS->covers(e); |
| 1176 |
|
| } |
| 1177 |
|
| else { |
| 1178 |
|
| auto& c = xs::in<Coordinate&>(obj); |
| 1179 |
|
| RETVAL = THIS->covers(c); |
| 1180 |
|
| } |
| 1181 |
|
| } |
| 1182 |
|
| else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
| 1183 |
|
| #line 1184 "Geos_xsgen.cc" |
| 1184 |
7 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
4 |
3 |
7 |
|
| 1185 |
|
| } |
| 1186 |
7 |
| XSRETURN(1); |
| 1187 |
7 |
| }); } |
| 1188 |
|
| |
| 1189 |
|
| |
| 1190 |
|
| |
| 1191 |
22 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_intersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_intersects) { xs::throw_guard(cv, [=]() |
11 |
0 |
11 |
|
| 1192 |
|
| { |
| 1193 |
11 |
| dVAR; dXSARGS; |
| 1194 |
11 |
▶ | if (items < 2 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 4) |
11 |
0 |
11 |
| if (items < 2 || items > 4) |
0 |
11 |
11 |
|
| 1195 |
0 |
| croak_xs_usage(cv, "maybe_self, arg1, arg2= NULL, arg3= NULL"); |
| 1196 |
|
| { |
| 1197 |
|
| bool RETVAL; |
| 1198 |
11 |
▶ | Object maybe_self = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Object maybe_self = ST(0); |
11 |
0 |
11 |
|
| 1199 |
11 |
▶ | if (!maybe_self && SvOK(ST(0))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!maybe_self && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
11 |
11 |
| if (!maybe_self && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!maybe_self && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
11 |
11 |
|
| 1200 |
|
| ; |
| 1201 |
11 |
| SV* arg1 = ST(1) |
| 1202 |
|
| ; |
| 1203 |
|
| SV* arg2; |
| 1204 |
|
| SV* arg3; |
| 1205 |
|
| |
| 1206 |
11 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
5 |
6 |
11 |
|
| 1207 |
5 |
| arg2 = NULL; |
| 1208 |
|
| else { |
| 1209 |
6 |
| arg2 = ST(2) |
| 1210 |
|
| ; |
| 1211 |
|
| } |
| 1212 |
|
| |
| 1213 |
11 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
9 |
2 |
11 |
|
| 1214 |
9 |
| arg3 = NULL; |
| 1215 |
|
| else { |
| 1216 |
2 |
| arg3 = ST(3) |
| 1217 |
|
| ; |
| 1218 |
|
| } |
| 1219 |
|
| #line 108 "./xsi/Envelope.xsi" |
| 1220 |
|
| if (!maybe_self) throw("wrong argument"); |
| 1221 |
|
| auto arg0_stash = maybe_self.stash().name(); |
| 1222 |
|
| if (arg0_stash != "Geo::Geos::Envelope") { |
| 1223 |
|
| // static method |
| 1224 |
|
| auto& p1 = xs::in<Coordinate&>(maybe_self); |
| 1225 |
|
| auto& p2 = xs::in<Coordinate&>(arg1); |
| 1226 |
|
| if (!arg3) { |
| 1227 |
|
| auto& q = xs::in<Coordinate&>(arg2); |
| 1228 |
|
| RETVAL = Envelope::intersects(p1, p2, q); |
| 1229 |
|
| } |
| 1230 |
|
| else { |
| 1231 |
|
| auto& q1 = xs::in<Coordinate&>(arg2); |
| 1232 |
|
| auto& q2 = xs::in<Coordinate&>(arg3); |
| 1233 |
|
| RETVAL = Envelope::intersects(p1, p2, q1, q2); |
| 1234 |
|
| } |
| 1235 |
|
| } else { |
| 1236 |
|
| // object method |
| 1237 |
|
| Envelope& self = xs::in<Envelope&>(maybe_self); |
| 1238 |
|
| if (!arg2) { |
| 1239 |
|
| Object obj {arg1}; |
| 1240 |
|
| if(!obj) throw("wrong argument"); |
| 1241 |
|
| if (obj.stash().name() == "Geo::Geos::Envelope") { |
| 1242 |
|
| auto& e = xs::in<Envelope&>(obj); |
| 1243 |
|
| RETVAL = self.intersects(&e); |
| 1244 |
|
| } |
| 1245 |
|
| else { |
| 1246 |
|
| auto& c = xs::in<Coordinate&>(obj); |
| 1247 |
|
| RETVAL = self.intersects(c); |
| 1248 |
|
| } |
| 1249 |
|
| } |
| 1250 |
|
| else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
| 1251 |
|
| } |
| 1252 |
|
| #line 1253 "Geos_xsgen.cc" |
| 1253 |
11 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
7 |
4 |
11 |
|
| 1254 |
11 |
| } |
| 1255 |
11 |
| XSRETURN(1); |
| 1256 |
11 |
| }); } |
| 1257 |
|
| |
| 1258 |
|
| |
| 1259 |
|
| |
| 1260 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_expandToInclude) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_expandToInclude) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 1261 |
|
| { |
| 1262 |
3 |
| dVAR; dXSARGS; |
| 1263 |
3 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
3 |
0 |
3 |
| if (items < 2 || items > 3) |
0 |
3 |
3 |
|
| 1264 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL"); |
| 1265 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1266 |
3 |
| SP -= items; |
| 1267 |
|
| { |
| 1268 |
3 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 1269 |
|
| ; |
| 1270 |
3 |
| SV* arg1 = ST(1) |
| 1271 |
|
| ; |
| 1272 |
|
| SV* arg2; |
| 1273 |
|
| |
| 1274 |
3 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
2 |
1 |
3 |
|
| 1275 |
2 |
| arg2 = NULL; |
| 1276 |
|
| else { |
| 1277 |
1 |
| arg2 = ST(2) |
| 1278 |
|
| ; |
| 1279 |
|
| } |
| 1280 |
|
| #line 143 "./xsi/Envelope.xsi" |
| 1281 |
|
| if (!arg2) { |
| 1282 |
|
| Object obj {arg1}; |
| 1283 |
|
| if(!obj) throw("wrong argument"); |
| 1284 |
|
| if (obj.stash().name() == "Geo::Geos::Envelope") { |
| 1285 |
|
| auto& e = xs::in<Envelope&>(obj); |
| 1286 |
|
| THIS->expandToInclude(&e); |
| 1287 |
|
| } |
| 1288 |
|
| else { |
| 1289 |
|
| auto& c = xs::in<Coordinate&>(obj); |
| 1290 |
|
| THIS->expandToInclude(c); |
| 1291 |
|
| } |
| 1292 |
|
| } |
| 1293 |
|
| else THIS->expandToInclude(Simple(arg1), Simple(arg2)); |
| 1294 |
|
| #line 1295 "Geos_xsgen.cc" |
| 1295 |
3 |
| PUTBACK; |
| 1296 |
3 |
| return; |
| 1297 |
|
| } |
| 1298 |
3 |
| }); } |
| 1299 |
|
| |
| 1300 |
|
| |
| 1301 |
|
| |
| 1302 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_distance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_distance) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1303 |
|
| { |
| 1304 |
1 |
| dVAR; dXSARGS; |
| 1305 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 1306 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 1307 |
|
| { |
| 1308 |
|
| double RETVAL; |
| 1309 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 1310 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1311 |
|
| ; |
| 1312 |
1 |
| Envelope& other = xs::in<Envelope&>(ST(1)); |
| 1313 |
|
| ; |
| 1314 |
|
| #line 158 "./xsi/Envelope.xsi" |
| 1315 |
|
| RETVAL = THIS->distance(&other); |
| 1316 |
|
| #line 1317 "Geos_xsgen.cc" |
| 1317 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 1318 |
1 |
| ST(0) = TARG; |
| 1319 |
|
| } |
| 1320 |
1 |
| XSRETURN(1); |
| 1321 |
1 |
| }); } |
| 1322 |
|
| |
| 1323 |
|
| |
| 1324 |
|
| |
| 1325 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_translate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_translate) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1326 |
|
| { |
| 1327 |
1 |
| dVAR; dXSARGS; |
| 1328 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 1329 |
0 |
| croak_xs_usage(cv, "THIS, tX, tY"); |
| 1330 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1331 |
1 |
| SP -= items; |
| 1332 |
|
| { |
| 1333 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1334 |
|
| ; |
| 1335 |
1 |
| double tX = (double)SvNV(ST(1)) |
| 1336 |
|
| ; |
| 1337 |
1 |
| double tY = (double)SvNV(ST(2)) |
| 1338 |
|
| ; |
| 1339 |
|
| #line 160 "./xsi/Envelope.xsi" |
| 1340 |
|
| THIS->translate(tX, tY); |
| 1341 |
|
| #line 1342 "Geos_xsgen.cc" |
| 1342 |
1 |
| PUTBACK; |
| 1343 |
1 |
| return; |
| 1344 |
|
| } |
| 1345 |
1 |
| }); } |
| 1346 |
|
| |
| 1347 |
|
| |
| 1348 |
|
| |
| 1349 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_expandBy) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_expandBy) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1350 |
|
| { |
| 1351 |
1 |
| dVAR; dXSARGS; |
| 1352 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 1353 |
0 |
| croak_xs_usage(cv, "THIS, dX, dY"); |
| 1354 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1355 |
1 |
| SP -= items; |
| 1356 |
|
| { |
| 1357 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1358 |
|
| ; |
| 1359 |
1 |
| double dX = (double)SvNV(ST(1)) |
| 1360 |
|
| ; |
| 1361 |
1 |
| double dY = (double)SvNV(ST(2)) |
| 1362 |
|
| ; |
| 1363 |
|
| #line 162 "./xsi/Envelope.xsi" |
| 1364 |
|
| THIS->expandBy(dX, dY); |
| 1365 |
|
| #line 1366 "Geos_xsgen.cc" |
| 1366 |
1 |
| PUTBACK; |
| 1367 |
1 |
| return; |
| 1368 |
|
| } |
| 1369 |
1 |
| }); } |
| 1370 |
|
| |
| 1371 |
|
| |
| 1372 |
|
| |
| 1373 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_intersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_intersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1374 |
|
| { |
| 1375 |
1 |
| dVAR; dXSARGS; |
| 1376 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 1377 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 1378 |
|
| { |
| 1379 |
|
| Envelope * RETVAL; |
| 1380 |
1 |
▶ | Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| Envelope* THIS = xs::in<Envelope *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1381 |
|
| ; |
| 1382 |
1 |
▶ | Envelope& other = xs::in<Envelope&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope& other = xs::in<Envelope&>(ST(1)); |
1 |
0 |
1 |
|
| 1383 |
|
| ; |
| 1384 |
|
| #line 165 "./xsi/Envelope.xsi" |
| 1385 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 1386 |
|
| Envelope e; |
| 1387 |
|
| if (!THIS->intersection(other, e)) XSRETURN_UNDEF; |
| 1388 |
|
| RETVAL = new Envelope(e); |
| 1389 |
|
| #line 1390 "Geos_xsgen.cc" |
| 1390 |
|
| { |
| 1391 |
|
| SV * RETVALSV; |
| 1392 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 1393 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 1394 |
1 |
| ST(0) = RETVALSV; |
| 1395 |
|
| } |
| 1396 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 1397 |
1 |
| XSRETURN(1); |
| 1398 |
1 |
| }); } |
| 1399 |
|
| |
| 1400 |
|
| |
| 1401 |
|
| |
| 1402 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Envelope_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Envelope_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 1403 |
|
| { |
| 1404 |
0 |
| dVAR; dXSARGS; |
| 1405 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 1406 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 1407 |
|
| { |
| 1408 |
|
| int RETVAL; |
| 1409 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 1410 |
|
| #line 170 "./xsi/Envelope.xsi" |
| 1411 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 1412 |
|
| #line 1413 "Geos_xsgen.cc" |
| 1413 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 1414 |
0 |
| ST(0) = TARG; |
| 1415 |
|
| } |
| 1416 |
0 |
| XSRETURN(1); |
| 1417 |
0 |
| }); } |
| 1418 |
|
| |
| 1419 |
|
| |
| 1420 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Envelope.xsi' */ |
| 1421 |
|
| |
| 1422 |
|
| |
| 1423 |
|
| /* INCLUDE: Including 'xsi/PrecisionModel.xsi' from 'Geos.xs' */ |
| 1424 |
|
| |
| 1425 |
|
| |
| 1426 |
|
| |
| 1427 |
56 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_new) { xs::throw_guard(cv, [=]() |
28 |
0 |
28 |
|
| 1428 |
|
| { |
| 1429 |
28 |
| dVAR; dXSARGS; |
| 1430 |
28 |
▶ | if (items < 1 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 4) |
28 |
0 |
28 |
| if (items < 1 || items > 4) |
0 |
28 |
28 |
|
| 1431 |
0 |
| croak_xs_usage(cv, "_____unused5, arg1= NULL, arg2= NULL, arg3= NULL"); |
| 1432 |
|
| { |
| 1433 |
|
| PrecisionModel * RETVAL; |
| 1434 |
|
| SV* arg1; |
| 1435 |
|
| SV* arg2; |
| 1436 |
|
| SV* arg3; |
| 1437 |
|
| |
| 1438 |
28 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
15 |
13 |
28 |
|
| 1439 |
15 |
| arg1 = NULL; |
| 1440 |
|
| else { |
| 1441 |
13 |
| arg1 = ST(1) |
| 1442 |
|
| ; |
| 1443 |
|
| } |
| 1444 |
|
| |
| 1445 |
28 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
27 |
1 |
28 |
|
| 1446 |
27 |
| arg2 = NULL; |
| 1447 |
|
| else { |
| 1448 |
1 |
| arg2 = ST(2) |
| 1449 |
|
| ; |
| 1450 |
|
| } |
| 1451 |
|
| |
| 1452 |
28 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
27 |
1 |
28 |
|
| 1453 |
27 |
| arg3 = NULL; |
| 1454 |
|
| else { |
| 1455 |
1 |
| arg3 = ST(3) |
| 1456 |
|
| ; |
| 1457 |
|
| } |
| 1458 |
|
| #line 5 "./xsi/PrecisionModel.xsi" |
| 1459 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 1460 |
|
| if (!arg1) RETVAL = new PrecisionModel(); |
| 1461 |
|
| else { |
| 1462 |
|
| if(SvIOK(arg1)) { |
| 1463 |
|
| PrecisionModel::Type model = static_cast<PrecisionModel::Type>(SvIV(arg1)); |
| 1464 |
|
| RETVAL = new PrecisionModel(model); |
| 1465 |
|
| } |
| 1466 |
|
| else { |
| 1467 |
|
| double scale = SvNV(arg1); |
| 1468 |
|
| if (arg2) { |
| 1469 |
|
| if(!arg3) throw("undef not allowed"); |
| 1470 |
|
| double offsetX = SvNV(arg2); |
| 1471 |
|
| double offsetY = SvNV(arg3); |
| 1472 |
|
| RETVAL = new PrecisionModel(scale, offsetX, offsetY); |
| 1473 |
|
| } |
| 1474 |
|
| else RETVAL = new PrecisionModel(scale); |
| 1475 |
|
| } |
| 1476 |
|
| } |
| 1477 |
|
| #line 1478 "Geos_xsgen.cc" |
| 1478 |
|
| { |
| 1479 |
|
| SV * RETVALSV; |
| 1480 |
28 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
28 |
0 |
28 |
|
| 1481 |
28 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
28 |
0 |
28 |
|
| 1482 |
28 |
| ST(0) = RETVALSV; |
| 1483 |
|
| } |
| 1484 |
28 |
| } |
| 1485 |
28 |
| XSRETURN(1); |
| 1486 |
28 |
| }); } |
| 1487 |
|
| |
| 1488 |
|
| |
| 1489 |
|
| |
| 1490 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_getScale) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_getScale) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 1491 |
|
| { |
| 1492 |
2 |
| dVAR; dXSARGS; |
| 1493 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 1494 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1495 |
|
| { |
| 1496 |
|
| double RETVAL; |
| 1497 |
2 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
|
| 1498 |
2 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 1499 |
|
| ; |
| 1500 |
|
| #line 24 "./xsi/PrecisionModel.xsi" |
| 1501 |
|
| RETVAL = THIS->getScale(); |
| 1502 |
|
| #line 1503 "Geos_xsgen.cc" |
| 1503 |
2 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
2 |
2 |
|
| 1504 |
2 |
| ST(0) = TARG; |
| 1505 |
|
| } |
| 1506 |
2 |
| XSRETURN(1); |
| 1507 |
2 |
| }); } |
| 1508 |
|
| |
| 1509 |
|
| |
| 1510 |
|
| |
| 1511 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_getOffsetX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_getOffsetX) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 1512 |
|
| { |
| 1513 |
0 |
| dVAR; dXSARGS; |
| 1514 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 1515 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1516 |
|
| { |
| 1517 |
|
| double RETVAL; |
| 1518 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 1519 |
0 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 1520 |
|
| ; |
| 1521 |
|
| #line 26 "./xsi/PrecisionModel.xsi" |
| 1522 |
|
| RETVAL = THIS->getOffsetX(); |
| 1523 |
|
| #line 1524 "Geos_xsgen.cc" |
| 1524 |
0 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
0 |
0 |
|
| 1525 |
0 |
| ST(0) = TARG; |
| 1526 |
|
| } |
| 1527 |
0 |
| XSRETURN(1); |
| 1528 |
0 |
| }); } |
| 1529 |
|
| |
| 1530 |
|
| |
| 1531 |
|
| |
| 1532 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_getOffsetY) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_getOffsetY) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 1533 |
|
| { |
| 1534 |
0 |
| dVAR; dXSARGS; |
| 1535 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 1536 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1537 |
|
| { |
| 1538 |
|
| double RETVAL; |
| 1539 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 1540 |
0 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 1541 |
|
| ; |
| 1542 |
|
| #line 28 "./xsi/PrecisionModel.xsi" |
| 1543 |
|
| RETVAL = THIS->getOffsetY(); |
| 1544 |
|
| #line 1545 "Geos_xsgen.cc" |
| 1545 |
0 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
0 |
0 |
|
| 1546 |
0 |
| ST(0) = TARG; |
| 1547 |
|
| } |
| 1548 |
0 |
| XSRETURN(1); |
| 1549 |
0 |
| }); } |
| 1550 |
|
| |
| 1551 |
|
| |
| 1552 |
|
| |
| 1553 |
22 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_isFloating) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_isFloating) { xs::throw_guard(cv, [=]() |
11 |
0 |
11 |
|
| 1554 |
|
| { |
| 1555 |
11 |
| dVAR; dXSARGS; |
| 1556 |
11 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
11 |
11 |
|
| 1557 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1558 |
|
| { |
| 1559 |
|
| bool RETVAL; |
| 1560 |
11 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
11 |
11 |
|
| 1561 |
|
| ; |
| 1562 |
|
| #line 30 "./xsi/PrecisionModel.xsi" |
| 1563 |
|
| RETVAL = THIS->isFloating(); |
| 1564 |
|
| #line 1565 "Geos_xsgen.cc" |
| 1565 |
11 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
8 |
3 |
11 |
|
| 1566 |
|
| } |
| 1567 |
11 |
| XSRETURN(1); |
| 1568 |
11 |
| }); } |
| 1569 |
|
| |
| 1570 |
|
| |
| 1571 |
|
| |
| 1572 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_getMaximumSignificantDigits) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_getMaximumSignificantDigits) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1573 |
|
| { |
| 1574 |
1 |
| dVAR; dXSARGS; |
| 1575 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1576 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1577 |
|
| { |
| 1578 |
|
| int RETVAL; |
| 1579 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 1580 |
1 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1581 |
|
| ; |
| 1582 |
|
| #line 32 "./xsi/PrecisionModel.xsi" |
| 1583 |
|
| RETVAL = THIS->getMaximumSignificantDigits(); |
| 1584 |
|
| #line 1585 "Geos_xsgen.cc" |
| 1585 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 1586 |
1 |
| ST(0) = TARG; |
| 1587 |
|
| } |
| 1588 |
1 |
| XSRETURN(1); |
| 1589 |
1 |
| }); } |
| 1590 |
|
| |
| 1591 |
|
| |
| 1592 |
|
| |
| 1593 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_getType) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_getType) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 1594 |
|
| { |
| 1595 |
7 |
| dVAR; dXSARGS; |
| 1596 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 1597 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1598 |
|
| { |
| 1599 |
|
| int RETVAL; |
| 1600 |
7 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
7 |
0 |
7 |
|
| 1601 |
7 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 1602 |
|
| ; |
| 1603 |
|
| #line 34 "./xsi/PrecisionModel.xsi" |
| 1604 |
|
| RETVAL = THIS->getType(); |
| 1605 |
|
| #line 1606 "Geos_xsgen.cc" |
| 1606 |
7 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
7 |
7 |
|
| 1607 |
7 |
| ST(0) = TARG; |
| 1608 |
|
| } |
| 1609 |
7 |
| XSRETURN(1); |
| 1610 |
7 |
| }); } |
| 1611 |
|
| |
| 1612 |
|
| |
| 1613 |
|
| |
| 1614 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_makePrecise) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_makePrecise) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1615 |
|
| { |
| 1616 |
1 |
| dVAR; dXSARGS; |
| 1617 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 1618 |
0 |
| croak_xs_usage(cv, "THIS, val"); |
| 1619 |
|
| { |
| 1620 |
|
| double RETVAL; |
| 1621 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 1622 |
1 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1623 |
|
| ; |
| 1624 |
1 |
| double val = (double)SvNV(ST(1)) |
| 1625 |
|
| ; |
| 1626 |
|
| #line 36 "./xsi/PrecisionModel.xsi" |
| 1627 |
|
| RETVAL = THIS->makePrecise(val); |
| 1628 |
|
| #line 1629 "Geos_xsgen.cc" |
| 1629 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 1630 |
1 |
| ST(0) = TARG; |
| 1631 |
|
| } |
| 1632 |
1 |
| XSRETURN(1); |
| 1633 |
1 |
| }); } |
| 1634 |
|
| |
| 1635 |
|
| |
| 1636 |
|
| |
| 1637 |
18 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_toString) { xs::throw_guard(cv, [=]() |
9 |
0 |
9 |
|
| 1638 |
|
| { |
| 1639 |
9 |
| dVAR; dXSARGS; |
| 1640 |
9 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
9 |
9 |
|
| 1641 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 1642 |
|
| { |
| 1643 |
9 |
| std::string RETVAL; |
| 1644 |
9 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
8 |
9 |
| dXSTARG; |
8 |
0 |
8 |
|
| 1645 |
9 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
9 |
0 |
9 |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
9 |
9 |
|
| 1646 |
|
| ; |
| 1647 |
|
| #line 38 "./xsi/PrecisionModel.xsi" |
| 1648 |
|
| RETVAL = THIS->toString(); |
| 1649 |
|
| #line 1650 "Geos_xsgen.cc" |
| 1650 |
9 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
9 |
0 |
9 |
|
| 1651 |
9 |
| ST(0) = TARG; |
| 1652 |
9 |
| } |
| 1653 |
9 |
| XSRETURN(1); |
| 1654 |
9 |
| }); } |
| 1655 |
|
| |
| 1656 |
|
| |
| 1657 |
|
| |
| 1658 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__PrecisionModel_compareTo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__PrecisionModel_compareTo) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 1659 |
|
| { |
| 1660 |
3 |
| dVAR; dXSARGS; |
| 1661 |
3 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
3 |
3 |
|
| 1662 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 1663 |
|
| { |
| 1664 |
|
| int RETVAL; |
| 1665 |
3 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
|
| 1666 |
3 |
▶ | PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| PrecisionModel* THIS = xs::in<PrecisionModel *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 1667 |
|
| ; |
| 1668 |
3 |
| PrecisionModel& other = xs::in<PrecisionModel&>(ST(1)); |
| 1669 |
|
| ; |
| 1670 |
|
| #line 40 "./xsi/PrecisionModel.xsi" |
| 1671 |
|
| RETVAL = THIS->compareTo(&other); |
| 1672 |
|
| #line 1673 "Geos_xsgen.cc" |
| 1673 |
3 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
3 |
3 |
|
| 1674 |
3 |
| ST(0) = TARG; |
| 1675 |
|
| } |
| 1676 |
3 |
| XSRETURN(1); |
| 1677 |
3 |
| }); } |
| 1678 |
|
| |
| 1679 |
|
| |
| 1680 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/PrecisionModel.xsi' */ |
| 1681 |
|
| |
| 1682 |
|
| |
| 1683 |
|
| /* INCLUDE: Including 'xsi/IntersectionMatrix.xsi' from 'Geos.xs' */ |
| 1684 |
|
| |
| 1685 |
|
| |
| 1686 |
|
| |
| 1687 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_new) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 1688 |
|
| { |
| 1689 |
3 |
| dVAR; dXSARGS; |
| 1690 |
3 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
3 |
0 |
3 |
| if (items < 1 || items > 2) |
0 |
3 |
3 |
|
| 1691 |
0 |
| croak_xs_usage(cv, "_____unused6, arg1= NULL"); |
| 1692 |
|
| { |
| 1693 |
|
| IntersectionMatrix * RETVAL; |
| 1694 |
|
| SV* arg1; |
| 1695 |
|
| |
| 1696 |
3 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
2 |
3 |
|
| 1697 |
1 |
| arg1 = NULL; |
| 1698 |
|
| else { |
| 1699 |
2 |
| arg1 = ST(1) |
| 1700 |
|
| ; |
| 1701 |
|
| } |
| 1702 |
|
| #line 5 "./xsi/IntersectionMatrix.xsi" |
| 1703 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 1704 |
|
| if (!arg1) RETVAL = new IntersectionMatrix(); |
| 1705 |
|
| else { |
| 1706 |
|
| std::string elements { SvPV_nolen(arg1) }; |
| 1707 |
|
| RETVAL = new IntersectionMatrix(elements); |
| 1708 |
|
| } |
| 1709 |
|
| #line 1710 "Geos_xsgen.cc" |
| 1710 |
|
| { |
| 1711 |
|
| SV * RETVALSV; |
| 1712 |
3 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
3 |
0 |
3 |
|
| 1713 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 1714 |
3 |
| ST(0) = RETVALSV; |
| 1715 |
|
| } |
| 1716 |
3 |
| } |
| 1717 |
3 |
| XSRETURN(1); |
| 1718 |
3 |
| }); } |
| 1719 |
|
| |
| 1720 |
|
| |
| 1721 |
|
| |
| 1722 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_matches) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_matches) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1723 |
|
| { |
| 1724 |
1 |
| dVAR; dXSARGS; |
| 1725 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 1726 |
0 |
| croak_xs_usage(cv, "THIS, requiredDimensionSymbols"); |
| 1727 |
|
| { |
| 1728 |
|
| bool RETVAL; |
| 1729 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1730 |
|
| ; |
| 1731 |
1 |
| std::string requiredDimensionSymbols; |
| 1732 |
|
| |
| 1733 |
|
| { STRLEN __requiredDimensionSymbols_len; |
| 1734 |
1 |
| const char* __requiredDimensionSymbols_buf = SvPV(ST(1), __requiredDimensionSymbols_len); |
| 1735 |
1 |
▶ | requiredDimensionSymbols.assign(__requiredDimensionSymbols_buf, __requiredDimensionSymbols_len); } |
Branch: 1 branch
| Branch | True | False | Total |
| requiredDimensionSymbols.assign(__requiredDimensionSymbols_buf, __requiredDimensionSymbols_len); } |
1 |
0 |
1 |
|
| 1736 |
|
| ; |
| 1737 |
|
| #line 12 "./xsi/IntersectionMatrix.xsi" |
| 1738 |
|
| RETVAL = THIS->matches(requiredDimensionSymbols); |
| 1739 |
|
| #line 1740 "Geos_xsgen.cc" |
| 1740 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 1741 |
1 |
| } |
| 1742 |
1 |
| XSRETURN(1); |
| 1743 |
1 |
| }); } |
| 1744 |
|
| |
| 1745 |
|
| |
| 1746 |
|
| |
| 1747 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_add) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_add) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 1748 |
|
| { |
| 1749 |
0 |
| dVAR; dXSARGS; |
| 1750 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 1751 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 1752 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1753 |
0 |
| SP -= items; |
| 1754 |
|
| { |
| 1755 |
0 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 1756 |
|
| ; |
| 1757 |
0 |
| IntersectionMatrix& other = xs::in<IntersectionMatrix&>(ST(1)); |
| 1758 |
|
| ; |
| 1759 |
|
| #line 14 "./xsi/IntersectionMatrix.xsi" |
| 1760 |
|
| THIS->add(&other); |
| 1761 |
|
| #line 1762 "Geos_xsgen.cc" |
| 1762 |
0 |
| PUTBACK; |
| 1763 |
0 |
| return; |
| 1764 |
|
| } |
| 1765 |
0 |
| }); } |
| 1766 |
|
| |
| 1767 |
|
| |
| 1768 |
|
| |
| 1769 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_set) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_set) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 1770 |
|
| { |
| 1771 |
2 |
| dVAR; dXSARGS; |
| 1772 |
2 |
▶ | if (items < 2 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 4) |
2 |
0 |
2 |
| if (items < 2 || items > 4) |
0 |
2 |
2 |
|
| 1773 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL, arg3= NULL"); |
| 1774 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1775 |
2 |
| SP -= items; |
| 1776 |
|
| { |
| 1777 |
2 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 1778 |
|
| ; |
| 1779 |
2 |
| SV* arg1 = ST(1) |
| 1780 |
|
| ; |
| 1781 |
|
| SV* arg2; |
| 1782 |
|
| SV* arg3; |
| 1783 |
|
| |
| 1784 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 1785 |
1 |
| arg2 = NULL; |
| 1786 |
|
| else { |
| 1787 |
1 |
| arg2 = ST(2) |
| 1788 |
|
| ; |
| 1789 |
|
| } |
| 1790 |
|
| |
| 1791 |
2 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
1 |
1 |
2 |
|
| 1792 |
1 |
| arg3 = NULL; |
| 1793 |
|
| else { |
| 1794 |
1 |
| arg3 = ST(3) |
| 1795 |
|
| ; |
| 1796 |
|
| } |
| 1797 |
|
| #line 17 "./xsi/IntersectionMatrix.xsi" |
| 1798 |
|
| if(!arg1) throw("undef not allowed"); |
| 1799 |
|
| if (!arg2) { |
| 1800 |
|
| std::string dimensionSymbols { SvPV_nolen(arg1) }; |
| 1801 |
|
| THIS->set(dimensionSymbols); |
| 1802 |
|
| } else { |
| 1803 |
|
| if(!arg3) throw("undef not allowed"); |
| 1804 |
|
| int row = SvIV(arg1); |
| 1805 |
|
| int col = SvIV(arg2); |
| 1806 |
|
| int val = SvIV(arg3); |
| 1807 |
|
| THIS->set(row, col, val); |
| 1808 |
|
| } |
| 1809 |
|
| #line 1810 "Geos_xsgen.cc" |
| 1810 |
2 |
| PUTBACK; |
| 1811 |
2 |
| return; |
| 1812 |
|
| } |
| 1813 |
2 |
| }); } |
| 1814 |
|
| |
| 1815 |
|
| |
| 1816 |
|
| |
| 1817 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAtLeast) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAtLeast) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 1818 |
|
| { |
| 1819 |
2 |
| dVAR; dXSARGS; |
| 1820 |
2 |
▶ | if (items < 2 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 4) |
2 |
0 |
2 |
| if (items < 2 || items > 4) |
0 |
2 |
2 |
|
| 1821 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL, arg3= NULL"); |
| 1822 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1823 |
2 |
| SP -= items; |
| 1824 |
|
| { |
| 1825 |
2 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 1826 |
|
| ; |
| 1827 |
2 |
| SV* arg1 = ST(1) |
| 1828 |
|
| ; |
| 1829 |
|
| SV* arg2; |
| 1830 |
|
| SV* arg3; |
| 1831 |
|
| |
| 1832 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 1833 |
1 |
| arg2 = NULL; |
| 1834 |
|
| else { |
| 1835 |
1 |
| arg2 = ST(2) |
| 1836 |
|
| ; |
| 1837 |
|
| } |
| 1838 |
|
| |
| 1839 |
2 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
1 |
1 |
2 |
|
| 1840 |
1 |
| arg3 = NULL; |
| 1841 |
|
| else { |
| 1842 |
1 |
| arg3 = ST(3) |
| 1843 |
|
| ; |
| 1844 |
|
| } |
| 1845 |
|
| #line 31 "./xsi/IntersectionMatrix.xsi" |
| 1846 |
|
| if(!arg1) throw("undef not allowed"); |
| 1847 |
|
| if (!arg2) { |
| 1848 |
|
| std::string dimensionSymbols { SvPV_nolen(arg1) }; |
| 1849 |
|
| THIS->setAtLeast(dimensionSymbols); |
| 1850 |
|
| } else { |
| 1851 |
|
| if(!arg3) throw("undef not allowed"); |
| 1852 |
|
| int row = SvIV(arg1); |
| 1853 |
|
| int col = SvIV(arg2); |
| 1854 |
|
| int val = SvIV(arg3); |
| 1855 |
|
| THIS->setAtLeast(row, col, val); |
| 1856 |
|
| } |
| 1857 |
|
| #line 1858 "Geos_xsgen.cc" |
| 1858 |
2 |
| PUTBACK; |
| 1859 |
2 |
| return; |
| 1860 |
|
| } |
| 1861 |
2 |
| }); } |
| 1862 |
|
| |
| 1863 |
|
| |
| 1864 |
|
| |
| 1865 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAll) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAll) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1866 |
|
| { |
| 1867 |
1 |
| dVAR; dXSARGS; |
| 1868 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 1869 |
0 |
| croak_xs_usage(cv, "THIS, dimensionValue"); |
| 1870 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1871 |
1 |
| SP -= items; |
| 1872 |
|
| { |
| 1873 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1874 |
|
| ; |
| 1875 |
1 |
| int dimensionValue = (int)SvIV(ST(1)) |
| 1876 |
|
| ; |
| 1877 |
|
| #line 44 "./xsi/IntersectionMatrix.xsi" |
| 1878 |
|
| THIS->setAll(dimensionValue); |
| 1879 |
|
| #line 1880 "Geos_xsgen.cc" |
| 1880 |
1 |
| PUTBACK; |
| 1881 |
1 |
| return; |
| 1882 |
|
| } |
| 1883 |
1 |
| }); } |
| 1884 |
|
| |
| 1885 |
|
| |
| 1886 |
|
| |
| 1887 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAtLeastIfValid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_setAtLeastIfValid) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1888 |
|
| { |
| 1889 |
1 |
| dVAR; dXSARGS; |
| 1890 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 1891 |
0 |
| croak_xs_usage(cv, "THIS, row, column, minimumDimensionValue"); |
| 1892 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 1893 |
1 |
| SP -= items; |
| 1894 |
|
| { |
| 1895 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1896 |
|
| ; |
| 1897 |
1 |
| int row = (int)SvIV(ST(1)) |
| 1898 |
|
| ; |
| 1899 |
1 |
| int column = (int)SvIV(ST(2)) |
| 1900 |
|
| ; |
| 1901 |
1 |
| int minimumDimensionValue = (int)SvIV(ST(3)) |
| 1902 |
|
| ; |
| 1903 |
|
| #line 46 "./xsi/IntersectionMatrix.xsi" |
| 1904 |
|
| THIS->setAtLeastIfValid(row, column, minimumDimensionValue); |
| 1905 |
|
| #line 1906 "Geos_xsgen.cc" |
| 1906 |
1 |
| PUTBACK; |
| 1907 |
1 |
| return; |
| 1908 |
|
| } |
| 1909 |
1 |
| }); } |
| 1910 |
|
| |
| 1911 |
|
| |
| 1912 |
|
| |
| 1913 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_get) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_get) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1914 |
|
| { |
| 1915 |
1 |
| dVAR; dXSARGS; |
| 1916 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 1917 |
0 |
| croak_xs_usage(cv, "THIS, row, col"); |
| 1918 |
|
| { |
| 1919 |
|
| int RETVAL; |
| 1920 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 1921 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1922 |
|
| ; |
| 1923 |
1 |
| int row = (int)SvIV(ST(1)) |
| 1924 |
|
| ; |
| 1925 |
1 |
| int col = (int)SvIV(ST(2)) |
| 1926 |
|
| ; |
| 1927 |
|
| #line 48 "./xsi/IntersectionMatrix.xsi" |
| 1928 |
|
| RETVAL = THIS->get(row, col); |
| 1929 |
|
| #line 1930 "Geos_xsgen.cc" |
| 1930 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 1931 |
1 |
| ST(0) = TARG; |
| 1932 |
|
| } |
| 1933 |
1 |
| XSRETURN(1); |
| 1934 |
1 |
| }); } |
| 1935 |
|
| |
| 1936 |
|
| |
| 1937 |
|
| |
| 1938 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isDisjoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isDisjoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1939 |
|
| { |
| 1940 |
1 |
| dVAR; dXSARGS; |
| 1941 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1942 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1943 |
|
| { |
| 1944 |
|
| bool RETVAL; |
| 1945 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1946 |
|
| ; |
| 1947 |
|
| #line 50 "./xsi/IntersectionMatrix.xsi" |
| 1948 |
|
| RETVAL = THIS->isDisjoint(); |
| 1949 |
|
| #line 1950 "Geos_xsgen.cc" |
| 1950 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 1951 |
|
| } |
| 1952 |
1 |
| XSRETURN(1); |
| 1953 |
1 |
| }); } |
| 1954 |
|
| |
| 1955 |
|
| |
| 1956 |
|
| |
| 1957 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isIntersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isIntersects) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1958 |
|
| { |
| 1959 |
1 |
| dVAR; dXSARGS; |
| 1960 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1961 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1962 |
|
| { |
| 1963 |
|
| bool RETVAL; |
| 1964 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1965 |
|
| ; |
| 1966 |
|
| #line 52 "./xsi/IntersectionMatrix.xsi" |
| 1967 |
|
| RETVAL = THIS->isIntersects(); |
| 1968 |
|
| #line 1969 "Geos_xsgen.cc" |
| 1969 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 1970 |
|
| } |
| 1971 |
1 |
| XSRETURN(1); |
| 1972 |
1 |
| }); } |
| 1973 |
|
| |
| 1974 |
|
| |
| 1975 |
|
| |
| 1976 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isWithin) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isWithin) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1977 |
|
| { |
| 1978 |
1 |
| dVAR; dXSARGS; |
| 1979 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1980 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1981 |
|
| { |
| 1982 |
|
| bool RETVAL; |
| 1983 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 1984 |
|
| ; |
| 1985 |
|
| #line 54 "./xsi/IntersectionMatrix.xsi" |
| 1986 |
|
| RETVAL = THIS->isWithin(); |
| 1987 |
|
| #line 1988 "Geos_xsgen.cc" |
| 1988 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 1989 |
|
| } |
| 1990 |
1 |
| XSRETURN(1); |
| 1991 |
1 |
| }); } |
| 1992 |
|
| |
| 1993 |
|
| |
| 1994 |
|
| |
| 1995 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isContains) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isContains) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 1996 |
|
| { |
| 1997 |
1 |
| dVAR; dXSARGS; |
| 1998 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 1999 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2000 |
|
| { |
| 2001 |
|
| bool RETVAL; |
| 2002 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2003 |
|
| ; |
| 2004 |
|
| #line 56 "./xsi/IntersectionMatrix.xsi" |
| 2005 |
|
| RETVAL = THIS->isContains(); |
| 2006 |
|
| #line 2007 "Geos_xsgen.cc" |
| 2007 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2008 |
|
| } |
| 2009 |
1 |
| XSRETURN(1); |
| 2010 |
1 |
| }); } |
| 2011 |
|
| |
| 2012 |
|
| |
| 2013 |
|
| |
| 2014 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCovers) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCovers) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2015 |
|
| { |
| 2016 |
1 |
| dVAR; dXSARGS; |
| 2017 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2018 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2019 |
|
| { |
| 2020 |
|
| bool RETVAL; |
| 2021 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2022 |
|
| ; |
| 2023 |
|
| #line 58 "./xsi/IntersectionMatrix.xsi" |
| 2024 |
|
| RETVAL = THIS->isCovers(); |
| 2025 |
|
| #line 2026 "Geos_xsgen.cc" |
| 2026 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2027 |
|
| } |
| 2028 |
1 |
| XSRETURN(1); |
| 2029 |
1 |
| }); } |
| 2030 |
|
| |
| 2031 |
|
| |
| 2032 |
|
| |
| 2033 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCoveredBy) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCoveredBy) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2034 |
|
| { |
| 2035 |
1 |
| dVAR; dXSARGS; |
| 2036 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2037 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2038 |
|
| { |
| 2039 |
|
| bool RETVAL; |
| 2040 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2041 |
|
| ; |
| 2042 |
|
| #line 60 "./xsi/IntersectionMatrix.xsi" |
| 2043 |
|
| RETVAL = THIS->isCoveredBy(); |
| 2044 |
|
| #line 2045 "Geos_xsgen.cc" |
| 2045 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2046 |
|
| } |
| 2047 |
1 |
| XSRETURN(1); |
| 2048 |
1 |
| }); } |
| 2049 |
|
| |
| 2050 |
|
| |
| 2051 |
|
| |
| 2052 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isTouches) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isTouches) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2053 |
|
| { |
| 2054 |
1 |
| dVAR; dXSARGS; |
| 2055 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 2056 |
0 |
| croak_xs_usage(cv, "THIS, dimensionOfGeometryA, dimensionOfGeometryB"); |
| 2057 |
|
| { |
| 2058 |
|
| bool RETVAL; |
| 2059 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2060 |
|
| ; |
| 2061 |
1 |
| int dimensionOfGeometryA = (int)SvIV(ST(1)) |
| 2062 |
|
| ; |
| 2063 |
1 |
| int dimensionOfGeometryB = (int)SvIV(ST(2)) |
| 2064 |
|
| ; |
| 2065 |
|
| #line 62 "./xsi/IntersectionMatrix.xsi" |
| 2066 |
|
| RETVAL = THIS->isTouches(dimensionOfGeometryA, dimensionOfGeometryB); |
| 2067 |
|
| #line 2068 "Geos_xsgen.cc" |
| 2068 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2069 |
|
| } |
| 2070 |
1 |
| XSRETURN(1); |
| 2071 |
1 |
| }); } |
| 2072 |
|
| |
| 2073 |
|
| |
| 2074 |
|
| |
| 2075 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCrosses) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isCrosses) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2076 |
|
| { |
| 2077 |
1 |
| dVAR; dXSARGS; |
| 2078 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 2079 |
0 |
| croak_xs_usage(cv, "THIS, dimensionOfGeometryA, dimensionOfGeometryB"); |
| 2080 |
|
| { |
| 2081 |
|
| bool RETVAL; |
| 2082 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2083 |
|
| ; |
| 2084 |
1 |
| int dimensionOfGeometryA = (int)SvIV(ST(1)) |
| 2085 |
|
| ; |
| 2086 |
1 |
| int dimensionOfGeometryB = (int)SvIV(ST(2)) |
| 2087 |
|
| ; |
| 2088 |
|
| #line 64 "./xsi/IntersectionMatrix.xsi" |
| 2089 |
|
| RETVAL = THIS->isCrosses(dimensionOfGeometryA, dimensionOfGeometryB); |
| 2090 |
|
| #line 2091 "Geos_xsgen.cc" |
| 2091 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2092 |
|
| } |
| 2093 |
1 |
| XSRETURN(1); |
| 2094 |
1 |
| }); } |
| 2095 |
|
| |
| 2096 |
|
| |
| 2097 |
|
| |
| 2098 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isEquals) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isEquals) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2099 |
|
| { |
| 2100 |
1 |
| dVAR; dXSARGS; |
| 2101 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 2102 |
0 |
| croak_xs_usage(cv, "THIS, dimensionOfGeometryA, dimensionOfGeometryB"); |
| 2103 |
|
| { |
| 2104 |
|
| bool RETVAL; |
| 2105 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2106 |
|
| ; |
| 2107 |
1 |
| int dimensionOfGeometryA = (int)SvIV(ST(1)) |
| 2108 |
|
| ; |
| 2109 |
1 |
| int dimensionOfGeometryB = (int)SvIV(ST(2)) |
| 2110 |
|
| ; |
| 2111 |
|
| #line 66 "./xsi/IntersectionMatrix.xsi" |
| 2112 |
|
| RETVAL = THIS->isEquals(dimensionOfGeometryA, dimensionOfGeometryB); |
| 2113 |
|
| #line 2114 "Geos_xsgen.cc" |
| 2114 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2115 |
|
| } |
| 2116 |
1 |
| XSRETURN(1); |
| 2117 |
1 |
| }); } |
| 2118 |
|
| |
| 2119 |
|
| |
| 2120 |
|
| |
| 2121 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isOverlaps) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_isOverlaps) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2122 |
|
| { |
| 2123 |
1 |
| dVAR; dXSARGS; |
| 2124 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 2125 |
0 |
| croak_xs_usage(cv, "THIS, dimensionOfGeometryA, dimensionOfGeometryB"); |
| 2126 |
|
| { |
| 2127 |
|
| bool RETVAL; |
| 2128 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2129 |
|
| ; |
| 2130 |
1 |
| int dimensionOfGeometryA = (int)SvIV(ST(1)) |
| 2131 |
|
| ; |
| 2132 |
1 |
| int dimensionOfGeometryB = (int)SvIV(ST(2)) |
| 2133 |
|
| ; |
| 2134 |
|
| #line 68 "./xsi/IntersectionMatrix.xsi" |
| 2135 |
|
| RETVAL = THIS->isOverlaps(dimensionOfGeometryA, dimensionOfGeometryB); |
| 2136 |
|
| #line 2137 "Geos_xsgen.cc" |
| 2137 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2138 |
|
| } |
| 2139 |
1 |
| XSRETURN(1); |
| 2140 |
1 |
| }); } |
| 2141 |
|
| |
| 2142 |
|
| |
| 2143 |
|
| |
| 2144 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_transpose) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_transpose) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2145 |
|
| { |
| 2146 |
1 |
| dVAR; dXSARGS; |
| 2147 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2148 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2149 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 2150 |
1 |
| SP -= items; |
| 2151 |
|
| { |
| 2152 |
1 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2153 |
|
| ; |
| 2154 |
|
| #line 71 "./xsi/IntersectionMatrix.xsi" |
| 2155 |
|
| THIS->transpose(); XSRETURN(1); |
| 2156 |
|
| #line 2157 "Geos_xsgen.cc" |
| 2157 |
|
| PUTBACK; |
| 2158 |
|
| return; |
| 2159 |
|
| } |
| 2160 |
1 |
| }); } |
| 2161 |
|
| |
| 2162 |
|
| |
| 2163 |
|
| |
| 2164 |
40 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_toString) { xs::throw_guard(cv, [=]() |
20 |
0 |
20 |
|
| 2165 |
|
| { |
| 2166 |
20 |
| dVAR; dXSARGS; |
| 2167 |
20 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
20 |
20 |
|
| 2168 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 2169 |
|
| { |
| 2170 |
20 |
| std::string RETVAL; |
| 2171 |
20 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
8 |
12 |
20 |
| dXSTARG; |
12 |
0 |
12 |
|
| 2172 |
20 |
▶ | IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
20 |
0 |
20 |
| IntersectionMatrix* THIS = xs::in<IntersectionMatrix *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
20 |
20 |
|
| 2173 |
|
| ; |
| 2174 |
|
| #line 73 "./xsi/IntersectionMatrix.xsi" |
| 2175 |
|
| RETVAL = THIS->toString(); |
| 2176 |
|
| #line 2177 "Geos_xsgen.cc" |
| 2177 |
20 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
20 |
0 |
20 |
|
| 2178 |
20 |
| ST(0) = TARG; |
| 2179 |
20 |
| } |
| 2180 |
20 |
| XSRETURN(1); |
| 2181 |
20 |
| }); } |
| 2182 |
|
| |
| 2183 |
|
| |
| 2184 |
|
| |
| 2185 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__IntersectionMatrix_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 2186 |
|
| { |
| 2187 |
0 |
| dVAR; dXSARGS; |
| 2188 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 2189 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 2190 |
|
| { |
| 2191 |
|
| int RETVAL; |
| 2192 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 2193 |
|
| #line 75 "./xsi/IntersectionMatrix.xsi" |
| 2194 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 2195 |
|
| #line 2196 "Geos_xsgen.cc" |
| 2196 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 2197 |
0 |
| ST(0) = TARG; |
| 2198 |
|
| } |
| 2199 |
0 |
| XSRETURN(1); |
| 2200 |
0 |
| }); } |
| 2201 |
|
| |
| 2202 |
|
| |
| 2203 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/IntersectionMatrix.xsi' */ |
| 2204 |
|
| |
| 2205 |
|
| |
| 2206 |
|
| /* INCLUDE: Including 'xsi/Triangle.xsi' from 'Geos.xs' */ |
| 2207 |
|
| |
| 2208 |
|
| |
| 2209 |
|
| |
| 2210 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2211 |
|
| { |
| 2212 |
1 |
| dVAR; dXSARGS; |
| 2213 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 2214 |
0 |
| croak_xs_usage(cv, "_____unused7, p0, p1, p2"); |
| 2215 |
|
| { |
| 2216 |
|
| Triangle * RETVAL; |
| 2217 |
1 |
▶ | Coordinate& p0 = xs::in<Coordinate&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p0 = xs::in<Coordinate&>(ST(1)); |
1 |
0 |
1 |
|
| 2218 |
|
| ; |
| 2219 |
1 |
▶ | Coordinate& p1 = xs::in<Coordinate&>(ST(2)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p1 = xs::in<Coordinate&>(ST(2)); |
1 |
0 |
1 |
|
| 2220 |
|
| ; |
| 2221 |
1 |
▶ | Coordinate& p2 = xs::in<Coordinate&>(ST(3)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p2 = xs::in<Coordinate&>(ST(3)); |
1 |
0 |
1 |
|
| 2222 |
|
| ; |
| 2223 |
|
| #line 4 "./xsi/Triangle.xsi" |
| 2224 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2225 |
|
| RETVAL = new Triangle(p0, p1, p2); |
| 2226 |
|
| #line 2227 "Geos_xsgen.cc" |
| 2227 |
|
| { |
| 2228 |
|
| SV * RETVALSV; |
| 2229 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2230 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2231 |
1 |
| ST(0) = RETVALSV; |
| 2232 |
|
| } |
| 2233 |
1 |
| } |
| 2234 |
1 |
| XSRETURN(1); |
| 2235 |
1 |
| }); } |
| 2236 |
|
| |
| 2237 |
|
| |
| 2238 |
|
| |
| 2239 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_p0) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_p0) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 2240 |
|
| { |
| 2241 |
3 |
| dVAR; dXSARGS; |
| 2242 |
3 |
| dXSI32; |
| 2243 |
3 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
3 |
0 |
3 |
| if (items < 1 || items > 2) |
0 |
3 |
3 |
|
| 2244 |
0 |
| croak_xs_usage(cv, "THIS, newval= NULL"); |
| 2245 |
|
| { |
| 2246 |
|
| Coordinate * RETVAL; |
| 2247 |
3 |
▶ | Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 2248 |
|
| ; |
| 2249 |
|
| Coordinate* newval; |
| 2250 |
|
| |
| 2251 |
3 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
3 |
0 |
3 |
|
| 2252 |
3 |
| newval = NULL; |
| 2253 |
|
| else { |
| 2254 |
0 |
▶ | newval = xs::in<Coordinate *>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| newval = xs::in<Coordinate *>(ST(1)); |
0 |
0 |
0 |
|
| 2255 |
|
| ; |
| 2256 |
|
| } |
| 2257 |
|
| #line 7 "./xsi/Triangle.xsi" |
| 2258 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2259 |
|
| Coordinate* val; |
| 2260 |
|
| switch (ix) { |
| 2261 |
|
| case 0: val = &THIS->p0; break; |
| 2262 |
|
| case 1: val = &THIS->p1; break; |
| 2263 |
|
| default: val = &THIS->p2; break; |
| 2264 |
|
| } |
| 2265 |
|
| if (newval) { |
| 2266 |
|
| *val = *newval; |
| 2267 |
|
| } |
| 2268 |
|
| RETVAL = new Coordinate(*val); |
| 2269 |
|
| #line 2270 "Geos_xsgen.cc" |
| 2270 |
|
| { |
| 2271 |
|
| SV * RETVALSV; |
| 2272 |
3 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
3 |
0 |
3 |
|
| 2273 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 2274 |
3 |
| ST(0) = RETVALSV; |
| 2275 |
|
| } |
| 2276 |
3 |
| } |
| 2277 |
3 |
| XSRETURN(1); |
| 2278 |
3 |
| }); } |
| 2279 |
|
| |
| 2280 |
|
| |
| 2281 |
|
| |
| 2282 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_inCentre) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_inCentre) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2283 |
|
| { |
| 2284 |
1 |
| dVAR; dXSARGS; |
| 2285 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2286 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2287 |
|
| { |
| 2288 |
|
| Coordinate * RETVAL; |
| 2289 |
1 |
▶ | Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2290 |
|
| ; |
| 2291 |
|
| #line 20 "./xsi/Triangle.xsi" |
| 2292 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2293 |
|
| Coordinate c; |
| 2294 |
|
| THIS->inCentre(c); |
| 2295 |
|
| RETVAL = new Coordinate(c); |
| 2296 |
|
| #line 2297 "Geos_xsgen.cc" |
| 2297 |
|
| { |
| 2298 |
|
| SV * RETVALSV; |
| 2299 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2300 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2301 |
1 |
| ST(0) = RETVALSV; |
| 2302 |
|
| } |
| 2303 |
1 |
| } |
| 2304 |
1 |
| XSRETURN(1); |
| 2305 |
1 |
| }); } |
| 2306 |
|
| |
| 2307 |
|
| |
| 2308 |
|
| |
| 2309 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_circumcentre) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_circumcentre) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2310 |
|
| { |
| 2311 |
1 |
| dVAR; dXSARGS; |
| 2312 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2313 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2314 |
|
| { |
| 2315 |
|
| Coordinate * RETVAL; |
| 2316 |
1 |
▶ | Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| Triangle* THIS = xs::in<Triangle *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2317 |
|
| ; |
| 2318 |
|
| #line 26 "./xsi/Triangle.xsi" |
| 2319 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2320 |
|
| Coordinate c; |
| 2321 |
|
| THIS->circumcentre(c); |
| 2322 |
|
| RETVAL = new Coordinate(c); |
| 2323 |
|
| #line 2324 "Geos_xsgen.cc" |
| 2324 |
|
| { |
| 2325 |
|
| SV * RETVALSV; |
| 2326 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2327 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2328 |
1 |
| ST(0) = RETVALSV; |
| 2329 |
|
| } |
| 2330 |
1 |
| } |
| 2331 |
1 |
| XSRETURN(1); |
| 2332 |
1 |
| }); } |
| 2333 |
|
| |
| 2334 |
|
| |
| 2335 |
|
| |
| 2336 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_isInCircleNonRobust) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_isInCircleNonRobust) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 2337 |
|
| { |
| 2338 |
3 |
| dVAR; dXSARGS; |
| 2339 |
3 |
| dXSI32; |
| 2340 |
3 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
3 |
3 |
|
| 2341 |
0 |
| croak_xs_usage(cv, "a, b, c, p"); |
| 2342 |
|
| { |
| 2343 |
|
| bool RETVAL; |
| 2344 |
3 |
| Coordinate& a = xs::in<Coordinate&>(ST(0)); |
| 2345 |
|
| ; |
| 2346 |
3 |
| Coordinate& b = xs::in<Coordinate&>(ST(1)); |
| 2347 |
|
| ; |
| 2348 |
3 |
| Coordinate& c = xs::in<Coordinate&>(ST(2)); |
| 2349 |
|
| ; |
| 2350 |
3 |
| Coordinate& p = xs::in<Coordinate&>(ST(3)); |
| 2351 |
|
| ; |
| 2352 |
|
| #line 32 "./xsi/Triangle.xsi" |
| 2353 |
|
| switch(ix) { |
| 2354 |
|
| case 0: RETVAL = TrianglePredicate::isInCircleNonRobust(a, b, c, p); break; |
| 2355 |
|
| case 1: RETVAL = TrianglePredicate::isInCircleNormalized(a, b, c, p); break; |
| 2356 |
|
| default: RETVAL = TrianglePredicate::isInCircleRobust(a, b, c, p); break; |
| 2357 |
|
| } |
| 2358 |
|
| #line 2359 "Geos_xsgen.cc" |
| 2359 |
3 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
3 |
3 |
|
| 2360 |
|
| } |
| 2361 |
3 |
| XSRETURN(1); |
| 2362 |
3 |
| }); } |
| 2363 |
|
| |
| 2364 |
|
| |
| 2365 |
|
| |
| 2366 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangle_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangle_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 2367 |
|
| { |
| 2368 |
0 |
| dVAR; dXSARGS; |
| 2369 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 2370 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 2371 |
|
| { |
| 2372 |
|
| int RETVAL; |
| 2373 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 2374 |
|
| #line 40 "./xsi/Triangle.xsi" |
| 2375 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 2376 |
|
| #line 2377 "Geos_xsgen.cc" |
| 2377 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 2378 |
0 |
| ST(0) = TARG; |
| 2379 |
|
| } |
| 2380 |
0 |
| XSRETURN(1); |
| 2381 |
0 |
| }); } |
| 2382 |
|
| |
| 2383 |
|
| |
| 2384 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Triangle.xsi' */ |
| 2385 |
|
| |
| 2386 |
|
| |
| 2387 |
|
| /* INCLUDE: Including 'xsi/LineSegment.xsi' from 'Geos.xs' */ |
| 2388 |
|
| |
| 2389 |
|
| |
| 2390 |
|
| |
| 2391 |
34 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_new) { xs::throw_guard(cv, [=]() |
17 |
0 |
17 |
|
| 2392 |
|
| { |
| 2393 |
17 |
| dVAR; dXSARGS; |
| 2394 |
17 |
▶ | if (items < 1 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 5) |
17 |
0 |
17 |
| if (items < 1 || items > 5) |
0 |
17 |
17 |
|
| 2395 |
0 |
| croak_xs_usage(cv, "_____unused8, arg1= NULL, arg2= NULL, arg3= NULL, arg4= NULL"); |
| 2396 |
|
| { |
| 2397 |
|
| LineSegment * RETVAL; |
| 2398 |
|
| SV* arg1; |
| 2399 |
|
| SV* arg2; |
| 2400 |
|
| SV* arg3; |
| 2401 |
|
| SV* arg4; |
| 2402 |
|
| |
| 2403 |
17 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
16 |
17 |
|
| 2404 |
1 |
| arg1 = NULL; |
| 2405 |
|
| else { |
| 2406 |
16 |
| arg1 = ST(1) |
| 2407 |
|
| ; |
| 2408 |
|
| } |
| 2409 |
|
| |
| 2410 |
17 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
16 |
17 |
|
| 2411 |
1 |
| arg2 = NULL; |
| 2412 |
|
| else { |
| 2413 |
16 |
| arg2 = ST(2) |
| 2414 |
|
| ; |
| 2415 |
|
| } |
| 2416 |
|
| |
| 2417 |
17 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
16 |
1 |
17 |
|
| 2418 |
16 |
| arg3 = NULL; |
| 2419 |
|
| else { |
| 2420 |
1 |
| arg3 = ST(3) |
| 2421 |
|
| ; |
| 2422 |
|
| } |
| 2423 |
|
| |
| 2424 |
17 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
16 |
1 |
17 |
|
| 2425 |
16 |
| arg4 = NULL; |
| 2426 |
|
| else { |
| 2427 |
1 |
| arg4 = ST(4) |
| 2428 |
|
| ; |
| 2429 |
|
| } |
| 2430 |
|
| #line 5 "./xsi/LineSegment.xsi" |
| 2431 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2432 |
|
| if (!arg1) RETVAL = new LineSegment(); |
| 2433 |
|
| else if (!arg3) { |
| 2434 |
|
| auto& c1 = xs::in<Coordinate&>(arg1); |
| 2435 |
|
| auto& c2 = xs::in<Coordinate&>(arg2); |
| 2436 |
|
| RETVAL = new LineSegment(c1, c2); |
| 2437 |
|
| } |
| 2438 |
|
| else { |
| 2439 |
|
| if(!arg2) throw("undef not allowed"); |
| 2440 |
|
| if(!arg3) throw("undef not allowed"); |
| 2441 |
|
| if(!arg4) throw("undef not allowed"); |
| 2442 |
|
| double x0 = SvNV(arg1); |
| 2443 |
|
| double y0 = SvNV(arg2); |
| 2444 |
|
| double x1 = SvNV(arg3); |
| 2445 |
|
| double y1 = SvNV(arg4); |
| 2446 |
|
| RETVAL = new LineSegment(x0, y0, x1, y1); |
| 2447 |
|
| } |
| 2448 |
|
| #line 2449 "Geos_xsgen.cc" |
| 2449 |
|
| { |
| 2450 |
|
| SV * RETVALSV; |
| 2451 |
17 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
17 |
0 |
17 |
|
| 2452 |
17 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
17 |
0 |
17 |
|
| 2453 |
17 |
| ST(0) = RETVALSV; |
| 2454 |
|
| } |
| 2455 |
17 |
| } |
| 2456 |
17 |
| XSRETURN(1); |
| 2457 |
17 |
| }); } |
| 2458 |
|
| |
| 2459 |
|
| |
| 2460 |
|
| |
| 2461 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_getLength) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_getLength) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2462 |
|
| { |
| 2463 |
1 |
| dVAR; dXSARGS; |
| 2464 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2465 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2466 |
|
| { |
| 2467 |
|
| double RETVAL; |
| 2468 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2469 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2470 |
|
| ; |
| 2471 |
|
| #line 23 "./xsi/LineSegment.xsi" |
| 2472 |
|
| RETVAL = THIS->getLength(); |
| 2473 |
|
| #line 2474 "Geos_xsgen.cc" |
| 2474 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 2475 |
1 |
| ST(0) = TARG; |
| 2476 |
|
| } |
| 2477 |
1 |
| XSRETURN(1); |
| 2478 |
1 |
| }); } |
| 2479 |
|
| |
| 2480 |
|
| |
| 2481 |
|
| |
| 2482 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_isHorizontal) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_isHorizontal) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2483 |
|
| { |
| 2484 |
1 |
| dVAR; dXSARGS; |
| 2485 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2486 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2487 |
|
| { |
| 2488 |
|
| bool RETVAL; |
| 2489 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2490 |
|
| ; |
| 2491 |
|
| #line 25 "./xsi/LineSegment.xsi" |
| 2492 |
|
| RETVAL = THIS->isHorizontal(); |
| 2493 |
|
| #line 2494 "Geos_xsgen.cc" |
| 2494 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 2495 |
|
| } |
| 2496 |
1 |
| XSRETURN(1); |
| 2497 |
1 |
| }); } |
| 2498 |
|
| |
| 2499 |
|
| |
| 2500 |
|
| |
| 2501 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_isVertical) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_isVertical) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2502 |
|
| { |
| 2503 |
1 |
| dVAR; dXSARGS; |
| 2504 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2505 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2506 |
|
| { |
| 2507 |
|
| bool RETVAL; |
| 2508 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2509 |
|
| ; |
| 2510 |
|
| #line 27 "./xsi/LineSegment.xsi" |
| 2511 |
|
| RETVAL = THIS->isVertical(); |
| 2512 |
|
| #line 2513 "Geos_xsgen.cc" |
| 2513 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2514 |
|
| } |
| 2515 |
1 |
| XSRETURN(1); |
| 2516 |
1 |
| }); } |
| 2517 |
|
| |
| 2518 |
|
| |
| 2519 |
|
| |
| 2520 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_setCoordinates) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_setCoordinates) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 2521 |
|
| { |
| 2522 |
2 |
| dVAR; dXSARGS; |
| 2523 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 2524 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2= NULL"); |
| 2525 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 2526 |
2 |
| SP -= items; |
| 2527 |
|
| { |
| 2528 |
2 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 2529 |
|
| ; |
| 2530 |
2 |
| SV* arg1 = ST(1) |
| 2531 |
|
| ; |
| 2532 |
|
| SV* arg2; |
| 2533 |
|
| |
| 2534 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 2535 |
1 |
| arg2 = NULL; |
| 2536 |
|
| else { |
| 2537 |
1 |
| arg2 = ST(2) |
| 2538 |
|
| ; |
| 2539 |
|
| } |
| 2540 |
|
| #line 30 "./xsi/LineSegment.xsi" |
| 2541 |
|
| if (!arg2) { |
| 2542 |
|
| auto& ls = xs::in<LineSegment&>(arg1); |
| 2543 |
|
| THIS->setCoordinates(ls); |
| 2544 |
|
| } |
| 2545 |
|
| else { |
| 2546 |
|
| auto& c1 = xs::in<Coordinate&>(arg1); |
| 2547 |
|
| auto& c2 = xs::in<Coordinate&>(arg2); |
| 2548 |
|
| THIS->setCoordinates(c1, c2); |
| 2549 |
|
| } |
| 2550 |
|
| #line 2551 "Geos_xsgen.cc" |
| 2551 |
2 |
| PUTBACK; |
| 2552 |
2 |
| return; |
| 2553 |
|
| } |
| 2554 |
2 |
| }); } |
| 2555 |
|
| |
| 2556 |
|
| |
| 2557 |
|
| |
| 2558 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_orientationIndex) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_orientationIndex) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 2559 |
|
| { |
| 2560 |
2 |
| dVAR; dXSARGS; |
| 2561 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 2562 |
0 |
| croak_xs_usage(cv, "THIS, arg"); |
| 2563 |
|
| { |
| 2564 |
|
| int RETVAL; |
| 2565 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 2566 |
2 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 2567 |
|
| ; |
| 2568 |
2 |
▶ | Object arg = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg = ST(1); |
2 |
0 |
2 |
|
| 2569 |
2 |
▶ | if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
|
| 2570 |
|
| ; |
| 2571 |
|
| #line 42 "./xsi/LineSegment.xsi" |
| 2572 |
|
| if (arg.stash().name() == "Geo::Geos::Coordinate") { |
| 2573 |
|
| auto c = xs::in<Coordinate*>(arg); |
| 2574 |
|
| RETVAL = THIS->orientationIndex(*c); |
| 2575 |
|
| } |
| 2576 |
|
| else { |
| 2577 |
|
| auto& ls = xs::in<LineSegment&>(arg); |
| 2578 |
|
| RETVAL = THIS->orientationIndex(ls); |
| 2579 |
|
| } |
| 2580 |
|
| #line 2581 "Geos_xsgen.cc" |
| 2581 |
2 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
2 |
2 |
| TARGi((IV)RETVAL, 1); |
2 |
0 |
2 |
|
| 2582 |
2 |
| ST(0) = TARG; |
| 2583 |
2 |
| } |
| 2584 |
2 |
| XSRETURN(1); |
| 2585 |
2 |
| }); } |
| 2586 |
|
| |
| 2587 |
|
| |
| 2588 |
|
| |
| 2589 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_reverse) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_reverse) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2590 |
|
| { |
| 2591 |
1 |
| dVAR; dXSARGS; |
| 2592 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2593 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2594 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 2595 |
1 |
| SP -= items; |
| 2596 |
|
| { |
| 2597 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2598 |
|
| ; |
| 2599 |
|
| #line 52 "./xsi/LineSegment.xsi" |
| 2600 |
|
| THIS->reverse(); |
| 2601 |
|
| #line 2602 "Geos_xsgen.cc" |
| 2602 |
1 |
| PUTBACK; |
| 2603 |
1 |
| return; |
| 2604 |
|
| } |
| 2605 |
1 |
| }); } |
| 2606 |
|
| |
| 2607 |
|
| |
| 2608 |
|
| |
| 2609 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_normalize) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_normalize) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2610 |
|
| { |
| 2611 |
1 |
| dVAR; dXSARGS; |
| 2612 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2613 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2614 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 2615 |
1 |
| SP -= items; |
| 2616 |
|
| { |
| 2617 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2618 |
|
| ; |
| 2619 |
|
| #line 54 "./xsi/LineSegment.xsi" |
| 2620 |
|
| THIS->normalize(); |
| 2621 |
|
| #line 2622 "Geos_xsgen.cc" |
| 2622 |
1 |
| PUTBACK; |
| 2623 |
1 |
| return; |
| 2624 |
|
| } |
| 2625 |
1 |
| }); } |
| 2626 |
|
| |
| 2627 |
|
| |
| 2628 |
|
| |
| 2629 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_angle) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_angle) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2630 |
|
| { |
| 2631 |
1 |
| dVAR; dXSARGS; |
| 2632 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2633 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2634 |
|
| { |
| 2635 |
|
| double RETVAL; |
| 2636 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2637 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2638 |
|
| ; |
| 2639 |
|
| #line 56 "./xsi/LineSegment.xsi" |
| 2640 |
|
| RETVAL = THIS->angle(); |
| 2641 |
|
| #line 2642 "Geos_xsgen.cc" |
| 2642 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 2643 |
1 |
| ST(0) = TARG; |
| 2644 |
|
| } |
| 2645 |
1 |
| XSRETURN(1); |
| 2646 |
1 |
| }); } |
| 2647 |
|
| |
| 2648 |
|
| |
| 2649 |
|
| |
| 2650 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_midPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_midPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2651 |
|
| { |
| 2652 |
1 |
| dVAR; dXSARGS; |
| 2653 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 2654 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 2655 |
|
| { |
| 2656 |
|
| Coordinate * RETVAL; |
| 2657 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2658 |
|
| ; |
| 2659 |
|
| #line 59 "./xsi/LineSegment.xsi" |
| 2660 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2661 |
|
| Coordinate c; |
| 2662 |
|
| THIS->midPoint(c); |
| 2663 |
|
| RETVAL = new Coordinate(c); |
| 2664 |
|
| #line 2665 "Geos_xsgen.cc" |
| 2665 |
|
| { |
| 2666 |
|
| SV * RETVALSV; |
| 2667 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2668 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2669 |
1 |
| ST(0) = RETVALSV; |
| 2670 |
|
| } |
| 2671 |
1 |
| } |
| 2672 |
1 |
| XSRETURN(1); |
| 2673 |
1 |
| }); } |
| 2674 |
|
| |
| 2675 |
|
| |
| 2676 |
|
| |
| 2677 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_distance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_distance) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 2678 |
|
| { |
| 2679 |
2 |
| dVAR; dXSARGS; |
| 2680 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 2681 |
0 |
| croak_xs_usage(cv, "THIS, arg"); |
| 2682 |
|
| { |
| 2683 |
|
| double RETVAL; |
| 2684 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 2685 |
2 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 2686 |
|
| ; |
| 2687 |
2 |
▶ | Object arg = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg = ST(1); |
2 |
0 |
2 |
|
| 2688 |
2 |
▶ | if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
|
| 2689 |
|
| ; |
| 2690 |
|
| #line 65 "./xsi/LineSegment.xsi" |
| 2691 |
|
| if (arg.stash().name() == "Geo::Geos::Coordinate") { |
| 2692 |
|
| auto c = xs::in<Coordinate*>(arg); |
| 2693 |
|
| RETVAL = THIS->distance(*c); |
| 2694 |
|
| } |
| 2695 |
|
| else { |
| 2696 |
|
| auto& ls = xs::in<LineSegment&>(arg); |
| 2697 |
|
| RETVAL = THIS->distance(ls); |
| 2698 |
|
| } |
| 2699 |
|
| #line 2700 "Geos_xsgen.cc" |
| 2700 |
2 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
2 |
2 |
| TARGn((double)RETVAL, 1); |
2 |
0 |
2 |
|
| 2701 |
2 |
| ST(0) = TARG; |
| 2702 |
2 |
| } |
| 2703 |
2 |
| XSRETURN(1); |
| 2704 |
2 |
| }); } |
| 2705 |
|
| |
| 2706 |
|
| |
| 2707 |
|
| |
| 2708 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_distancePerpendicular) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_distancePerpendicular) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2709 |
|
| { |
| 2710 |
1 |
| dVAR; dXSARGS; |
| 2711 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2712 |
0 |
| croak_xs_usage(cv, "THIS, p"); |
| 2713 |
|
| { |
| 2714 |
|
| double RETVAL; |
| 2715 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2716 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2717 |
|
| ; |
| 2718 |
1 |
| Coordinate& p = xs::in<Coordinate&>(ST(1)); |
| 2719 |
|
| ; |
| 2720 |
|
| #line 75 "./xsi/LineSegment.xsi" |
| 2721 |
|
| RETVAL = THIS->distancePerpendicular(p); |
| 2722 |
|
| #line 2723 "Geos_xsgen.cc" |
| 2723 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 2724 |
1 |
| ST(0) = TARG; |
| 2725 |
|
| } |
| 2726 |
1 |
| XSRETURN(1); |
| 2727 |
1 |
| }); } |
| 2728 |
|
| |
| 2729 |
|
| |
| 2730 |
|
| |
| 2731 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_pointAlong) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_pointAlong) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2732 |
|
| { |
| 2733 |
1 |
| dVAR; dXSARGS; |
| 2734 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2735 |
0 |
| croak_xs_usage(cv, "THIS, segmentLengthFraction"); |
| 2736 |
|
| { |
| 2737 |
|
| Coordinate * RETVAL; |
| 2738 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2739 |
|
| ; |
| 2740 |
1 |
▶ | double segmentLengthFraction = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| double segmentLengthFraction = (double)SvNV(ST(1)) |
1 |
0 |
1 |
|
| 2741 |
|
| ; |
| 2742 |
|
| #line 78 "./xsi/LineSegment.xsi" |
| 2743 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2744 |
|
| Coordinate c; |
| 2745 |
|
| THIS->pointAlong(segmentLengthFraction, c); |
| 2746 |
|
| RETVAL = new Coordinate(c); |
| 2747 |
|
| #line 2748 "Geos_xsgen.cc" |
| 2748 |
|
| { |
| 2749 |
|
| SV * RETVALSV; |
| 2750 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2751 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2752 |
1 |
| ST(0) = RETVALSV; |
| 2753 |
|
| } |
| 2754 |
1 |
| } |
| 2755 |
1 |
| XSRETURN(1); |
| 2756 |
1 |
| }); } |
| 2757 |
|
| |
| 2758 |
|
| |
| 2759 |
|
| |
| 2760 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_pointAlongOffset) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_pointAlongOffset) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2761 |
|
| { |
| 2762 |
1 |
| dVAR; dXSARGS; |
| 2763 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 2764 |
0 |
| croak_xs_usage(cv, "THIS, segmentLengthFraction, offsetDistance"); |
| 2765 |
|
| { |
| 2766 |
|
| Coordinate * RETVAL; |
| 2767 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2768 |
|
| ; |
| 2769 |
1 |
▶ | double segmentLengthFraction = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| double segmentLengthFraction = (double)SvNV(ST(1)) |
1 |
0 |
1 |
|
| 2770 |
|
| ; |
| 2771 |
1 |
▶ | double offsetDistance = (double)SvNV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| double offsetDistance = (double)SvNV(ST(2)) |
1 |
0 |
1 |
|
| 2772 |
|
| ; |
| 2773 |
|
| #line 84 "./xsi/LineSegment.xsi" |
| 2774 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2775 |
|
| Coordinate c; |
| 2776 |
|
| THIS->pointAlongOffset(segmentLengthFraction, offsetDistance, c); |
| 2777 |
|
| RETVAL = new Coordinate(c); |
| 2778 |
|
| #line 2779 "Geos_xsgen.cc" |
| 2779 |
|
| { |
| 2780 |
|
| SV * RETVALSV; |
| 2781 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2782 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2783 |
1 |
| ST(0) = RETVALSV; |
| 2784 |
|
| } |
| 2785 |
1 |
| } |
| 2786 |
1 |
| XSRETURN(1); |
| 2787 |
1 |
| }); } |
| 2788 |
|
| |
| 2789 |
|
| |
| 2790 |
|
| |
| 2791 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_projectionFactor) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_projectionFactor) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2792 |
|
| { |
| 2793 |
1 |
| dVAR; dXSARGS; |
| 2794 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2795 |
0 |
| croak_xs_usage(cv, "THIS, p"); |
| 2796 |
|
| { |
| 2797 |
|
| double RETVAL; |
| 2798 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2799 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2800 |
|
| ; |
| 2801 |
1 |
| Coordinate& p = xs::in<Coordinate&>(ST(1)); |
| 2802 |
|
| ; |
| 2803 |
|
| #line 89 "./xsi/LineSegment.xsi" |
| 2804 |
|
| RETVAL = THIS->projectionFactor(p); |
| 2805 |
|
| #line 2806 "Geos_xsgen.cc" |
| 2806 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 2807 |
1 |
| ST(0) = TARG; |
| 2808 |
|
| } |
| 2809 |
1 |
| XSRETURN(1); |
| 2810 |
1 |
| }); } |
| 2811 |
|
| |
| 2812 |
|
| |
| 2813 |
|
| |
| 2814 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_segmentFraction) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_segmentFraction) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2815 |
|
| { |
| 2816 |
1 |
| dVAR; dXSARGS; |
| 2817 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2818 |
0 |
| croak_xs_usage(cv, "THIS, p"); |
| 2819 |
|
| { |
| 2820 |
|
| double RETVAL; |
| 2821 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2822 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2823 |
|
| ; |
| 2824 |
1 |
| Coordinate& p = xs::in<Coordinate&>(ST(1)); |
| 2825 |
|
| ; |
| 2826 |
|
| #line 91 "./xsi/LineSegment.xsi" |
| 2827 |
|
| RETVAL = THIS->segmentFraction(p); |
| 2828 |
|
| #line 2829 "Geos_xsgen.cc" |
| 2829 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 2830 |
1 |
| ST(0) = TARG; |
| 2831 |
|
| } |
| 2832 |
1 |
| XSRETURN(1); |
| 2833 |
1 |
| }); } |
| 2834 |
|
| |
| 2835 |
|
| |
| 2836 |
|
| |
| 2837 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_project) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_project) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 2838 |
|
| { |
| 2839 |
4 |
| dVAR; dXSARGS; |
| 2840 |
4 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
4 |
4 |
|
| 2841 |
0 |
| croak_xs_usage(cv, "THIS, arg"); |
| 2842 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 2843 |
4 |
| SP -= items; |
| 2844 |
|
| { |
| 2845 |
4 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
4 |
0 |
4 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 2846 |
|
| ; |
| 2847 |
4 |
▶ | Object arg = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg = ST(1); |
4 |
0 |
4 |
|
| 2848 |
4 |
▶ | if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
4 |
4 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
4 |
4 |
|
| 2849 |
|
| ; |
| 2850 |
|
| #line 94 "./xsi/LineSegment.xsi" |
| 2851 |
|
| if (arg.stash().name() == "Geo::Geos::Coordinate") { |
| 2852 |
|
| auto& c = xs::in<Coordinate&>(arg); |
| 2853 |
|
| Coordinate c_out; |
| 2854 |
|
| THIS->project(c, c_out); |
| 2855 |
|
| auto wrapped = xs::out<>(new Coordinate(c_out)); |
| 2856 |
|
| mXPUSHs(wrapped.detach()); |
| 2857 |
|
| } |
| 2858 |
|
| else { |
| 2859 |
|
| auto& ls = xs::in<LineSegment&>(arg); |
| 2860 |
|
| LineSegment ls_out; |
| 2861 |
|
| bool overlap = THIS->project(ls, ls_out); |
| 2862 |
|
| auto wrapped = xs::out<>(new LineSegment(ls_out)); |
| 2863 |
|
| mXPUSHs(wrapped.detach()); |
| 2864 |
|
| if (GIMME_V == G_ARRAY) mXPUSHi(overlap); |
| 2865 |
|
| } |
| 2866 |
|
| #line 2867 "Geos_xsgen.cc" |
| 2867 |
4 |
| PUTBACK; |
| 2868 |
8 |
| return; |
| 2869 |
4 |
| } |
| 2870 |
4 |
| }); } |
| 2871 |
|
| |
| 2872 |
|
| |
| 2873 |
|
| |
| 2874 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_closestPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_closestPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2875 |
|
| { |
| 2876 |
1 |
| dVAR; dXSARGS; |
| 2877 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2878 |
0 |
| croak_xs_usage(cv, "THIS, p"); |
| 2879 |
|
| { |
| 2880 |
|
| Coordinate * RETVAL; |
| 2881 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2882 |
|
| ; |
| 2883 |
1 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(1)); |
1 |
0 |
1 |
|
| 2884 |
|
| ; |
| 2885 |
|
| #line 112 "./xsi/LineSegment.xsi" |
| 2886 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2887 |
|
| Coordinate c; |
| 2888 |
|
| THIS->closestPoint(p, c); |
| 2889 |
|
| RETVAL = new Coordinate(c); |
| 2890 |
|
| #line 2891 "Geos_xsgen.cc" |
| 2891 |
|
| { |
| 2892 |
|
| SV * RETVALSV; |
| 2893 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2894 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2895 |
1 |
| ST(0) = RETVALSV; |
| 2896 |
|
| } |
| 2897 |
1 |
| } |
| 2898 |
1 |
| XSRETURN(1); |
| 2899 |
1 |
| }); } |
| 2900 |
|
| |
| 2901 |
|
| |
| 2902 |
|
| |
| 2903 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_compareTo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_compareTo) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2904 |
|
| { |
| 2905 |
1 |
| dVAR; dXSARGS; |
| 2906 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2907 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 2908 |
|
| { |
| 2909 |
|
| int RETVAL; |
| 2910 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 2911 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2912 |
|
| ; |
| 2913 |
1 |
| LineSegment& other = xs::in<LineSegment&>(ST(1)); |
| 2914 |
|
| ; |
| 2915 |
|
| #line 117 "./xsi/LineSegment.xsi" |
| 2916 |
|
| RETVAL = THIS->compareTo(other); |
| 2917 |
|
| #line 2918 "Geos_xsgen.cc" |
| 2918 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 2919 |
1 |
| ST(0) = TARG; |
| 2920 |
|
| } |
| 2921 |
1 |
| XSRETURN(1); |
| 2922 |
1 |
| }); } |
| 2923 |
|
| |
| 2924 |
|
| |
| 2925 |
|
| |
| 2926 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_equalsTopo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_equalsTopo) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2927 |
|
| { |
| 2928 |
1 |
| dVAR; dXSARGS; |
| 2929 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2930 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 2931 |
|
| { |
| 2932 |
|
| bool RETVAL; |
| 2933 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2934 |
|
| ; |
| 2935 |
1 |
| LineSegment& other = xs::in<LineSegment&>(ST(1)); |
| 2936 |
|
| ; |
| 2937 |
|
| #line 119 "./xsi/LineSegment.xsi" |
| 2938 |
|
| RETVAL = THIS->equalsTopo(other); |
| 2939 |
|
| #line 2940 "Geos_xsgen.cc" |
| 2940 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 2941 |
|
| } |
| 2942 |
1 |
| XSRETURN(1); |
| 2943 |
1 |
| }); } |
| 2944 |
|
| |
| 2945 |
|
| |
| 2946 |
|
| |
| 2947 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_closestPoints) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_closestPoints) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 2948 |
|
| { |
| 2949 |
1 |
| dVAR; dXSARGS; |
| 2950 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 2951 |
0 |
| croak_xs_usage(cv, "THIS, line"); |
| 2952 |
|
| { |
| 2953 |
1 |
| Array RETVAL; |
| 2954 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 2955 |
|
| ; |
| 2956 |
1 |
▶ | LineSegment& line = xs::in<LineSegment&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment& line = xs::in<LineSegment&>(ST(1)); |
1 |
0 |
1 |
| LineSegment& line = xs::in<LineSegment&>(ST(1)); |
1 |
0 |
1 |
|
| 2957 |
|
| ; |
| 2958 |
|
| #line 122 "./xsi/LineSegment.xsi" |
| 2959 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(THIS->closestPoints(line)); |
| 2960 |
|
| RETVAL = Helper::convert_copy(seq.get()); |
| 2961 |
|
| #line 2962 "Geos_xsgen.cc" |
| 2962 |
|
| { |
| 2963 |
|
| SV * RETVALSV; |
| 2964 |
1 |
| RETVALSV = NULL; |
| 2965 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 2966 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 2967 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2968 |
1 |
| ST(0) = RETVALSV; |
| 2969 |
|
| } |
| 2970 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 2971 |
1 |
| XSRETURN(1); |
| 2972 |
1 |
| }); } |
| 2973 |
|
| |
| 2974 |
|
| |
| 2975 |
|
| |
| 2976 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_intersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_intersection) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 2977 |
|
| { |
| 2978 |
2 |
| dVAR; dXSARGS; |
| 2979 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 2980 |
0 |
| croak_xs_usage(cv, "THIS, line"); |
| 2981 |
|
| { |
| 2982 |
|
| Coordinate * RETVAL; |
| 2983 |
2 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 2984 |
|
| ; |
| 2985 |
2 |
▶ | LineSegment& line = xs::in<LineSegment&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment& line = xs::in<LineSegment&>(ST(1)); |
2 |
0 |
2 |
|
| 2986 |
|
| ; |
| 2987 |
|
| #line 127 "./xsi/LineSegment.xsi" |
| 2988 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 2989 |
|
| Coordinate c; |
| 2990 |
|
| if(THIS->intersection(line, c)) RETVAL = new Coordinate(c); |
| 2991 |
|
| else XSRETURN_UNDEF; |
| 2992 |
|
| #line 2993 "Geos_xsgen.cc" |
| 2993 |
|
| { |
| 2994 |
|
| SV * RETVALSV; |
| 2995 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 2996 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 2997 |
1 |
| ST(0) = RETVALSV; |
| 2998 |
|
| } |
| 2999 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
|
| 3000 |
1 |
| XSRETURN(1); |
| 3001 |
2 |
| }); } |
| 3002 |
|
| |
| 3003 |
|
| |
| 3004 |
|
| |
| 3005 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_lineIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_lineIntersection) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 3006 |
|
| { |
| 3007 |
2 |
| dVAR; dXSARGS; |
| 3008 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 3009 |
0 |
| croak_xs_usage(cv, "THIS, line"); |
| 3010 |
|
| { |
| 3011 |
|
| Coordinate * RETVAL; |
| 3012 |
2 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 3013 |
|
| ; |
| 3014 |
2 |
▶ | LineSegment& line = xs::in<LineSegment&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| LineSegment& line = xs::in<LineSegment&>(ST(1)); |
2 |
0 |
2 |
|
| 3015 |
|
| ; |
| 3016 |
|
| #line 133 "./xsi/LineSegment.xsi" |
| 3017 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3018 |
|
| Coordinate c; |
| 3019 |
|
| if(THIS->lineIntersection(line, c)) RETVAL = new Coordinate(c); |
| 3020 |
|
| else XSRETURN_UNDEF; |
| 3021 |
|
| #line 3022 "Geos_xsgen.cc" |
| 3022 |
|
| { |
| 3023 |
|
| SV * RETVALSV; |
| 3024 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 3025 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3026 |
1 |
| ST(0) = RETVALSV; |
| 3027 |
|
| } |
| 3028 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
|
| 3029 |
1 |
| XSRETURN(1); |
| 3030 |
2 |
| }); } |
| 3031 |
|
| |
| 3032 |
|
| |
| 3033 |
|
| |
| 3034 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_toGeometry) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_toGeometry) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 3035 |
|
| { |
| 3036 |
1 |
| dVAR; dXSARGS; |
| 3037 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 3038 |
0 |
| croak_xs_usage(cv, "THIS, gf"); |
| 3039 |
|
| { |
| 3040 |
|
| LineString * RETVAL; |
| 3041 |
1 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 3042 |
|
| ; |
| 3043 |
1 |
▶ | GeometryFactory& gf = xs::in<GeometryFactory&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| GeometryFactory& gf = xs::in<GeometryFactory&>(ST(1)); |
1 |
0 |
1 |
|
| 3044 |
|
| ; |
| 3045 |
|
| #line 139 "./xsi/LineSegment.xsi" |
| 3046 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3047 |
|
| auto ptr = THIS->toGeometry(gf); |
| 3048 |
|
| RETVAL = ptr.release(); |
| 3049 |
|
| #line 3050 "Geos_xsgen.cc" |
| 3050 |
|
| { |
| 3051 |
|
| SV * RETVALSV; |
| 3052 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 3053 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3054 |
1 |
| ST(0) = RETVALSV; |
| 3055 |
|
| } |
| 3056 |
1 |
| } |
| 3057 |
1 |
| XSRETURN(1); |
| 3058 |
1 |
| }); } |
| 3059 |
|
| |
| 3060 |
|
| |
| 3061 |
|
| |
| 3062 |
28 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_toString) { xs::throw_guard(cv, [=]() |
14 |
0 |
14 |
|
| 3063 |
|
| { |
| 3064 |
14 |
| dVAR; dXSARGS; |
| 3065 |
14 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
14 |
14 |
|
| 3066 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 3067 |
|
| { |
| 3068 |
14 |
| std::string RETVAL; |
| 3069 |
14 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
12 |
14 |
| dXSTARG; |
12 |
0 |
12 |
|
| 3070 |
14 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
14 |
0 |
14 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
14 |
14 |
|
| 3071 |
|
| ; |
| 3072 |
|
| #line 144 "./xsi/LineSegment.xsi" |
| 3073 |
|
| std::ostringstream out; |
| 3074 |
|
| out << *THIS; |
| 3075 |
|
| RETVAL = out.str(); |
| 3076 |
|
| #line 3077 "Geos_xsgen.cc" |
| 3077 |
14 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
14 |
0 |
14 |
|
| 3078 |
14 |
| ST(0) = TARG; |
| 3079 |
14 |
| } |
| 3080 |
14 |
| XSRETURN(1); |
| 3081 |
14 |
| }); } |
| 3082 |
|
| |
| 3083 |
|
| |
| 3084 |
|
| |
| 3085 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_p0) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_p0) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 3086 |
|
| { |
| 3087 |
8 |
| dVAR; dXSARGS; |
| 3088 |
8 |
| dXSI32; |
| 3089 |
8 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
8 |
0 |
8 |
| if (items < 1 || items > 2) |
0 |
8 |
8 |
|
| 3090 |
0 |
| croak_xs_usage(cv, "THIS, newval= NULL"); |
| 3091 |
|
| { |
| 3092 |
|
| Coordinate * RETVAL; |
| 3093 |
8 |
▶ | LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
8 |
0 |
8 |
| LineSegment* THIS = xs::in<LineSegment *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
8 |
8 |
|
| 3094 |
|
| ; |
| 3095 |
|
| SV* newval; |
| 3096 |
|
| |
| 3097 |
8 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
8 |
0 |
8 |
|
| 3098 |
8 |
| newval = NULL; |
| 3099 |
|
| else { |
| 3100 |
0 |
| newval = ST(1) |
| 3101 |
|
| ; |
| 3102 |
|
| } |
| 3103 |
|
| #line 150 "./xsi/LineSegment.xsi" |
| 3104 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3105 |
|
| Coordinate* val; |
| 3106 |
|
| switch (ix) { |
| 3107 |
|
| case 0: val = &THIS->p0; break; |
| 3108 |
|
| default: val = &THIS->p1; break; |
| 3109 |
|
| } |
| 3110 |
|
| if (newval) { |
| 3111 |
|
| auto& c = xs::in<Coordinate&>(newval); |
| 3112 |
|
| *val = c; |
| 3113 |
|
| } |
| 3114 |
|
| RETVAL = new Coordinate(*val); |
| 3115 |
|
| #line 3116 "Geos_xsgen.cc" |
| 3116 |
|
| { |
| 3117 |
|
| SV * RETVALSV; |
| 3118 |
8 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
8 |
0 |
8 |
|
| 3119 |
8 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
8 |
0 |
8 |
|
| 3120 |
8 |
| ST(0) = RETVALSV; |
| 3121 |
|
| } |
| 3122 |
8 |
| } |
| 3123 |
8 |
| XSRETURN(1); |
| 3124 |
8 |
| }); } |
| 3125 |
|
| |
| 3126 |
|
| |
| 3127 |
|
| |
| 3128 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__LineSegment_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineSegment_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 3129 |
|
| { |
| 3130 |
0 |
| dVAR; dXSARGS; |
| 3131 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 3132 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 3133 |
|
| { |
| 3134 |
|
| int RETVAL; |
| 3135 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 3136 |
|
| #line 162 "./xsi/LineSegment.xsi" |
| 3137 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 3138 |
|
| #line 3139 "Geos_xsgen.cc" |
| 3139 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 3140 |
0 |
| ST(0) = TARG; |
| 3141 |
|
| } |
| 3142 |
0 |
| XSRETURN(1); |
| 3143 |
0 |
| }); } |
| 3144 |
|
| |
| 3145 |
|
| |
| 3146 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/LineSegment.xsi' */ |
| 3147 |
|
| |
| 3148 |
|
| |
| 3149 |
|
| /* INCLUDE: Including 'xsi/GeometryFactory.xsi' from 'Geos.xs' */ |
| 3150 |
|
| |
| 3151 |
|
| |
| 3152 |
|
| |
| 3153 |
62 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_create) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_create) { xs::throw_guard(cv, [=]() |
31 |
0 |
31 |
|
| 3154 |
|
| { |
| 3155 |
31 |
| dVAR; dXSARGS; |
| 3156 |
31 |
▶ | if (items < 0 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 0 || items > 2) |
31 |
0 |
31 |
| if (items < 0 || items > 2) |
0 |
31 |
31 |
|
| 3157 |
0 |
| croak_xs_usage(cv, "arg1= NULL, arg2= NULL"); |
| 3158 |
|
| { |
| 3159 |
|
| GeometryFactory * RETVAL; |
| 3160 |
|
| SV* arg1; |
| 3161 |
|
| SV* arg2; |
| 3162 |
|
| |
| 3163 |
31 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
27 |
4 |
31 |
|
| 3164 |
27 |
| arg1 = NULL; |
| 3165 |
|
| else { |
| 3166 |
4 |
| arg1 = ST(0) |
| 3167 |
|
| ; |
| 3168 |
|
| } |
| 3169 |
|
| |
| 3170 |
31 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
28 |
3 |
31 |
|
| 3171 |
28 |
| arg2 = NULL; |
| 3172 |
|
| else { |
| 3173 |
3 |
| arg2 = ST(1) |
| 3174 |
|
| ; |
| 3175 |
|
| } |
| 3176 |
|
| #line 5 "./xsi/GeometryFactory.xsi" |
| 3177 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3178 |
|
| GeometryFactory::Ptr ptr; |
| 3179 |
|
| if (!arg1) { |
| 3180 |
|
| ptr = GeometryFactory::create(); |
| 3181 |
|
| } |
| 3182 |
|
| else { |
| 3183 |
|
| auto& pm = xs::in<PrecisionModel&>(arg1); |
| 3184 |
|
| if (arg2) { |
| 3185 |
|
| int srid = SvIV(arg2); |
| 3186 |
|
| ptr = GeometryFactory::create(&pm, srid); |
| 3187 |
|
| } |
| 3188 |
|
| else ptr = GeometryFactory::create(&pm); |
| 3189 |
|
| } |
| 3190 |
|
| |
| 3191 |
|
| if (ptr.get()) { |
| 3192 |
|
| /* steal pointer without destroying the factory */ |
| 3193 |
|
| RETVAL = ptr.release(); |
| 3194 |
|
| } |
| 3195 |
|
| else throw ("unsupported arguments"); |
| 3196 |
|
| #line 3197 "Geos_xsgen.cc" |
| 3197 |
|
| { |
| 3198 |
|
| SV * RETVALSV; |
| 3199 |
31 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
31 |
0 |
31 |
|
| 3200 |
31 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
31 |
0 |
31 |
|
| 3201 |
31 |
| ST(0) = RETVALSV; |
| 3202 |
|
| } |
| 3203 |
31 |
| } |
| 3204 |
31 |
| XSRETURN(1); |
| 3205 |
31 |
| }); } |
| 3206 |
|
| |
| 3207 |
|
| |
| 3208 |
|
| |
| 3209 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_getPrecisionModel) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_getPrecisionModel) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 3210 |
|
| { |
| 3211 |
1 |
| dVAR; dXSARGS; |
| 3212 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 3213 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3214 |
|
| { |
| 3215 |
|
| PrecisionModel * RETVAL; |
| 3216 |
1 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 3217 |
|
| ; |
| 3218 |
|
| #line 26 "./xsi/GeometryFactory.xsi" |
| 3219 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3220 |
|
| auto pm = THIS->getPrecisionModel(); |
| 3221 |
|
| RETVAL = new PrecisionModel(*pm); |
| 3222 |
|
| #line 3223 "Geos_xsgen.cc" |
| 3223 |
|
| { |
| 3224 |
|
| SV * RETVALSV; |
| 3225 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 3226 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3227 |
1 |
| ST(0) = RETVALSV; |
| 3228 |
|
| } |
| 3229 |
1 |
| } |
| 3230 |
1 |
| XSRETURN(1); |
| 3231 |
1 |
| }); } |
| 3232 |
|
| |
| 3233 |
|
| |
| 3234 |
|
| |
| 3235 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_getSRID) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_getSRID) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 3236 |
|
| { |
| 3237 |
4 |
| dVAR; dXSARGS; |
| 3238 |
4 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
4 |
4 |
|
| 3239 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3240 |
|
| { |
| 3241 |
|
| int RETVAL; |
| 3242 |
4 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
4 |
0 |
4 |
|
| 3243 |
4 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 3244 |
|
| ; |
| 3245 |
|
| #line 30 "./xsi/GeometryFactory.xsi" |
| 3246 |
|
| RETVAL = THIS->getSRID(); |
| 3247 |
|
| #line 3248 "Geos_xsgen.cc" |
| 3248 |
4 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
4 |
4 |
|
| 3249 |
4 |
| ST(0) = TARG; |
| 3250 |
|
| } |
| 3251 |
4 |
| XSRETURN(1); |
| 3252 |
4 |
| }); } |
| 3253 |
|
| |
| 3254 |
|
| |
| 3255 |
|
| |
| 3256 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createGeometryCollection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createGeometryCollection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 3257 |
|
| { |
| 3258 |
1 |
| dVAR; dXSARGS; |
| 3259 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 3260 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3261 |
|
| { |
| 3262 |
|
| GeometryCollection * RETVAL; |
| 3263 |
1 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 3264 |
|
| ; |
| 3265 |
|
| #line 33 "./xsi/GeometryFactory.xsi" |
| 3266 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3267 |
|
| RETVAL = THIS->createGeometryCollection(); |
| 3268 |
|
| #line 3269 "Geos_xsgen.cc" |
| 3269 |
|
| { |
| 3270 |
|
| SV * RETVALSV; |
| 3271 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 3272 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3273 |
1 |
| ST(0) = RETVALSV; |
| 3274 |
|
| } |
| 3275 |
1 |
| } |
| 3276 |
1 |
| XSRETURN(1); |
| 3277 |
1 |
| }); } |
| 3278 |
|
| |
| 3279 |
|
| |
| 3280 |
|
| |
| 3281 |
70 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createPoint) { xs::throw_guard(cv, [=]() |
35 |
0 |
35 |
|
| 3282 |
|
| { |
| 3283 |
35 |
| dVAR; dXSARGS; |
| 3284 |
35 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
35 |
0 |
35 |
| if (items < 1 || items > 3) |
0 |
35 |
35 |
|
| 3285 |
0 |
| croak_xs_usage(cv, "THIS, arg1= Sv{}, arg2= NULL"); |
| 3286 |
|
| { |
| 3287 |
|
| Point * RETVAL; |
| 3288 |
35 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
35 |
0 |
35 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
35 |
35 |
|
| 3289 |
|
| ; |
| 3290 |
35 |
| Sv arg1; |
| 3291 |
|
| SV* arg2; |
| 3292 |
|
| |
| 3293 |
35 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
34 |
35 |
|
| 3294 |
1 |
| arg1 = Sv{}; |
| 3295 |
|
| else { |
| 3296 |
34 |
▶ | arg1 = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| arg1 = ST(1) |
34 |
0 |
34 |
|
| 3297 |
|
| ; |
| 3298 |
|
| } |
| 3299 |
|
| |
| 3300 |
35 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
33 |
2 |
35 |
|
| 3301 |
33 |
| arg2 = NULL; |
| 3302 |
|
| else { |
| 3303 |
2 |
| arg2 = ST(2) |
| 3304 |
|
| ; |
| 3305 |
|
| } |
| 3306 |
|
| #line 37 "./xsi/GeometryFactory.xsi" |
| 3307 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3308 |
|
| if (!arg1) RETVAL = THIS->createPoint(); |
| 3309 |
|
| else { |
| 3310 |
|
| if (!arg1.is_array_ref()) { |
| 3311 |
|
| Object obj {arg1}; |
| 3312 |
|
| if (obj && obj.stash().name() == "Geo::Geos::Coordinate") { |
| 3313 |
|
| auto coord = xs::in<Coordinate*>(obj); |
| 3314 |
|
| RETVAL = THIS->createPoint(*coord); |
| 3315 |
|
| } |
| 3316 |
|
| else throw ("Object must be blessed into Geo::Geos::Coordinate"); |
| 3317 |
|
| } |
| 3318 |
|
| else { |
| 3319 |
|
| if (!arg2) throw ("missing mandatory argument"); |
| 3320 |
|
| size_t dims = SvIV(arg2); |
| 3321 |
|
| auto seq = Helper::convert_copy(*THIS, Array(arg1), dims); |
| 3322 |
|
| RETVAL = THIS->createPoint(seq); |
| 3323 |
|
| } |
| 3324 |
|
| } |
| 3325 |
|
| #line 3326 "Geos_xsgen.cc" |
| 3326 |
|
| { |
| 3327 |
|
| SV * RETVALSV; |
| 3328 |
35 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
35 |
0 |
35 |
|
| 3329 |
35 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
35 |
0 |
35 |
|
| 3330 |
35 |
| ST(0) = RETVALSV; |
| 3331 |
|
| } |
| 3332 |
35 |
| } |
| 3333 |
35 |
| XSRETURN(1); |
| 3334 |
35 |
| }); } |
| 3335 |
|
| |
| 3336 |
|
| |
| 3337 |
|
| |
| 3338 |
26 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiPoint) { xs::throw_guard(cv, [=]() |
13 |
0 |
13 |
|
| 3339 |
|
| { |
| 3340 |
13 |
| dVAR; dXSARGS; |
| 3341 |
13 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
13 |
0 |
13 |
| if (items < 1 || items > 3) |
0 |
13 |
13 |
|
| 3342 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL, arg2= NULL"); |
| 3343 |
|
| { |
| 3344 |
|
| MultiPoint * RETVAL; |
| 3345 |
13 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
13 |
0 |
13 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
13 |
13 |
|
| 3346 |
|
| ; |
| 3347 |
|
| SV* arg1; |
| 3348 |
|
| SV* arg2; |
| 3349 |
|
| |
| 3350 |
13 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
2 |
11 |
13 |
|
| 3351 |
2 |
| arg1 = NULL; |
| 3352 |
|
| else { |
| 3353 |
11 |
| arg1 = ST(1) |
| 3354 |
|
| ; |
| 3355 |
|
| } |
| 3356 |
|
| |
| 3357 |
13 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
2 |
11 |
13 |
|
| 3358 |
2 |
| arg2 = NULL; |
| 3359 |
|
| else { |
| 3360 |
11 |
| arg2 = ST(2) |
| 3361 |
|
| ; |
| 3362 |
|
| } |
| 3363 |
|
| #line 57 "./xsi/GeometryFactory.xsi" |
| 3364 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3365 |
|
| if (!arg1) RETVAL = THIS->createMultiPoint(); |
| 3366 |
|
| else { |
| 3367 |
|
| if (!arg2) throw ("missing mandatory argument"); |
| 3368 |
|
| size_t dims = SvIV(arg2); |
| 3369 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(Helper::convert_copy(*THIS, Array(arg1), dims)); |
| 3370 |
|
| RETVAL = THIS->createMultiPoint(*seq); |
| 3371 |
|
| } |
| 3372 |
|
| #line 3373 "Geos_xsgen.cc" |
| 3373 |
|
| { |
| 3374 |
|
| SV * RETVALSV; |
| 3375 |
13 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
13 |
0 |
13 |
|
| 3376 |
13 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
13 |
0 |
13 |
|
| 3377 |
13 |
| ST(0) = RETVALSV; |
| 3378 |
|
| } |
| 3379 |
13 |
| } |
| 3380 |
13 |
| XSRETURN(1); |
| 3381 |
13 |
| }); } |
| 3382 |
|
| |
| 3383 |
|
| |
| 3384 |
|
| |
| 3385 |
44 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createLineString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createLineString) { xs::throw_guard(cv, [=]() |
22 |
0 |
22 |
|
| 3386 |
|
| { |
| 3387 |
22 |
| dVAR; dXSARGS; |
| 3388 |
22 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
22 |
0 |
22 |
| if (items < 1 || items > 3) |
0 |
22 |
22 |
|
| 3389 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL, arg2= NULL"); |
| 3390 |
|
| { |
| 3391 |
|
| LineString * RETVAL; |
| 3392 |
22 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
22 |
0 |
22 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
22 |
22 |
|
| 3393 |
|
| ; |
| 3394 |
|
| SV* arg1; |
| 3395 |
|
| SV* arg2; |
| 3396 |
|
| |
| 3397 |
22 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
21 |
22 |
|
| 3398 |
1 |
| arg1 = NULL; |
| 3399 |
|
| else { |
| 3400 |
21 |
| arg1 = ST(1) |
| 3401 |
|
| ; |
| 3402 |
|
| } |
| 3403 |
|
| |
| 3404 |
22 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
21 |
22 |
|
| 3405 |
1 |
| arg2 = NULL; |
| 3406 |
|
| else { |
| 3407 |
21 |
| arg2 = ST(2) |
| 3408 |
|
| ; |
| 3409 |
|
| } |
| 3410 |
|
| #line 67 "./xsi/GeometryFactory.xsi" |
| 3411 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3412 |
|
| if (!arg1) RETVAL = THIS->createLineString(); |
| 3413 |
|
| else { |
| 3414 |
|
| if (!arg2) throw ("missing argument"); |
| 3415 |
|
| size_t dims = SvIV(arg2); |
| 3416 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(Helper::convert_copy(*THIS, Array(arg1), dims)); |
| 3417 |
|
| RETVAL = THIS->createLineString(*seq); |
| 3418 |
|
| } |
| 3419 |
|
| #line 3420 "Geos_xsgen.cc" |
| 3420 |
|
| { |
| 3421 |
|
| SV * RETVALSV; |
| 3422 |
22 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
22 |
0 |
22 |
|
| 3423 |
22 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
22 |
0 |
22 |
|
| 3424 |
22 |
| ST(0) = RETVALSV; |
| 3425 |
|
| } |
| 3426 |
22 |
| } |
| 3427 |
22 |
| XSRETURN(1); |
| 3428 |
22 |
| }); } |
| 3429 |
|
| |
| 3430 |
|
| |
| 3431 |
|
| |
| 3432 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiLineString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiLineString) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 3433 |
|
| { |
| 3434 |
3 |
| dVAR; dXSARGS; |
| 3435 |
3 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
3 |
0 |
3 |
| if (items < 1 || items > 2) |
0 |
3 |
3 |
|
| 3436 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL"); |
| 3437 |
|
| { |
| 3438 |
|
| MultiLineString * RETVAL; |
| 3439 |
3 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 3440 |
|
| ; |
| 3441 |
|
| SV* arg1; |
| 3442 |
|
| |
| 3443 |
3 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
2 |
3 |
|
| 3444 |
1 |
| arg1 = NULL; |
| 3445 |
|
| else { |
| 3446 |
2 |
| arg1 = ST(1) |
| 3447 |
|
| ; |
| 3448 |
|
| } |
| 3449 |
|
| #line 77 "./xsi/GeometryFactory.xsi" |
| 3450 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3451 |
|
| if (!arg1) RETVAL = THIS->createMultiLineString(); |
| 3452 |
|
| else { |
| 3453 |
|
| Array geometries(arg1); |
| 3454 |
|
| if (!geometries) throw ("unsupported argument"); |
| 3455 |
|
| auto lines = Helper::convert_geometries(geometries); |
| 3456 |
|
| RETVAL = THIS->createMultiLineString(lines); |
| 3457 |
|
| } |
| 3458 |
|
| #line 3459 "Geos_xsgen.cc" |
| 3459 |
|
| { |
| 3460 |
|
| SV * RETVALSV; |
| 3461 |
3 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
3 |
0 |
3 |
|
| 3462 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 3463 |
3 |
| ST(0) = RETVALSV; |
| 3464 |
|
| } |
| 3465 |
3 |
| } |
| 3466 |
3 |
| XSRETURN(1); |
| 3467 |
3 |
| }); } |
| 3468 |
|
| |
| 3469 |
|
| |
| 3470 |
|
| |
| 3471 |
44 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createLinearRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createLinearRing) { xs::throw_guard(cv, [=]() |
22 |
0 |
22 |
|
| 3472 |
|
| { |
| 3473 |
22 |
| dVAR; dXSARGS; |
| 3474 |
22 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
22 |
0 |
22 |
| if (items < 1 || items > 3) |
0 |
22 |
22 |
|
| 3475 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL, arg2= NULL"); |
| 3476 |
|
| { |
| 3477 |
|
| LinearRing * RETVAL; |
| 3478 |
22 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
22 |
0 |
22 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
22 |
22 |
|
| 3479 |
|
| ; |
| 3480 |
|
| SV* arg1; |
| 3481 |
|
| SV* arg2; |
| 3482 |
|
| |
| 3483 |
22 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
21 |
22 |
|
| 3484 |
1 |
| arg1 = NULL; |
| 3485 |
|
| else { |
| 3486 |
21 |
| arg1 = ST(1) |
| 3487 |
|
| ; |
| 3488 |
|
| } |
| 3489 |
|
| |
| 3490 |
22 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
21 |
22 |
|
| 3491 |
1 |
| arg2 = NULL; |
| 3492 |
|
| else { |
| 3493 |
21 |
| arg2 = ST(2) |
| 3494 |
|
| ; |
| 3495 |
|
| } |
| 3496 |
|
| #line 87 "./xsi/GeometryFactory.xsi" |
| 3497 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3498 |
|
| if (!arg1) RETVAL = THIS->createLinearRing(); |
| 3499 |
|
| else { |
| 3500 |
|
| if (!arg2) throw ("missing argument"); |
| 3501 |
|
| size_t dims = SvIV(arg2); |
| 3502 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(Helper::convert_copy(*THIS, Array(arg1), dims)); |
| 3503 |
|
| RETVAL = THIS->createLinearRing(*seq); |
| 3504 |
|
| } |
| 3505 |
|
| #line 3506 "Geos_xsgen.cc" |
| 3506 |
|
| { |
| 3507 |
|
| SV * RETVALSV; |
| 3508 |
22 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
22 |
0 |
22 |
|
| 3509 |
22 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
22 |
0 |
22 |
|
| 3510 |
22 |
| ST(0) = RETVALSV; |
| 3511 |
|
| } |
| 3512 |
22 |
| } |
| 3513 |
22 |
| XSRETURN(1); |
| 3514 |
22 |
| }); } |
| 3515 |
|
| |
| 3516 |
|
| |
| 3517 |
|
| |
| 3518 |
32 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createPolygon) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createPolygon) { xs::throw_guard(cv, [=]() |
16 |
0 |
16 |
|
| 3519 |
|
| { |
| 3520 |
16 |
| dVAR; dXSARGS; |
| 3521 |
16 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
16 |
0 |
16 |
| if (items < 1 || items > 3) |
0 |
16 |
16 |
|
| 3522 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL, arg2= NULL"); |
| 3523 |
|
| { |
| 3524 |
|
| geos::geom::Polygon * RETVAL; |
| 3525 |
16 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
16 |
0 |
16 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
16 |
16 |
|
| 3526 |
|
| ; |
| 3527 |
|
| SV* arg1; |
| 3528 |
|
| SV* arg2; |
| 3529 |
|
| |
| 3530 |
16 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
15 |
16 |
|
| 3531 |
1 |
| arg1 = NULL; |
| 3532 |
|
| else { |
| 3533 |
15 |
| arg1 = ST(1) |
| 3534 |
|
| ; |
| 3535 |
|
| } |
| 3536 |
|
| |
| 3537 |
16 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
14 |
2 |
16 |
|
| 3538 |
14 |
| arg2 = NULL; |
| 3539 |
|
| else { |
| 3540 |
2 |
| arg2 = ST(2) |
| 3541 |
|
| ; |
| 3542 |
|
| } |
| 3543 |
|
| #line 97 "./xsi/GeometryFactory.xsi" |
| 3544 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3545 |
|
| if (!arg1) RETVAL = THIS->createPolygon(); |
| 3546 |
|
| else { |
| 3547 |
|
| auto ring = xs::in<LinearRing*>(arg1); |
| 3548 |
|
| auto holes = Helper::convert_geometries(Array(arg2)); |
| 3549 |
|
| RETVAL = THIS->createPolygon(*ring, holes); |
| 3550 |
|
| } |
| 3551 |
|
| #line 3552 "Geos_xsgen.cc" |
| 3552 |
|
| { |
| 3553 |
|
| SV * RETVALSV; |
| 3554 |
16 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
16 |
0 |
16 |
|
| 3555 |
16 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
16 |
0 |
16 |
|
| 3556 |
16 |
| ST(0) = RETVALSV; |
| 3557 |
|
| } |
| 3558 |
16 |
| } |
| 3559 |
16 |
| XSRETURN(1); |
| 3560 |
16 |
| }); } |
| 3561 |
|
| |
| 3562 |
|
| |
| 3563 |
|
| |
| 3564 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiPolygon) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createMultiPolygon) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 3565 |
|
| { |
| 3566 |
2 |
| dVAR; dXSARGS; |
| 3567 |
2 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
2 |
0 |
2 |
| if (items < 1 || items > 2) |
0 |
2 |
2 |
|
| 3568 |
0 |
| croak_xs_usage(cv, "THIS, arg1= NULL"); |
| 3569 |
|
| { |
| 3570 |
|
| MultiPolygon * RETVAL; |
| 3571 |
2 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 3572 |
|
| ; |
| 3573 |
|
| SV* arg1; |
| 3574 |
|
| |
| 3575 |
2 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
1 |
2 |
|
| 3576 |
1 |
| arg1 = NULL; |
| 3577 |
|
| else { |
| 3578 |
1 |
| arg1 = ST(1) |
| 3579 |
|
| ; |
| 3580 |
|
| } |
| 3581 |
|
| #line 106 "./xsi/GeometryFactory.xsi" |
| 3582 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 3583 |
|
| if (!arg1) RETVAL = THIS->createMultiPolygon(); |
| 3584 |
|
| else { |
| 3585 |
|
| auto polygons = Helper::convert_geometries(Array(arg1)); |
| 3586 |
|
| RETVAL = THIS->createMultiPolygon(polygons); |
| 3587 |
|
| } |
| 3588 |
|
| #line 3589 "Geos_xsgen.cc" |
| 3589 |
|
| { |
| 3590 |
|
| SV * RETVALSV; |
| 3591 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 3592 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 3593 |
2 |
| ST(0) = RETVALSV; |
| 3594 |
|
| } |
| 3595 |
2 |
| } |
| 3596 |
2 |
| XSRETURN(1); |
| 3597 |
2 |
| }); } |
| 3598 |
|
| |
| 3599 |
|
| |
| 3600 |
|
| |
| 3601 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_toGeometry) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_toGeometry) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 3602 |
|
| { |
| 3603 |
1 |
| dVAR; dXSARGS; |
| 3604 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 3605 |
0 |
| croak_xs_usage(cv, "THIS, env"); |
| 3606 |
|
| { |
| 3607 |
1 |
| Sv RETVAL; |
| 3608 |
1 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 3609 |
|
| ; |
| 3610 |
1 |
▶ | Envelope* env = xs::in<Envelope *>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Envelope* env = xs::in<Envelope *>(ST(1)); |
1 |
0 |
1 |
| Envelope* env = xs::in<Envelope *>(ST(1)); |
1 |
0 |
1 |
|
| 3611 |
|
| ; |
| 3612 |
|
| #line 114 "./xsi/GeometryFactory.xsi" |
| 3613 |
|
| RETVAL = Helper::uplift(THIS->toGeometry(env)); |
| 3614 |
|
| #line 3615 "Geos_xsgen.cc" |
| 3615 |
|
| { |
| 3616 |
|
| SV * RETVALSV; |
| 3617 |
1 |
| RETVALSV = NULL; |
| 3618 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 3619 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 3620 |
0 |
| else switch (RETVAL.type()) { |
| 3621 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3622 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3623 |
0 |
| case SVt_PVCV: |
| 3624 |
|
| case SVt_PVIO: |
| 3625 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 3626 |
0 |
| break; |
| 3627 |
0 |
| default: throw "unknown type of Sv to return"; |
| 3628 |
|
| } |
| 3629 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3630 |
1 |
| ST(0) = RETVALSV; |
| 3631 |
|
| } |
| 3632 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 3633 |
1 |
| XSRETURN(1); |
| 3634 |
1 |
| }); } |
| 3635 |
|
| |
| 3636 |
|
| |
| 3637 |
|
| |
| 3638 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_createEmptyGeometry) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_createEmptyGeometry) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 3639 |
|
| { |
| 3640 |
1 |
| dVAR; dXSARGS; |
| 3641 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 3642 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3643 |
|
| { |
| 3644 |
1 |
| Sv RETVAL; |
| 3645 |
1 |
▶ | GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| GeometryFactory* THIS = xs::in<GeometryFactory *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 3646 |
|
| ; |
| 3647 |
|
| #line 118 "./xsi/GeometryFactory.xsi" |
| 3648 |
|
| RETVAL = Helper::uplift(THIS->createEmptyGeometry()); |
| 3649 |
|
| #line 3650 "Geos_xsgen.cc" |
| 3650 |
|
| { |
| 3651 |
|
| SV * RETVALSV; |
| 3652 |
1 |
| RETVALSV = NULL; |
| 3653 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 3654 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 3655 |
0 |
| else switch (RETVAL.type()) { |
| 3656 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3657 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3658 |
0 |
| case SVt_PVCV: |
| 3659 |
|
| case SVt_PVIO: |
| 3660 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 3661 |
0 |
| break; |
| 3662 |
0 |
| default: throw "unknown type of Sv to return"; |
| 3663 |
|
| } |
| 3664 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 3665 |
1 |
| ST(0) = RETVALSV; |
| 3666 |
|
| } |
| 3667 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 3668 |
1 |
| XSRETURN(1); |
| 3669 |
1 |
| }); } |
| 3670 |
|
| |
| 3671 |
|
| |
| 3672 |
|
| |
| 3673 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryFactory_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryFactory_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 3674 |
|
| { |
| 3675 |
0 |
| dVAR; dXSARGS; |
| 3676 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 3677 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 3678 |
|
| { |
| 3679 |
|
| int RETVAL; |
| 3680 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 3681 |
|
| #line 121 "./xsi/GeometryFactory.xsi" |
| 3682 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 3683 |
|
| #line 3684 "Geos_xsgen.cc" |
| 3684 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 3685 |
0 |
| ST(0) = TARG; |
| 3686 |
|
| } |
| 3687 |
0 |
| XSRETURN(1); |
| 3688 |
0 |
| }); } |
| 3689 |
|
| |
| 3690 |
|
| |
| 3691 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/GeometryFactory.xsi' */ |
| 3692 |
|
| |
| 3693 |
|
| |
| 3694 |
|
| /* INCLUDE: Including 'xsi/Geometry.xsi' from 'Geos.xs' */ |
| 3695 |
|
| |
| 3696 |
|
| |
| 3697 |
|
| |
| 3698 |
28 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getSRID) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getSRID) { xs::throw_guard(cv, [=]() |
14 |
0 |
14 |
|
| 3699 |
|
| { |
| 3700 |
14 |
| dVAR; dXSARGS; |
| 3701 |
14 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
14 |
14 |
|
| 3702 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3703 |
|
| { |
| 3704 |
|
| int RETVAL; |
| 3705 |
14 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
14 |
0 |
14 |
|
| 3706 |
14 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
14 |
14 |
|
| 3707 |
|
| ; |
| 3708 |
|
| #line 4 "./xsi/Geometry.xsi" |
| 3709 |
|
| RETVAL = THIS->getSRID(); |
| 3710 |
|
| #line 3711 "Geos_xsgen.cc" |
| 3711 |
14 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
14 |
14 |
|
| 3712 |
14 |
| ST(0) = TARG; |
| 3713 |
|
| } |
| 3714 |
14 |
| XSRETURN(1); |
| 3715 |
14 |
| }); } |
| 3716 |
|
| |
| 3717 |
|
| |
| 3718 |
|
| |
| 3719 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_setSRID) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_setSRID) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 3720 |
|
| { |
| 3721 |
6 |
| dVAR; dXSARGS; |
| 3722 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 3723 |
0 |
| croak_xs_usage(cv, "THIS, newSRID"); |
| 3724 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 3725 |
6 |
| SP -= items; |
| 3726 |
|
| { |
| 3727 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 3728 |
|
| ; |
| 3729 |
6 |
| int newSRID = (int)SvIV(ST(1)) |
| 3730 |
|
| ; |
| 3731 |
|
| #line 6 "./xsi/Geometry.xsi" |
| 3732 |
|
| THIS->setSRID(newSRID); |
| 3733 |
|
| #line 3734 "Geos_xsgen.cc" |
| 3734 |
6 |
| PUTBACK; |
| 3735 |
6 |
| return; |
| 3736 |
|
| } |
| 3737 |
6 |
| }); } |
| 3738 |
|
| |
| 3739 |
|
| |
| 3740 |
|
| |
| 3741 |
34 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_isEmpty) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_isEmpty) { xs::throw_guard(cv, [=]() |
17 |
0 |
17 |
|
| 3742 |
|
| { |
| 3743 |
17 |
| dVAR; dXSARGS; |
| 3744 |
17 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
17 |
17 |
|
| 3745 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3746 |
|
| { |
| 3747 |
|
| bool RETVAL; |
| 3748 |
17 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
17 |
17 |
|
| 3749 |
|
| ; |
| 3750 |
|
| #line 8 "./xsi/Geometry.xsi" |
| 3751 |
|
| RETVAL = THIS->isEmpty(); |
| 3752 |
|
| #line 3753 "Geos_xsgen.cc" |
| 3753 |
17 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
5 |
12 |
17 |
|
| 3754 |
|
| } |
| 3755 |
17 |
| XSRETURN(1); |
| 3756 |
17 |
| }); } |
| 3757 |
|
| |
| 3758 |
|
| |
| 3759 |
|
| |
| 3760 |
28 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_isSimple) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_isSimple) { xs::throw_guard(cv, [=]() |
14 |
0 |
14 |
|
| 3761 |
|
| { |
| 3762 |
14 |
| dVAR; dXSARGS; |
| 3763 |
14 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
14 |
14 |
|
| 3764 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3765 |
|
| { |
| 3766 |
|
| bool RETVAL; |
| 3767 |
14 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
14 |
14 |
|
| 3768 |
|
| ; |
| 3769 |
|
| #line 10 "./xsi/Geometry.xsi" |
| 3770 |
|
| RETVAL = THIS->isSimple(); |
| 3771 |
|
| #line 3772 "Geos_xsgen.cc" |
| 3772 |
14 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
14 |
0 |
14 |
|
| 3773 |
|
| } |
| 3774 |
14 |
| XSRETURN(1); |
| 3775 |
14 |
| }); } |
| 3776 |
|
| |
| 3777 |
|
| |
| 3778 |
|
| |
| 3779 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_isRectangle) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_isRectangle) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 3780 |
|
| { |
| 3781 |
6 |
| dVAR; dXSARGS; |
| 3782 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 3783 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3784 |
|
| { |
| 3785 |
|
| bool RETVAL; |
| 3786 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 3787 |
|
| ; |
| 3788 |
|
| #line 12 "./xsi/Geometry.xsi" |
| 3789 |
|
| RETVAL = THIS->isRectangle(); |
| 3790 |
|
| #line 3791 "Geos_xsgen.cc" |
| 3791 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
5 |
6 |
|
| 3792 |
|
| } |
| 3793 |
6 |
| XSRETURN(1); |
| 3794 |
6 |
| }); } |
| 3795 |
|
| |
| 3796 |
|
| |
| 3797 |
|
| |
| 3798 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_isValid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_isValid) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 3799 |
|
| { |
| 3800 |
6 |
| dVAR; dXSARGS; |
| 3801 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 3802 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3803 |
|
| { |
| 3804 |
|
| bool RETVAL; |
| 3805 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 3806 |
|
| ; |
| 3807 |
|
| #line 14 "./xsi/Geometry.xsi" |
| 3808 |
|
| RETVAL = THIS->isValid(); |
| 3809 |
|
| #line 3810 "Geos_xsgen.cc" |
| 3810 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 3811 |
|
| } |
| 3812 |
6 |
| XSRETURN(1); |
| 3813 |
6 |
| }); } |
| 3814 |
|
| |
| 3815 |
|
| |
| 3816 |
|
| |
| 3817 |
30 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getNumPoints) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getNumPoints) { xs::throw_guard(cv, [=]() |
15 |
0 |
15 |
|
| 3818 |
|
| { |
| 3819 |
15 |
| dVAR; dXSARGS; |
| 3820 |
15 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
15 |
15 |
|
| 3821 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3822 |
|
| { |
| 3823 |
|
| size_t RETVAL; |
| 3824 |
15 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
15 |
0 |
15 |
|
| 3825 |
15 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
15 |
15 |
|
| 3826 |
|
| ; |
| 3827 |
|
| #line 16 "./xsi/Geometry.xsi" |
| 3828 |
|
| RETVAL = THIS->getNumPoints(); |
| 3829 |
|
| #line 3830 "Geos_xsgen.cc" |
| 3830 |
15 |
▶ | TARGu((UV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGu((UV)RETVAL, 1); |
0 |
15 |
15 |
|
| 3831 |
15 |
| ST(0) = TARG; |
| 3832 |
|
| } |
| 3833 |
15 |
| XSRETURN(1); |
| 3834 |
15 |
| }); } |
| 3835 |
|
| |
| 3836 |
|
| |
| 3837 |
|
| |
| 3838 |
18 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getDimension) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getDimension) { xs::throw_guard(cv, [=]() |
9 |
0 |
9 |
|
| 3839 |
|
| { |
| 3840 |
9 |
| dVAR; dXSARGS; |
| 3841 |
9 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9 |
9 |
|
| 3842 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3843 |
|
| { |
| 3844 |
|
| int RETVAL; |
| 3845 |
9 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
9 |
0 |
9 |
|
| 3846 |
9 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
9 |
9 |
|
| 3847 |
|
| ; |
| 3848 |
|
| #line 18 "./xsi/Geometry.xsi" |
| 3849 |
|
| RETVAL = THIS->getDimension(); |
| 3850 |
|
| #line 3851 "Geos_xsgen.cc" |
| 3851 |
9 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
9 |
9 |
|
| 3852 |
9 |
| ST(0) = TARG; |
| 3853 |
|
| } |
| 3854 |
9 |
| XSRETURN(1); |
| 3855 |
9 |
| }); } |
| 3856 |
|
| |
| 3857 |
|
| |
| 3858 |
|
| |
| 3859 |
30 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinateDimension) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinateDimension) { xs::throw_guard(cv, [=]() |
15 |
0 |
15 |
|
| 3860 |
|
| { |
| 3861 |
15 |
| dVAR; dXSARGS; |
| 3862 |
15 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
15 |
15 |
|
| 3863 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3864 |
|
| { |
| 3865 |
|
| int RETVAL; |
| 3866 |
15 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
15 |
0 |
15 |
|
| 3867 |
15 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
15 |
15 |
|
| 3868 |
|
| ; |
| 3869 |
|
| #line 20 "./xsi/Geometry.xsi" |
| 3870 |
|
| RETVAL = THIS->getCoordinateDimension(); |
| 3871 |
|
| #line 3872 "Geos_xsgen.cc" |
| 3872 |
15 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
15 |
15 |
|
| 3873 |
15 |
| ST(0) = TARG; |
| 3874 |
|
| } |
| 3875 |
15 |
| XSRETURN(1); |
| 3876 |
15 |
| }); } |
| 3877 |
|
| |
| 3878 |
|
| |
| 3879 |
|
| |
| 3880 |
30 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getBoundaryDimension) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getBoundaryDimension) { xs::throw_guard(cv, [=]() |
15 |
0 |
15 |
|
| 3881 |
|
| { |
| 3882 |
15 |
| dVAR; dXSARGS; |
| 3883 |
15 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
15 |
15 |
|
| 3884 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3885 |
|
| { |
| 3886 |
|
| int RETVAL; |
| 3887 |
15 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
15 |
0 |
15 |
|
| 3888 |
15 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
15 |
15 |
|
| 3889 |
|
| ; |
| 3890 |
|
| #line 22 "./xsi/Geometry.xsi" |
| 3891 |
|
| RETVAL = THIS->getBoundaryDimension(); |
| 3892 |
|
| #line 3893 "Geos_xsgen.cc" |
| 3893 |
15 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
15 |
15 |
|
| 3894 |
15 |
| ST(0) = TARG; |
| 3895 |
|
| } |
| 3896 |
15 |
| XSRETURN(1); |
| 3897 |
15 |
| }); } |
| 3898 |
|
| |
| 3899 |
|
| |
| 3900 |
|
| |
| 3901 |
22 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getNumGeometries) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getNumGeometries) { xs::throw_guard(cv, [=]() |
11 |
0 |
11 |
|
| 3902 |
|
| { |
| 3903 |
11 |
| dVAR; dXSARGS; |
| 3904 |
11 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
11 |
11 |
|
| 3905 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3906 |
|
| { |
| 3907 |
|
| int RETVAL; |
| 3908 |
11 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
11 |
0 |
11 |
|
| 3909 |
11 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
11 |
11 |
|
| 3910 |
|
| ; |
| 3911 |
|
| #line 24 "./xsi/Geometry.xsi" |
| 3912 |
|
| RETVAL = THIS->getNumGeometries(); |
| 3913 |
|
| #line 3914 "Geos_xsgen.cc" |
| 3914 |
11 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
11 |
11 |
|
| 3915 |
11 |
| ST(0) = TARG; |
| 3916 |
|
| } |
| 3917 |
11 |
| XSRETURN(1); |
| 3918 |
11 |
| }); } |
| 3919 |
|
| |
| 3920 |
|
| |
| 3921 |
|
| |
| 3922 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_reverse) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_reverse) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 3923 |
|
| { |
| 3924 |
4 |
| dVAR; dXSARGS; |
| 3925 |
4 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
4 |
4 |
|
| 3926 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 3927 |
|
| { |
| 3928 |
4 |
| Sv RETVAL; |
| 3929 |
4 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
4 |
0 |
4 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 3930 |
|
| ; |
| 3931 |
|
| #line 26 "./xsi/Geometry.xsi" |
| 3932 |
|
| RETVAL = Helper::uplift(THIS->reverse()); |
| 3933 |
|
| #line 3934 "Geos_xsgen.cc" |
| 3934 |
|
| { |
| 3935 |
|
| SV * RETVALSV; |
| 3936 |
4 |
| RETVALSV = NULL; |
| 3937 |
4 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
4 |
4 |
|
| 3938 |
4 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
4 |
0 |
4 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
4 |
0 |
4 |
|
| 3939 |
0 |
| else switch (RETVAL.type()) { |
| 3940 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3941 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3942 |
0 |
| case SVt_PVCV: |
| 3943 |
|
| case SVt_PVIO: |
| 3944 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 3945 |
0 |
| break; |
| 3946 |
0 |
| default: throw "unknown type of Sv to return"; |
| 3947 |
|
| } |
| 3948 |
4 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
4 |
0 |
4 |
|
| 3949 |
4 |
| ST(0) = RETVALSV; |
| 3950 |
|
| } |
| 3951 |
4 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
4 |
0 |
4 |
|
| 3952 |
4 |
| XSRETURN(1); |
| 3953 |
4 |
| }); } |
| 3954 |
|
| |
| 3955 |
|
| |
| 3956 |
|
| |
| 3957 |
26 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryN) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryN) { xs::throw_guard(cv, [=]() |
13 |
0 |
13 |
|
| 3958 |
|
| { |
| 3959 |
13 |
| dVAR; dXSARGS; |
| 3960 |
13 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
13 |
13 |
|
| 3961 |
0 |
| croak_xs_usage(cv, "THIS, n"); |
| 3962 |
|
| { |
| 3963 |
13 |
| Sv RETVAL; |
| 3964 |
13 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
13 |
0 |
13 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
13 |
13 |
|
| 3965 |
|
| ; |
| 3966 |
13 |
▶ | size_t n = (size_t)SvUV(ST(1)) |
Branch: 2 branches
| Branch | True | False | Total |
| size_t n = (size_t)SvUV(ST(1)) |
13 |
0 |
13 |
| size_t n = (size_t)SvUV(ST(1)) |
13 |
0 |
13 |
|
| 3967 |
|
| ; |
| 3968 |
|
| #line 29 "./xsi/Geometry.xsi" |
| 3969 |
|
| auto g = THIS->getGeometryN(n); |
| 3970 |
|
| if (g) RETVAL = Helper::uplift(g->clone()); |
| 3971 |
|
| else XSRETURN_UNDEF; |
| 3972 |
|
| #line 3973 "Geos_xsgen.cc" |
| 3973 |
|
| { |
| 3974 |
|
| SV * RETVALSV; |
| 3975 |
13 |
| RETVALSV = NULL; |
| 3976 |
13 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
13 |
13 |
|
| 3977 |
13 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
13 |
0 |
13 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
13 |
0 |
13 |
|
| 3978 |
0 |
| else switch (RETVAL.type()) { |
| 3979 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3980 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 3981 |
0 |
| case SVt_PVCV: |
| 3982 |
|
| case SVt_PVIO: |
| 3983 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 3984 |
0 |
| break; |
| 3985 |
0 |
| default: throw "unknown type of Sv to return"; |
| 3986 |
|
| } |
| 3987 |
13 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
13 |
0 |
13 |
|
| 3988 |
13 |
| ST(0) = RETVALSV; |
| 3989 |
|
| } |
| 3990 |
13 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
13 |
0 |
13 |
|
| 3991 |
13 |
| XSRETURN(1); |
| 3992 |
13 |
| }); } |
| 3993 |
|
| |
| 3994 |
|
| |
| 3995 |
|
| |
| 3996 |
44 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinate) { xs::throw_guard(cv, [=]() |
22 |
0 |
22 |
|
| 3997 |
|
| { |
| 3998 |
22 |
| dVAR; dXSARGS; |
| 3999 |
22 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
22 |
22 |
|
| 4000 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4001 |
|
| { |
| 4002 |
|
| Coordinate * RETVAL; |
| 4003 |
22 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
22 |
0 |
22 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
22 |
22 |
|
| 4004 |
|
| ; |
| 4005 |
|
| #line 35 "./xsi/Geometry.xsi" |
| 4006 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 4007 |
|
| // avoid mem-leak due to https://trac.osgeo.org/geos/ticket/918 |
| 4008 |
|
| if (THIS->isEmpty()) XSRETURN_UNDEF; |
| 4009 |
|
| |
| 4010 |
|
| auto c = THIS->getCoordinate(); |
| 4011 |
|
| if (c) RETVAL = new Coordinate(*c); |
| 4012 |
|
| else XSRETURN_UNDEF; |
| 4013 |
|
| #line 4014 "Geos_xsgen.cc" |
| 4014 |
|
| { |
| 4015 |
|
| SV * RETVALSV; |
| 4016 |
14 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
14 |
0 |
14 |
|
| 4017 |
14 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
14 |
0 |
14 |
|
| 4018 |
14 |
| ST(0) = RETVALSV; |
| 4019 |
|
| } |
| 4020 |
22 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
14 |
8 |
22 |
|
| 4021 |
14 |
| XSRETURN(1); |
| 4022 |
22 |
| }); } |
| 4023 |
|
| |
| 4024 |
|
| |
| 4025 |
|
| |
| 4026 |
28 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryType) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryType) { xs::throw_guard(cv, [=]() |
14 |
0 |
14 |
|
| 4027 |
|
| { |
| 4028 |
14 |
| dVAR; dXSARGS; |
| 4029 |
14 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
14 |
14 |
|
| 4030 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4031 |
|
| { |
| 4032 |
14 |
| std::string RETVAL; |
| 4033 |
14 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
14 |
0 |
14 |
| dXSTARG; |
0 |
0 |
0 |
|
| 4034 |
14 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
14 |
0 |
14 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
14 |
14 |
|
| 4035 |
|
| ; |
| 4036 |
|
| #line 43 "./xsi/Geometry.xsi" |
| 4037 |
|
| RETVAL = THIS->getGeometryType(); |
| 4038 |
|
| #line 4039 "Geos_xsgen.cc" |
| 4039 |
14 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
14 |
0 |
14 |
|
| 4040 |
14 |
| ST(0) = TARG; |
| 4041 |
14 |
| } |
| 4042 |
14 |
| XSRETURN(1); |
| 4043 |
14 |
| }); } |
| 4044 |
|
| |
| 4045 |
|
| |
| 4046 |
|
| |
| 4047 |
64 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryTypeId) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getGeometryTypeId) { xs::throw_guard(cv, [=]() |
32 |
0 |
32 |
|
| 4048 |
|
| { |
| 4049 |
32 |
| dVAR; dXSARGS; |
| 4050 |
32 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
32 |
32 |
|
| 4051 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4052 |
|
| { |
| 4053 |
|
| int RETVAL; |
| 4054 |
32 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
32 |
0 |
32 |
|
| 4055 |
32 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
32 |
32 |
|
| 4056 |
|
| ; |
| 4057 |
|
| #line 45 "./xsi/Geometry.xsi" |
| 4058 |
|
| RETVAL = THIS->getGeometryTypeId(); |
| 4059 |
|
| #line 4060 "Geos_xsgen.cc" |
| 4060 |
32 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
32 |
32 |
|
| 4061 |
32 |
| ST(0) = TARG; |
| 4062 |
|
| } |
| 4063 |
32 |
| XSRETURN(1); |
| 4064 |
32 |
| }); } |
| 4065 |
|
| |
| 4066 |
|
| |
| 4067 |
|
| |
| 4068 |
442 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_toString) { xs::throw_guard(cv, [=]() |
221 |
0 |
221 |
|
| 4069 |
|
| { |
| 4070 |
221 |
| dVAR; dXSARGS; |
| 4071 |
221 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
221 |
221 |
|
| 4072 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 4073 |
|
| { |
| 4074 |
221 |
| std::string RETVAL; |
| 4075 |
221 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
35 |
186 |
221 |
| dXSTARG; |
186 |
0 |
186 |
|
| 4076 |
221 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
221 |
0 |
221 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
221 |
221 |
|
| 4077 |
|
| ; |
| 4078 |
|
| #line 47 "./xsi/Geometry.xsi" |
| 4079 |
|
| RETVAL = THIS->toString(); |
| 4080 |
|
| #line 4081 "Geos_xsgen.cc" |
| 4081 |
221 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
221 |
0 |
221 |
|
| 4082 |
221 |
| ST(0) = TARG; |
| 4083 |
221 |
| } |
| 4084 |
221 |
| XSRETURN(1); |
| 4085 |
221 |
| }); } |
| 4086 |
|
| |
| 4087 |
|
| |
| 4088 |
|
| |
| 4089 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_toText) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_toText) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4090 |
|
| { |
| 4091 |
6 |
| dVAR; dXSARGS; |
| 4092 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 4093 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4094 |
|
| { |
| 4095 |
6 |
| std::string RETVAL; |
| 4096 |
6 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
6 |
0 |
6 |
| dXSTARG; |
0 |
0 |
0 |
|
| 4097 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4098 |
|
| ; |
| 4099 |
|
| #line 49 "./xsi/Geometry.xsi" |
| 4100 |
|
| RETVAL = THIS->toText(); |
| 4101 |
|
| #line 4102 "Geos_xsgen.cc" |
| 4102 |
6 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
6 |
0 |
6 |
|
| 4103 |
6 |
| ST(0) = TARG; |
| 4104 |
6 |
| } |
| 4105 |
6 |
| XSRETURN(1); |
| 4106 |
6 |
| }); } |
| 4107 |
|
| |
| 4108 |
|
| |
| 4109 |
|
| |
| 4110 |
30 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_equalsExact) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_equalsExact) { xs::throw_guard(cv, [=]() |
15 |
0 |
15 |
|
| 4111 |
|
| { |
| 4112 |
15 |
| dVAR; dXSARGS; |
| 4113 |
15 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
15 |
0 |
15 |
| if (items < 2 || items > 3) |
0 |
15 |
15 |
|
| 4114 |
0 |
| croak_xs_usage(cv, "THIS, other, tolerance= 0"); |
| 4115 |
|
| { |
| 4116 |
|
| bool RETVAL; |
| 4117 |
15 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
15 |
15 |
|
| 4118 |
|
| ; |
| 4119 |
15 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4120 |
|
| ; |
| 4121 |
|
| double tolerance; |
| 4122 |
|
| |
| 4123 |
15 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
7 |
8 |
15 |
|
| 4124 |
7 |
| tolerance = 0; |
| 4125 |
|
| else { |
| 4126 |
8 |
| tolerance = (double)SvNV(ST(2)) |
| 4127 |
|
| ; |
| 4128 |
|
| } |
| 4129 |
|
| #line 51 "./xsi/Geometry.xsi" |
| 4130 |
|
| RETVAL = THIS->equalsExact(&other, tolerance); |
| 4131 |
|
| #line 4132 "Geos_xsgen.cc" |
| 4132 |
15 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
15 |
0 |
15 |
|
| 4133 |
|
| } |
| 4134 |
15 |
| XSRETURN(1); |
| 4135 |
15 |
| }); } |
| 4136 |
|
| |
| 4137 |
|
| |
| 4138 |
|
| |
| 4139 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_equals) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_equals) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4140 |
|
| { |
| 4141 |
7 |
| dVAR; dXSARGS; |
| 4142 |
7 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
7 |
7 |
|
| 4143 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4144 |
|
| { |
| 4145 |
|
| bool RETVAL; |
| 4146 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4147 |
|
| ; |
| 4148 |
7 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4149 |
|
| ; |
| 4150 |
|
| #line 53 "./xsi/Geometry.xsi" |
| 4151 |
|
| RETVAL = THIS->equals(&other); |
| 4152 |
|
| #line 4153 "Geos_xsgen.cc" |
| 4153 |
7 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
7 |
0 |
7 |
|
| 4154 |
|
| } |
| 4155 |
7 |
| XSRETURN(1); |
| 4156 |
7 |
| }); } |
| 4157 |
|
| |
| 4158 |
|
| |
| 4159 |
|
| |
| 4160 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_compareTo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_compareTo) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4161 |
|
| { |
| 4162 |
6 |
| dVAR; dXSARGS; |
| 4163 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4164 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4165 |
|
| { |
| 4166 |
|
| int RETVAL; |
| 4167 |
6 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
6 |
0 |
6 |
|
| 4168 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4169 |
|
| ; |
| 4170 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4171 |
|
| ; |
| 4172 |
|
| #line 55 "./xsi/Geometry.xsi" |
| 4173 |
|
| RETVAL = THIS->compareTo(&other); |
| 4174 |
|
| #line 4175 "Geos_xsgen.cc" |
| 4175 |
6 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
6 |
6 |
|
| 4176 |
6 |
| ST(0) = TARG; |
| 4177 |
|
| } |
| 4178 |
6 |
| XSRETURN(1); |
| 4179 |
6 |
| }); } |
| 4180 |
|
| |
| 4181 |
|
| |
| 4182 |
|
| |
| 4183 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getBoundary) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getBoundary) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4184 |
|
| { |
| 4185 |
7 |
| dVAR; dXSARGS; |
| 4186 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4187 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4188 |
|
| { |
| 4189 |
7 |
| Sv RETVAL; |
| 4190 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4191 |
|
| ; |
| 4192 |
|
| #line 57 "./xsi/Geometry.xsi" |
| 4193 |
|
| RETVAL = Helper::uplift(THIS->getBoundary()); |
| 4194 |
|
| #line 4195 "Geos_xsgen.cc" |
| 4195 |
|
| { |
| 4196 |
|
| SV * RETVALSV; |
| 4197 |
7 |
| RETVALSV = NULL; |
| 4198 |
7 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
7 |
7 |
|
| 4199 |
7 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
|
| 4200 |
0 |
| else switch (RETVAL.type()) { |
| 4201 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4202 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4203 |
0 |
| case SVt_PVCV: |
| 4204 |
|
| case SVt_PVIO: |
| 4205 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4206 |
0 |
| break; |
| 4207 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4208 |
|
| } |
| 4209 |
7 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
7 |
0 |
7 |
|
| 4210 |
7 |
| ST(0) = RETVALSV; |
| 4211 |
|
| } |
| 4212 |
7 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
7 |
0 |
7 |
|
| 4213 |
7 |
| XSRETURN(1); |
| 4214 |
7 |
| }); } |
| 4215 |
|
| |
| 4216 |
|
| |
| 4217 |
|
| |
| 4218 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getArea) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 4219 |
|
| { |
| 4220 |
8 |
| dVAR; dXSARGS; |
| 4221 |
8 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
8 |
8 |
|
| 4222 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4223 |
|
| { |
| 4224 |
|
| double RETVAL; |
| 4225 |
8 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
8 |
0 |
8 |
|
| 4226 |
8 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
8 |
8 |
|
| 4227 |
|
| ; |
| 4228 |
|
| #line 59 "./xsi/Geometry.xsi" |
| 4229 |
|
| RETVAL = THIS->getArea(); |
| 4230 |
|
| #line 4231 "Geos_xsgen.cc" |
| 4231 |
8 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
8 |
8 |
|
| 4232 |
8 |
| ST(0) = TARG; |
| 4233 |
|
| } |
| 4234 |
8 |
| XSRETURN(1); |
| 4235 |
8 |
| }); } |
| 4236 |
|
| |
| 4237 |
|
| |
| 4238 |
|
| |
| 4239 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getLength) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getLength) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4240 |
|
| { |
| 4241 |
7 |
| dVAR; dXSARGS; |
| 4242 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4243 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4244 |
|
| { |
| 4245 |
|
| double RETVAL; |
| 4246 |
7 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
7 |
0 |
7 |
|
| 4247 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4248 |
|
| ; |
| 4249 |
|
| #line 61 "./xsi/Geometry.xsi" |
| 4250 |
|
| RETVAL = THIS->getLength(); |
| 4251 |
|
| #line 4252 "Geos_xsgen.cc" |
| 4252 |
7 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
7 |
7 |
|
| 4253 |
7 |
| ST(0) = TARG; |
| 4254 |
|
| } |
| 4255 |
7 |
| XSRETURN(1); |
| 4256 |
7 |
| }); } |
| 4257 |
|
| |
| 4258 |
|
| |
| 4259 |
|
| |
| 4260 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_distance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_distance) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4261 |
|
| { |
| 4262 |
7 |
| dVAR; dXSARGS; |
| 4263 |
7 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
7 |
7 |
|
| 4264 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 4265 |
|
| { |
| 4266 |
|
| double RETVAL; |
| 4267 |
7 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
7 |
0 |
7 |
|
| 4268 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4269 |
|
| ; |
| 4270 |
7 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
| 4271 |
|
| ; |
| 4272 |
|
| #line 63 "./xsi/Geometry.xsi" |
| 4273 |
|
| RETVAL = THIS->distance(&g); |
| 4274 |
|
| #line 4275 "Geos_xsgen.cc" |
| 4275 |
7 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
7 |
7 |
|
| 4276 |
7 |
| ST(0) = TARG; |
| 4277 |
|
| } |
| 4278 |
7 |
| XSRETURN(1); |
| 4279 |
7 |
| }); } |
| 4280 |
|
| |
| 4281 |
|
| |
| 4282 |
|
| |
| 4283 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_isWithinDistance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_isWithinDistance) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4284 |
|
| { |
| 4285 |
6 |
| dVAR; dXSARGS; |
| 4286 |
6 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
6 |
6 |
|
| 4287 |
0 |
| croak_xs_usage(cv, "THIS, g, distance"); |
| 4288 |
|
| { |
| 4289 |
|
| bool RETVAL; |
| 4290 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4291 |
|
| ; |
| 4292 |
6 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
| 4293 |
|
| ; |
| 4294 |
6 |
| double distance = (double)SvNV(ST(2)) |
| 4295 |
|
| ; |
| 4296 |
|
| #line 65 "./xsi/Geometry.xsi" |
| 4297 |
|
| RETVAL = THIS->isWithinDistance(&g, distance); |
| 4298 |
|
| #line 4299 "Geos_xsgen.cc" |
| 4299 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4300 |
|
| } |
| 4301 |
6 |
| XSRETURN(1); |
| 4302 |
6 |
| }); } |
| 4303 |
|
| |
| 4304 |
|
| |
| 4305 |
|
| |
| 4306 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getCentroid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getCentroid) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4307 |
|
| { |
| 4308 |
7 |
| dVAR; dXSARGS; |
| 4309 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4310 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4311 |
|
| { |
| 4312 |
|
| Point * RETVAL; |
| 4313 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4314 |
|
| ; |
| 4315 |
|
| #line 67 "./xsi/Geometry.xsi" |
| 4316 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 4317 |
|
| RETVAL = THIS->getCentroid(); |
| 4318 |
|
| #line 4319 "Geos_xsgen.cc" |
| 4319 |
|
| { |
| 4320 |
|
| SV * RETVALSV; |
| 4321 |
7 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
7 |
0 |
7 |
|
| 4322 |
7 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
7 |
0 |
7 |
|
| 4323 |
7 |
| ST(0) = RETVALSV; |
| 4324 |
|
| } |
| 4325 |
7 |
| } |
| 4326 |
7 |
| XSRETURN(1); |
| 4327 |
7 |
| }); } |
| 4328 |
|
| |
| 4329 |
|
| |
| 4330 |
|
| |
| 4331 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getInteriorPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getInteriorPoint) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4332 |
|
| { |
| 4333 |
6 |
| dVAR; dXSARGS; |
| 4334 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 4335 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4336 |
|
| { |
| 4337 |
|
| Point * RETVAL; |
| 4338 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4339 |
|
| ; |
| 4340 |
|
| #line 69 "./xsi/Geometry.xsi" |
| 4341 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 4342 |
|
| RETVAL = THIS->getInteriorPoint(); |
| 4343 |
|
| #line 4344 "Geos_xsgen.cc" |
| 4344 |
|
| { |
| 4345 |
|
| SV * RETVALSV; |
| 4346 |
6 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
6 |
0 |
6 |
|
| 4347 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4348 |
6 |
| ST(0) = RETVALSV; |
| 4349 |
|
| } |
| 4350 |
6 |
| } |
| 4351 |
6 |
| XSRETURN(1); |
| 4352 |
6 |
| }); } |
| 4353 |
|
| |
| 4354 |
|
| |
| 4355 |
|
| |
| 4356 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_symDifference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_symDifference) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4357 |
|
| { |
| 4358 |
6 |
| dVAR; dXSARGS; |
| 4359 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4360 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4361 |
|
| { |
| 4362 |
6 |
| Sv RETVAL; |
| 4363 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4364 |
|
| ; |
| 4365 |
6 |
▶ | Geometry& other = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
|
| 4366 |
|
| ; |
| 4367 |
|
| #line 71 "./xsi/Geometry.xsi" |
| 4368 |
|
| RETVAL = Helper::uplift(THIS->symDifference(&other)); |
| 4369 |
|
| #line 4370 "Geos_xsgen.cc" |
| 4370 |
|
| { |
| 4371 |
|
| SV * RETVALSV; |
| 4372 |
6 |
| RETVALSV = NULL; |
| 4373 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 4374 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 4375 |
0 |
| else switch (RETVAL.type()) { |
| 4376 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4377 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4378 |
0 |
| case SVt_PVCV: |
| 4379 |
|
| case SVt_PVIO: |
| 4380 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4381 |
0 |
| break; |
| 4382 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4383 |
|
| } |
| 4384 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4385 |
6 |
| ST(0) = RETVALSV; |
| 4386 |
|
| } |
| 4387 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 4388 |
6 |
| XSRETURN(1); |
| 4389 |
6 |
| }); } |
| 4390 |
|
| |
| 4391 |
|
| |
| 4392 |
|
| |
| 4393 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_difference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_difference) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4394 |
|
| { |
| 4395 |
7 |
| dVAR; dXSARGS; |
| 4396 |
7 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
7 |
7 |
|
| 4397 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4398 |
|
| { |
| 4399 |
7 |
| Sv RETVAL; |
| 4400 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4401 |
|
| ; |
| 4402 |
7 |
▶ | Geometry& other = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
7 |
0 |
7 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
7 |
0 |
7 |
|
| 4403 |
|
| ; |
| 4404 |
|
| #line 73 "./xsi/Geometry.xsi" |
| 4405 |
|
| RETVAL = Helper::uplift(THIS->difference(&other)); |
| 4406 |
|
| #line 4407 "Geos_xsgen.cc" |
| 4407 |
|
| { |
| 4408 |
|
| SV * RETVALSV; |
| 4409 |
7 |
| RETVALSV = NULL; |
| 4410 |
7 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
7 |
7 |
|
| 4411 |
7 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
|
| 4412 |
0 |
| else switch (RETVAL.type()) { |
| 4413 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4414 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4415 |
0 |
| case SVt_PVCV: |
| 4416 |
|
| case SVt_PVIO: |
| 4417 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4418 |
0 |
| break; |
| 4419 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4420 |
|
| } |
| 4421 |
7 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
7 |
0 |
7 |
|
| 4422 |
7 |
| ST(0) = RETVALSV; |
| 4423 |
|
| } |
| 4424 |
7 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
7 |
0 |
7 |
|
| 4425 |
7 |
| XSRETURN(1); |
| 4426 |
7 |
| }); } |
| 4427 |
|
| |
| 4428 |
|
| |
| 4429 |
|
| |
| 4430 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_Union) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_Union) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4431 |
|
| { |
| 4432 |
6 |
| dVAR; dXSARGS; |
| 4433 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4434 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4435 |
|
| { |
| 4436 |
6 |
| Sv RETVAL; |
| 4437 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4438 |
|
| ; |
| 4439 |
6 |
▶ | Geometry& other = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
|
| 4440 |
|
| ; |
| 4441 |
|
| #line 75 "./xsi/Geometry.xsi" |
| 4442 |
|
| RETVAL = Helper::uplift(THIS->Union(&other)); |
| 4443 |
|
| #line 4444 "Geos_xsgen.cc" |
| 4444 |
|
| { |
| 4445 |
|
| SV * RETVALSV; |
| 4446 |
6 |
| RETVALSV = NULL; |
| 4447 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 4448 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 4449 |
0 |
| else switch (RETVAL.type()) { |
| 4450 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4451 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4452 |
0 |
| case SVt_PVCV: |
| 4453 |
|
| case SVt_PVIO: |
| 4454 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4455 |
0 |
| break; |
| 4456 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4457 |
|
| } |
| 4458 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4459 |
6 |
| ST(0) = RETVALSV; |
| 4460 |
|
| } |
| 4461 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 4462 |
6 |
| XSRETURN(1); |
| 4463 |
6 |
| }); } |
| 4464 |
|
| |
| 4465 |
|
| |
| 4466 |
|
| |
| 4467 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_intersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_intersection) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4468 |
|
| { |
| 4469 |
6 |
| dVAR; dXSARGS; |
| 4470 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4471 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4472 |
|
| { |
| 4473 |
6 |
| Sv RETVAL; |
| 4474 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4475 |
|
| ; |
| 4476 |
6 |
▶ | Geometry& other = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
6 |
0 |
6 |
|
| 4477 |
|
| ; |
| 4478 |
|
| #line 77 "./xsi/Geometry.xsi" |
| 4479 |
|
| RETVAL = Helper::uplift(THIS->intersection(&other)); |
| 4480 |
|
| #line 4481 "Geos_xsgen.cc" |
| 4481 |
|
| { |
| 4482 |
|
| SV * RETVALSV; |
| 4483 |
6 |
| RETVALSV = NULL; |
| 4484 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 4485 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 4486 |
0 |
| else switch (RETVAL.type()) { |
| 4487 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4488 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4489 |
0 |
| case SVt_PVCV: |
| 4490 |
|
| case SVt_PVIO: |
| 4491 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4492 |
0 |
| break; |
| 4493 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4494 |
|
| } |
| 4495 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4496 |
6 |
| ST(0) = RETVALSV; |
| 4497 |
|
| } |
| 4498 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 4499 |
6 |
| XSRETURN(1); |
| 4500 |
6 |
| }); } |
| 4501 |
|
| |
| 4502 |
|
| |
| 4503 |
|
| |
| 4504 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_convexHull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_convexHull) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4505 |
|
| { |
| 4506 |
6 |
| dVAR; dXSARGS; |
| 4507 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 4508 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4509 |
|
| { |
| 4510 |
6 |
| Sv RETVAL; |
| 4511 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4512 |
|
| ; |
| 4513 |
|
| #line 79 "./xsi/Geometry.xsi" |
| 4514 |
|
| RETVAL = Helper::uplift(THIS->convexHull()); |
| 4515 |
|
| #line 4516 "Geos_xsgen.cc" |
| 4516 |
|
| { |
| 4517 |
|
| SV * RETVALSV; |
| 4518 |
6 |
| RETVALSV = NULL; |
| 4519 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 4520 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 4521 |
0 |
| else switch (RETVAL.type()) { |
| 4522 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4523 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4524 |
0 |
| case SVt_PVCV: |
| 4525 |
|
| case SVt_PVIO: |
| 4526 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4527 |
0 |
| break; |
| 4528 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4529 |
|
| } |
| 4530 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4531 |
6 |
| ST(0) = RETVALSV; |
| 4532 |
|
| } |
| 4533 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 4534 |
6 |
| XSRETURN(1); |
| 4535 |
6 |
| }); } |
| 4536 |
|
| |
| 4537 |
|
| |
| 4538 |
|
| |
| 4539 |
36 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_buffer) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_buffer) { xs::throw_guard(cv, [=]() |
18 |
0 |
18 |
|
| 4540 |
|
| { |
| 4541 |
18 |
| dVAR; dXSARGS; |
| 4542 |
18 |
▶ | if (items < 2 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 4) |
18 |
0 |
18 |
| if (items < 2 || items > 4) |
0 |
18 |
18 |
|
| 4543 |
0 |
| croak_xs_usage(cv, "THIS, distance, arg2= NULL, arg3= NULL"); |
| 4544 |
|
| { |
| 4545 |
18 |
| Sv RETVAL; |
| 4546 |
18 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
18 |
0 |
18 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
18 |
18 |
|
| 4547 |
|
| ; |
| 4548 |
18 |
▶ | double distance = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| double distance = (double)SvNV(ST(1)) |
18 |
0 |
18 |
|
| 4549 |
|
| ; |
| 4550 |
|
| SV* arg2; |
| 4551 |
|
| SV* arg3; |
| 4552 |
|
| |
| 4553 |
18 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
6 |
12 |
18 |
|
| 4554 |
6 |
| arg2 = NULL; |
| 4555 |
|
| else { |
| 4556 |
12 |
| arg2 = ST(2) |
| 4557 |
|
| ; |
| 4558 |
|
| } |
| 4559 |
|
| |
| 4560 |
18 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
12 |
6 |
18 |
|
| 4561 |
12 |
| arg3 = NULL; |
| 4562 |
|
| else { |
| 4563 |
6 |
| arg3 = ST(3) |
| 4564 |
|
| ; |
| 4565 |
|
| } |
| 4566 |
|
| #line 82 "./xsi/Geometry.xsi" |
| 4567 |
|
| Geometry* r; |
| 4568 |
|
| if (!arg2) r = THIS->buffer(distance); |
| 4569 |
|
| else { |
| 4570 |
|
| int quadrantSegments = SvIV(arg2); |
| 4571 |
|
| if (arg3) { |
| 4572 |
|
| int endCapStyle = SvIV(arg3); |
| 4573 |
|
| r = THIS->buffer(distance, quadrantSegments, endCapStyle); |
| 4574 |
|
| } else { |
| 4575 |
|
| r = THIS->buffer(distance, quadrantSegments); |
| 4576 |
|
| } |
| 4577 |
|
| } |
| 4578 |
|
| RETVAL = Helper::uplift(r); |
| 4579 |
|
| #line 4580 "Geos_xsgen.cc" |
| 4580 |
|
| { |
| 4581 |
|
| SV * RETVALSV; |
| 4582 |
18 |
| RETVALSV = NULL; |
| 4583 |
18 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
18 |
18 |
|
| 4584 |
18 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
18 |
0 |
18 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
18 |
0 |
18 |
|
| 4585 |
0 |
| else switch (RETVAL.type()) { |
| 4586 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4587 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4588 |
0 |
| case SVt_PVCV: |
| 4589 |
|
| case SVt_PVIO: |
| 4590 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4591 |
0 |
| break; |
| 4592 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4593 |
|
| } |
| 4594 |
18 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
18 |
0 |
18 |
|
| 4595 |
18 |
| ST(0) = RETVALSV; |
| 4596 |
|
| } |
| 4597 |
18 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
18 |
0 |
18 |
|
| 4598 |
18 |
| XSRETURN(1); |
| 4599 |
18 |
| }); } |
| 4600 |
|
| |
| 4601 |
|
| |
| 4602 |
|
| |
| 4603 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_coveredBy) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_coveredBy) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4604 |
|
| { |
| 4605 |
6 |
| dVAR; dXSARGS; |
| 4606 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4607 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4608 |
|
| { |
| 4609 |
|
| bool RETVAL; |
| 4610 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4611 |
|
| ; |
| 4612 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4613 |
|
| ; |
| 4614 |
|
| #line 96 "./xsi/Geometry.xsi" |
| 4615 |
|
| RETVAL = THIS->coveredBy(&other); |
| 4616 |
|
| #line 4617 "Geos_xsgen.cc" |
| 4617 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4618 |
|
| } |
| 4619 |
6 |
| XSRETURN(1); |
| 4620 |
6 |
| }); } |
| 4621 |
|
| |
| 4622 |
|
| |
| 4623 |
|
| |
| 4624 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_covers) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_covers) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4625 |
|
| { |
| 4626 |
6 |
| dVAR; dXSARGS; |
| 4627 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4628 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4629 |
|
| { |
| 4630 |
|
| bool RETVAL; |
| 4631 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4632 |
|
| ; |
| 4633 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4634 |
|
| ; |
| 4635 |
|
| #line 98 "./xsi/Geometry.xsi" |
| 4636 |
|
| RETVAL = THIS->covers(&other); |
| 4637 |
|
| #line 4638 "Geos_xsgen.cc" |
| 4638 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4639 |
|
| } |
| 4640 |
6 |
| XSRETURN(1); |
| 4641 |
6 |
| }); } |
| 4642 |
|
| |
| 4643 |
|
| |
| 4644 |
|
| |
| 4645 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_overlaps) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_overlaps) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4646 |
|
| { |
| 4647 |
6 |
| dVAR; dXSARGS; |
| 4648 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4649 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4650 |
|
| { |
| 4651 |
|
| bool RETVAL; |
| 4652 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4653 |
|
| ; |
| 4654 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4655 |
|
| ; |
| 4656 |
|
| #line 100 "./xsi/Geometry.xsi" |
| 4657 |
|
| RETVAL = THIS->overlaps(&other); |
| 4658 |
|
| #line 4659 "Geos_xsgen.cc" |
| 4659 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
6 |
6 |
|
| 4660 |
|
| } |
| 4661 |
6 |
| XSRETURN(1); |
| 4662 |
6 |
| }); } |
| 4663 |
|
| |
| 4664 |
|
| |
| 4665 |
|
| |
| 4666 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_contains) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_contains) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4667 |
|
| { |
| 4668 |
6 |
| dVAR; dXSARGS; |
| 4669 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4670 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4671 |
|
| { |
| 4672 |
|
| bool RETVAL; |
| 4673 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4674 |
|
| ; |
| 4675 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4676 |
|
| ; |
| 4677 |
|
| #line 102 "./xsi/Geometry.xsi" |
| 4678 |
|
| RETVAL = THIS->contains(&other); |
| 4679 |
|
| #line 4680 "Geos_xsgen.cc" |
| 4680 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4681 |
|
| } |
| 4682 |
6 |
| XSRETURN(1); |
| 4683 |
6 |
| }); } |
| 4684 |
|
| |
| 4685 |
|
| |
| 4686 |
|
| |
| 4687 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_within) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_within) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4688 |
|
| { |
| 4689 |
6 |
| dVAR; dXSARGS; |
| 4690 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4691 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4692 |
|
| { |
| 4693 |
|
| bool RETVAL; |
| 4694 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4695 |
|
| ; |
| 4696 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4697 |
|
| ; |
| 4698 |
|
| #line 104 "./xsi/Geometry.xsi" |
| 4699 |
|
| RETVAL = THIS->within(&other); |
| 4700 |
|
| #line 4701 "Geos_xsgen.cc" |
| 4701 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4702 |
|
| } |
| 4703 |
6 |
| XSRETURN(1); |
| 4704 |
6 |
| }); } |
| 4705 |
|
| |
| 4706 |
|
| |
| 4707 |
|
| |
| 4708 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_crosses) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_crosses) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4709 |
|
| { |
| 4710 |
6 |
| dVAR; dXSARGS; |
| 4711 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4712 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4713 |
|
| { |
| 4714 |
|
| bool RETVAL; |
| 4715 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4716 |
|
| ; |
| 4717 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4718 |
|
| ; |
| 4719 |
|
| #line 106 "./xsi/Geometry.xsi" |
| 4720 |
|
| RETVAL = THIS->crosses(&other); |
| 4721 |
|
| #line 4722 "Geos_xsgen.cc" |
| 4722 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
6 |
6 |
|
| 4723 |
|
| } |
| 4724 |
6 |
| XSRETURN(1); |
| 4725 |
6 |
| }); } |
| 4726 |
|
| |
| 4727 |
|
| |
| 4728 |
|
| |
| 4729 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_intersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_intersects) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4730 |
|
| { |
| 4731 |
6 |
| dVAR; dXSARGS; |
| 4732 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4733 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4734 |
|
| { |
| 4735 |
|
| bool RETVAL; |
| 4736 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4737 |
|
| ; |
| 4738 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4739 |
|
| ; |
| 4740 |
|
| #line 108 "./xsi/Geometry.xsi" |
| 4741 |
|
| RETVAL = THIS->intersects(&other); |
| 4742 |
|
| #line 4743 "Geos_xsgen.cc" |
| 4743 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
6 |
0 |
6 |
|
| 4744 |
|
| } |
| 4745 |
6 |
| XSRETURN(1); |
| 4746 |
6 |
| }); } |
| 4747 |
|
| |
| 4748 |
|
| |
| 4749 |
|
| |
| 4750 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_touches) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_touches) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4751 |
|
| { |
| 4752 |
6 |
| dVAR; dXSARGS; |
| 4753 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4754 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4755 |
|
| { |
| 4756 |
|
| bool RETVAL; |
| 4757 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4758 |
|
| ; |
| 4759 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4760 |
|
| ; |
| 4761 |
|
| #line 110 "./xsi/Geometry.xsi" |
| 4762 |
|
| RETVAL = THIS->touches(&other); |
| 4763 |
|
| #line 4764 "Geos_xsgen.cc" |
| 4764 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
6 |
6 |
|
| 4765 |
|
| } |
| 4766 |
6 |
| XSRETURN(1); |
| 4767 |
6 |
| }); } |
| 4768 |
|
| |
| 4769 |
|
| |
| 4770 |
|
| |
| 4771 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_disjoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_disjoint) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4772 |
|
| { |
| 4773 |
6 |
| dVAR; dXSARGS; |
| 4774 |
6 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
6 |
6 |
|
| 4775 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 4776 |
|
| { |
| 4777 |
|
| bool RETVAL; |
| 4778 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4779 |
|
| ; |
| 4780 |
6 |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
| 4781 |
|
| ; |
| 4782 |
|
| #line 112 "./xsi/Geometry.xsi" |
| 4783 |
|
| RETVAL = THIS->disjoint(&other); |
| 4784 |
|
| #line 4785 "Geos_xsgen.cc" |
| 4785 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
6 |
6 |
|
| 4786 |
|
| } |
| 4787 |
6 |
| XSRETURN(1); |
| 4788 |
6 |
| }); } |
| 4789 |
|
| |
| 4790 |
|
| |
| 4791 |
|
| |
| 4792 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getEnvelope) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getEnvelope) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4793 |
|
| { |
| 4794 |
6 |
| dVAR; dXSARGS; |
| 4795 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 4796 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4797 |
|
| { |
| 4798 |
6 |
| Sv RETVAL; |
| 4799 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4800 |
|
| ; |
| 4801 |
|
| #line 114 "./xsi/Geometry.xsi" |
| 4802 |
|
| RETVAL = Helper::uplift(THIS->getEnvelope()); |
| 4803 |
|
| #line 4804 "Geos_xsgen.cc" |
| 4804 |
|
| { |
| 4805 |
|
| SV * RETVALSV; |
| 4806 |
6 |
| RETVALSV = NULL; |
| 4807 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 4808 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 4809 |
0 |
| else switch (RETVAL.type()) { |
| 4810 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4811 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4812 |
0 |
| case SVt_PVCV: |
| 4813 |
|
| case SVt_PVIO: |
| 4814 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4815 |
0 |
| break; |
| 4816 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4817 |
|
| } |
| 4818 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4819 |
6 |
| ST(0) = RETVALSV; |
| 4820 |
|
| } |
| 4821 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 4822 |
6 |
| XSRETURN(1); |
| 4823 |
6 |
| }); } |
| 4824 |
|
| |
| 4825 |
|
| |
| 4826 |
|
| |
| 4827 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_clone) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_clone) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4828 |
|
| { |
| 4829 |
7 |
| dVAR; dXSARGS; |
| 4830 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4831 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4832 |
|
| { |
| 4833 |
7 |
| Sv RETVAL; |
| 4834 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4835 |
|
| ; |
| 4836 |
|
| #line 116 "./xsi/Geometry.xsi" |
| 4837 |
|
| RETVAL = Helper::uplift(THIS->clone()); |
| 4838 |
|
| #line 4839 "Geos_xsgen.cc" |
| 4839 |
|
| { |
| 4840 |
|
| SV * RETVALSV; |
| 4841 |
7 |
| RETVALSV = NULL; |
| 4842 |
7 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
7 |
7 |
|
| 4843 |
7 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
7 |
0 |
7 |
|
| 4844 |
0 |
| else switch (RETVAL.type()) { |
| 4845 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4846 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4847 |
0 |
| case SVt_PVCV: |
| 4848 |
|
| case SVt_PVIO: |
| 4849 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4850 |
0 |
| break; |
| 4851 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4852 |
|
| } |
| 4853 |
7 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
7 |
0 |
7 |
|
| 4854 |
7 |
| ST(0) = RETVALSV; |
| 4855 |
|
| } |
| 4856 |
7 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
7 |
0 |
7 |
|
| 4857 |
7 |
| XSRETURN(1); |
| 4858 |
7 |
| }); } |
| 4859 |
|
| |
| 4860 |
|
| |
| 4861 |
|
| |
| 4862 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getPrecisionModel) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getPrecisionModel) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 4863 |
|
| { |
| 4864 |
6 |
| dVAR; dXSARGS; |
| 4865 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 4866 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4867 |
|
| { |
| 4868 |
|
| PrecisionModel * RETVAL; |
| 4869 |
6 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 4870 |
|
| ; |
| 4871 |
|
| #line 119 "./xsi/Geometry.xsi" |
| 4872 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 4873 |
|
| auto pm = THIS->getPrecisionModel(); |
| 4874 |
|
| RETVAL = new PrecisionModel(*pm); |
| 4875 |
|
| #line 4876 "Geos_xsgen.cc" |
| 4876 |
|
| { |
| 4877 |
|
| SV * RETVALSV; |
| 4878 |
6 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
6 |
0 |
6 |
|
| 4879 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 4880 |
6 |
| ST(0) = RETVALSV; |
| 4881 |
|
| } |
| 4882 |
6 |
| } |
| 4883 |
6 |
| XSRETURN(1); |
| 4884 |
6 |
| }); } |
| 4885 |
|
| |
| 4886 |
|
| |
| 4887 |
|
| |
| 4888 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinates) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_getCoordinates) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4889 |
|
| { |
| 4890 |
7 |
| dVAR; dXSARGS; |
| 4891 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4892 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4893 |
|
| { |
| 4894 |
7 |
| Array RETVAL; |
| 4895 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4896 |
|
| ; |
| 4897 |
|
| #line 124 "./xsi/Geometry.xsi" |
| 4898 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(THIS->getCoordinates()); |
| 4899 |
|
| RETVAL = Helper::convert_copy(seq.get()); |
| 4900 |
|
| #line 4901 "Geos_xsgen.cc" |
| 4901 |
|
| { |
| 4902 |
|
| SV * RETVALSV; |
| 4903 |
7 |
| RETVALSV = NULL; |
| 4904 |
7 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
7 |
7 |
|
| 4905 |
7 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
7 |
0 |
7 |
|
| 4906 |
7 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
7 |
0 |
7 |
|
| 4907 |
7 |
| ST(0) = RETVALSV; |
| 4908 |
|
| } |
| 4909 |
7 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
7 |
0 |
7 |
| } |
7 |
0 |
7 |
|
| 4910 |
7 |
| XSRETURN(1); |
| 4911 |
7 |
| }); } |
| 4912 |
|
| |
| 4913 |
|
| |
| 4914 |
|
| |
| 4915 |
24 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_relate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_relate) { xs::throw_guard(cv, [=]() |
12 |
0 |
12 |
|
| 4916 |
|
| { |
| 4917 |
12 |
| dVAR; dXSARGS; |
| 4918 |
12 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
12 |
0 |
12 |
| if (items < 2 || items > 3) |
0 |
12 |
12 |
|
| 4919 |
0 |
| croak_xs_usage(cv, "THIS, other, arg= NULL"); |
| 4920 |
|
| { |
| 4921 |
12 |
| Sv RETVAL; |
| 4922 |
12 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
12 |
0 |
12 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
12 |
12 |
|
| 4923 |
|
| ; |
| 4924 |
12 |
▶ | Geometry& other = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& other = xs::in<Geometry&>(ST(1)); |
12 |
0 |
12 |
|
| 4925 |
|
| ; |
| 4926 |
|
| SV* arg; |
| 4927 |
|
| |
| 4928 |
12 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
6 |
6 |
12 |
|
| 4929 |
6 |
| arg = NULL; |
| 4930 |
|
| else { |
| 4931 |
6 |
| arg = ST(2) |
| 4932 |
|
| ; |
| 4933 |
|
| } |
| 4934 |
|
| #line 129 "./xsi/Geometry.xsi" |
| 4935 |
|
| if (!arg) RETVAL = xs::out<IntersectionMatrix*>(THIS->relate(&other)); |
| 4936 |
|
| else { |
| 4937 |
|
| std::string intersectionPattern { SvPV_nolen(arg) }; |
| 4938 |
|
| RETVAL = Simple(THIS->relate(&other, intersectionPattern)); |
| 4939 |
|
| } |
| 4940 |
|
| #line 4941 "Geos_xsgen.cc" |
| 4941 |
|
| { |
| 4942 |
|
| SV * RETVALSV; |
| 4943 |
12 |
| RETVALSV = NULL; |
| 4944 |
12 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
12 |
12 |
|
| 4945 |
12 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
12 |
0 |
12 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
12 |
0 |
12 |
|
| 4946 |
0 |
| else switch (RETVAL.type()) { |
| 4947 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4948 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 4949 |
0 |
| case SVt_PVCV: |
| 4950 |
|
| case SVt_PVIO: |
| 4951 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 4952 |
0 |
| break; |
| 4953 |
0 |
| default: throw "unknown type of Sv to return"; |
| 4954 |
|
| } |
| 4955 |
12 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
12 |
0 |
12 |
|
| 4956 |
12 |
| ST(0) = RETVALSV; |
| 4957 |
|
| } |
| 4958 |
12 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
12 |
0 |
12 |
|
| 4959 |
12 |
| XSRETURN(1); |
| 4960 |
12 |
| }); } |
| 4961 |
|
| |
| 4962 |
|
| |
| 4963 |
|
| |
| 4964 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_normalize) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_normalize) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 4965 |
|
| { |
| 4966 |
7 |
| dVAR; dXSARGS; |
| 4967 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 4968 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 4969 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 4970 |
7 |
| SP -= items; |
| 4971 |
|
| { |
| 4972 |
7 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 4973 |
|
| ; |
| 4974 |
|
| #line 137 "./xsi/Geometry.xsi" |
| 4975 |
|
| THIS->normalize(); |
| 4976 |
|
| #line 4977 "Geos_xsgen.cc" |
| 4977 |
7 |
| PUTBACK; |
| 4978 |
7 |
| return; |
| 4979 |
|
| } |
| 4980 |
7 |
| }); } |
| 4981 |
|
| |
| 4982 |
|
| |
| 4983 |
|
| |
| 4984 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 4985 |
|
| { |
| 4986 |
0 |
| dVAR; dXSARGS; |
| 4987 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 4988 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 4989 |
|
| { |
| 4990 |
|
| int RETVAL; |
| 4991 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 4992 |
|
| #line 169 "./xsi/Geometry.xsi" |
| 4993 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 4994 |
|
| #line 4995 "Geos_xsgen.cc" |
| 4995 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 4996 |
0 |
| ST(0) = TARG; |
| 4997 |
|
| } |
| 4998 |
0 |
| XSRETURN(1); |
| 4999 |
0 |
| }); } |
| 5000 |
|
| |
| 5001 |
|
| |
| 5002 |
|
| |
| 5003 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Geometry_HOOK_CLONE) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Geometry_HOOK_CLONE) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5004 |
|
| { |
| 5005 |
0 |
| dVAR; dXSARGS; |
| 5006 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 5007 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5008 |
|
| { |
| 5009 |
0 |
| Sv RETVAL; |
| 5010 |
0 |
▶ | Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
| Geometry* THIS = xs::in<Geometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5011 |
|
| ; |
| 5012 |
|
| #line 172 "./xsi/Geometry.xsi" |
| 5013 |
|
| RETVAL = Helper::uplift(THIS->clone()); |
| 5014 |
|
| #line 5015 "Geos_xsgen.cc" |
| 5015 |
|
| { |
| 5016 |
|
| SV * RETVALSV; |
| 5017 |
0 |
| RETVALSV = NULL; |
| 5018 |
0 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
0 |
0 |
|
| 5019 |
0 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
0 |
0 |
0 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
0 |
0 |
0 |
|
| 5020 |
0 |
| else switch (RETVAL.type()) { |
| 5021 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5022 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5023 |
0 |
| case SVt_PVCV: |
| 5024 |
|
| case SVt_PVIO: |
| 5025 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 5026 |
0 |
| break; |
| 5027 |
0 |
| default: throw "unknown type of Sv to return"; |
| 5028 |
|
| } |
| 5029 |
0 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
0 |
0 |
0 |
|
| 5030 |
0 |
| ST(0) = RETVALSV; |
| 5031 |
|
| } |
| 5032 |
0 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
0 |
0 |
0 |
|
| 5033 |
0 |
| XSRETURN(1); |
| 5034 |
0 |
| }); } |
| 5035 |
|
| |
| 5036 |
|
| |
| 5037 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Geometry.xsi' */ |
| 5038 |
|
| |
| 5039 |
|
| |
| 5040 |
|
| /* INCLUDE: Including 'xsi/GeometryCollection.xsi' from 'Geos.xs' */ |
| 5041 |
|
| |
| 5042 |
|
| |
| 5043 |
|
| |
| 5044 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__GeometryCollection_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__GeometryCollection_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5045 |
|
| { |
| 5046 |
0 |
| dVAR; dXSARGS; |
| 5047 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5048 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5049 |
|
| { |
| 5050 |
|
| int RETVAL; |
| 5051 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5052 |
|
| #line 4 "./xsi/GeometryCollection.xsi" |
| 5053 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5054 |
|
| #line 5055 "Geos_xsgen.cc" |
| 5055 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5056 |
0 |
| ST(0) = TARG; |
| 5057 |
|
| } |
| 5058 |
0 |
| XSRETURN(1); |
| 5059 |
0 |
| }); } |
| 5060 |
|
| |
| 5061 |
|
| |
| 5062 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/GeometryCollection.xsi' */ |
| 5063 |
|
| |
| 5064 |
|
| |
| 5065 |
|
| /* INCLUDE: Including 'xsi/Point.xsi' from 'Geos.xs' */ |
| 5066 |
|
| |
| 5067 |
|
| |
| 5068 |
|
| |
| 5069 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Point_getX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Point_getX) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 5070 |
|
| { |
| 5071 |
3 |
| dVAR; dXSARGS; |
| 5072 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 5073 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5074 |
|
| { |
| 5075 |
|
| double RETVAL; |
| 5076 |
3 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
|
| 5077 |
3 |
▶ | Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 5078 |
|
| ; |
| 5079 |
|
| #line 4 "./xsi/Point.xsi" |
| 5080 |
|
| RETVAL = THIS->getX(); |
| 5081 |
|
| #line 5082 "Geos_xsgen.cc" |
| 5082 |
3 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
3 |
3 |
|
| 5083 |
3 |
| ST(0) = TARG; |
| 5084 |
|
| } |
| 5085 |
3 |
| XSRETURN(1); |
| 5086 |
3 |
| }); } |
| 5087 |
|
| |
| 5088 |
|
| |
| 5089 |
|
| |
| 5090 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__Point_getY) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Point_getY) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 5091 |
|
| { |
| 5092 |
4 |
| dVAR; dXSARGS; |
| 5093 |
4 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
4 |
4 |
|
| 5094 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5095 |
|
| { |
| 5096 |
|
| double RETVAL; |
| 5097 |
4 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
4 |
0 |
4 |
|
| 5098 |
4 |
▶ | Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 5099 |
|
| ; |
| 5100 |
|
| #line 6 "./xsi/Point.xsi" |
| 5101 |
|
| RETVAL = THIS->getY(); |
| 5102 |
|
| #line 5103 "Geos_xsgen.cc" |
| 5103 |
4 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
4 |
4 |
|
| 5104 |
4 |
| ST(0) = TARG; |
| 5105 |
|
| } |
| 5106 |
4 |
| XSRETURN(1); |
| 5107 |
4 |
| }); } |
| 5108 |
|
| |
| 5109 |
|
| |
| 5110 |
|
| |
| 5111 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Point_reverse) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Point_reverse) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5112 |
|
| { |
| 5113 |
1 |
| dVAR; dXSARGS; |
| 5114 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5115 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5116 |
|
| { |
| 5117 |
1 |
| Sv RETVAL; |
| 5118 |
1 |
▶ | Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| Point* THIS = xs::in<Point *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5119 |
|
| ; |
| 5120 |
|
| #line 8 "./xsi/Point.xsi" |
| 5121 |
|
| RETVAL = Helper::uplift(THIS->reverse()); |
| 5122 |
|
| #line 5123 "Geos_xsgen.cc" |
| 5123 |
|
| { |
| 5124 |
|
| SV * RETVALSV; |
| 5125 |
1 |
| RETVALSV = NULL; |
| 5126 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 5127 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 5128 |
0 |
| else switch (RETVAL.type()) { |
| 5129 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5130 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5131 |
0 |
| case SVt_PVCV: |
| 5132 |
|
| case SVt_PVIO: |
| 5133 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 5134 |
0 |
| break; |
| 5135 |
0 |
| default: throw "unknown type of Sv to return"; |
| 5136 |
|
| } |
| 5137 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5138 |
1 |
| ST(0) = RETVALSV; |
| 5139 |
|
| } |
| 5140 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 5141 |
1 |
| XSRETURN(1); |
| 5142 |
1 |
| }); } |
| 5143 |
|
| |
| 5144 |
|
| |
| 5145 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Point.xsi' */ |
| 5146 |
|
| |
| 5147 |
|
| |
| 5148 |
|
| /* INCLUDE: Including 'xsi/MultiPoint.xsi' from 'Geos.xs' */ |
| 5149 |
|
| |
| 5150 |
|
| |
| 5151 |
|
| |
| 5152 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__MultiPoint_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__MultiPoint_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5153 |
|
| { |
| 5154 |
0 |
| dVAR; dXSARGS; |
| 5155 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5156 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5157 |
|
| { |
| 5158 |
|
| int RETVAL; |
| 5159 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5160 |
|
| #line 4 "./xsi/MultiPoint.xsi" |
| 5161 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5162 |
|
| #line 5163 "Geos_xsgen.cc" |
| 5163 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5164 |
0 |
| ST(0) = TARG; |
| 5165 |
|
| } |
| 5166 |
0 |
| XSRETURN(1); |
| 5167 |
0 |
| }); } |
| 5168 |
|
| |
| 5169 |
|
| |
| 5170 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/MultiPoint.xsi' */ |
| 5171 |
|
| |
| 5172 |
|
| |
| 5173 |
|
| /* INCLUDE: Including 'xsi/LineString.xsi' from 'Geos.xs' */ |
| 5174 |
|
| |
| 5175 |
|
| |
| 5176 |
|
| |
| 5177 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineString_getPointN) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineString_getPointN) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5178 |
|
| { |
| 5179 |
1 |
| dVAR; dXSARGS; |
| 5180 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 5181 |
0 |
| croak_xs_usage(cv, "THIS, n"); |
| 5182 |
|
| { |
| 5183 |
|
| Point * RETVAL; |
| 5184 |
1 |
▶ | LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5185 |
|
| ; |
| 5186 |
1 |
▶ | std::size_t n = xs::in<std::size_t>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t n = xs::in<std::size_t>(ST(1)); |
1 |
0 |
1 |
|
| 5187 |
|
| ; |
| 5188 |
|
| #line 4 "./xsi/LineString.xsi" |
| 5189 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5190 |
|
| RETVAL = THIS->getPointN(n); |
| 5191 |
|
| #line 5192 "Geos_xsgen.cc" |
| 5192 |
|
| { |
| 5193 |
|
| SV * RETVALSV; |
| 5194 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5195 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5196 |
1 |
| ST(0) = RETVALSV; |
| 5197 |
|
| } |
| 5198 |
1 |
| } |
| 5199 |
1 |
| XSRETURN(1); |
| 5200 |
1 |
| }); } |
| 5201 |
|
| |
| 5202 |
|
| |
| 5203 |
|
| |
| 5204 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineString_getStartPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineString_getStartPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5205 |
|
| { |
| 5206 |
1 |
| dVAR; dXSARGS; |
| 5207 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5208 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5209 |
|
| { |
| 5210 |
|
| Point * RETVAL; |
| 5211 |
1 |
▶ | LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5212 |
|
| ; |
| 5213 |
|
| #line 6 "./xsi/LineString.xsi" |
| 5214 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5215 |
|
| RETVAL = THIS->getStartPoint(); |
| 5216 |
|
| #line 5217 "Geos_xsgen.cc" |
| 5217 |
|
| { |
| 5218 |
|
| SV * RETVALSV; |
| 5219 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5220 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5221 |
1 |
| ST(0) = RETVALSV; |
| 5222 |
|
| } |
| 5223 |
1 |
| } |
| 5224 |
1 |
| XSRETURN(1); |
| 5225 |
1 |
| }); } |
| 5226 |
|
| |
| 5227 |
|
| |
| 5228 |
|
| |
| 5229 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineString_getEndPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineString_getEndPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5230 |
|
| { |
| 5231 |
1 |
| dVAR; dXSARGS; |
| 5232 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5233 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5234 |
|
| { |
| 5235 |
|
| Point * RETVAL; |
| 5236 |
1 |
▶ | LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5237 |
|
| ; |
| 5238 |
|
| #line 8 "./xsi/LineString.xsi" |
| 5239 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5240 |
|
| RETVAL = THIS->getEndPoint(); |
| 5241 |
|
| #line 5242 "Geos_xsgen.cc" |
| 5242 |
|
| { |
| 5243 |
|
| SV * RETVALSV; |
| 5244 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5245 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5246 |
1 |
| ST(0) = RETVALSV; |
| 5247 |
|
| } |
| 5248 |
1 |
| } |
| 5249 |
1 |
| XSRETURN(1); |
| 5250 |
1 |
| }); } |
| 5251 |
|
| |
| 5252 |
|
| |
| 5253 |
|
| |
| 5254 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineString_isClosed) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineString_isClosed) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5255 |
|
| { |
| 5256 |
1 |
| dVAR; dXSARGS; |
| 5257 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5258 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5259 |
|
| { |
| 5260 |
|
| bool RETVAL; |
| 5261 |
1 |
▶ | LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5262 |
|
| ; |
| 5263 |
|
| #line 10 "./xsi/LineString.xsi" |
| 5264 |
|
| RETVAL = THIS->isClosed(); |
| 5265 |
|
| #line 5266 "Geos_xsgen.cc" |
| 5266 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 5267 |
|
| } |
| 5268 |
1 |
| XSRETURN(1); |
| 5269 |
1 |
| }); } |
| 5270 |
|
| |
| 5271 |
|
| |
| 5272 |
|
| |
| 5273 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LineString_isRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LineString_isRing) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5274 |
|
| { |
| 5275 |
1 |
| dVAR; dXSARGS; |
| 5276 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5277 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5278 |
|
| { |
| 5279 |
|
| bool RETVAL; |
| 5280 |
1 |
▶ | LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineString* THIS = xs::in<LineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5281 |
|
| ; |
| 5282 |
|
| #line 12 "./xsi/LineString.xsi" |
| 5283 |
|
| RETVAL = THIS->isRing(); |
| 5284 |
|
| #line 5285 "Geos_xsgen.cc" |
| 5285 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 5286 |
|
| } |
| 5287 |
1 |
| XSRETURN(1); |
| 5288 |
1 |
| }); } |
| 5289 |
|
| |
| 5290 |
|
| |
| 5291 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/LineString.xsi' */ |
| 5292 |
|
| |
| 5293 |
|
| |
| 5294 |
|
| /* INCLUDE: Including 'xsi/MultiLineString.xsi' from 'Geos.xs' */ |
| 5295 |
|
| |
| 5296 |
|
| |
| 5297 |
|
| |
| 5298 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__MultiLineString_isClosed) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__MultiLineString_isClosed) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5299 |
|
| { |
| 5300 |
1 |
| dVAR; dXSARGS; |
| 5301 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5302 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5303 |
|
| { |
| 5304 |
|
| bool RETVAL; |
| 5305 |
1 |
▶ | MultiLineString* THIS = xs::in<MultiLineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MultiLineString* THIS = xs::in<MultiLineString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5306 |
|
| ; |
| 5307 |
|
| #line 4 "./xsi/MultiLineString.xsi" |
| 5308 |
|
| RETVAL = THIS->isClosed(); |
| 5309 |
|
| #line 5310 "Geos_xsgen.cc" |
| 5310 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 5311 |
|
| } |
| 5312 |
1 |
| XSRETURN(1); |
| 5313 |
1 |
| }); } |
| 5314 |
|
| |
| 5315 |
|
| |
| 5316 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/MultiLineString.xsi' */ |
| 5317 |
|
| |
| 5318 |
|
| |
| 5319 |
|
| /* INCLUDE: Including 'xsi/LinearRing.xsi' from 'Geos.xs' */ |
| 5320 |
|
| |
| 5321 |
|
| |
| 5322 |
|
| |
| 5323 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__LinearRing_reverse) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__LinearRing_reverse) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5324 |
|
| { |
| 5325 |
1 |
| dVAR; dXSARGS; |
| 5326 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5327 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5328 |
|
| { |
| 5329 |
1 |
| Sv RETVAL; |
| 5330 |
1 |
▶ | LinearRing* THIS = xs::in<LinearRing *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LinearRing* THIS = xs::in<LinearRing *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LinearRing* THIS = xs::in<LinearRing *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5331 |
|
| ; |
| 5332 |
|
| #line 4 "./xsi/LinearRing.xsi" |
| 5333 |
|
| RETVAL = Helper::uplift(THIS->reverse()); |
| 5334 |
|
| #line 5335 "Geos_xsgen.cc" |
| 5335 |
|
| { |
| 5336 |
|
| SV * RETVALSV; |
| 5337 |
1 |
| RETVALSV = NULL; |
| 5338 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 5339 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 5340 |
0 |
| else switch (RETVAL.type()) { |
| 5341 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5342 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5343 |
0 |
| case SVt_PVCV: |
| 5344 |
|
| case SVt_PVIO: |
| 5345 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 5346 |
0 |
| break; |
| 5347 |
0 |
| default: throw "unknown type of Sv to return"; |
| 5348 |
|
| } |
| 5349 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5350 |
1 |
| ST(0) = RETVALSV; |
| 5351 |
|
| } |
| 5352 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 5353 |
1 |
| XSRETURN(1); |
| 5354 |
1 |
| }); } |
| 5355 |
|
| |
| 5356 |
|
| |
| 5357 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/LinearRing.xsi' */ |
| 5358 |
|
| |
| 5359 |
|
| |
| 5360 |
|
| /* INCLUDE: Including 'xsi/Polygon.xsi' from 'Geos.xs' */ |
| 5361 |
|
| |
| 5362 |
|
| |
| 5363 |
|
| |
| 5364 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Polygon_getExteriorRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Polygon_getExteriorRing) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5365 |
|
| { |
| 5366 |
1 |
| dVAR; dXSARGS; |
| 5367 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5368 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5369 |
|
| { |
| 5370 |
|
| LinearRing * RETVAL; |
| 5371 |
1 |
▶ | geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5372 |
|
| ; |
| 5373 |
|
| #line 6 "./xsi/Polygon.xsi" |
| 5374 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5375 |
|
| RETVAL = dyn_cast<LinearRing*>(THIS->getExteriorRing()->clone()); |
| 5376 |
|
| #line 5377 "Geos_xsgen.cc" |
| 5377 |
|
| { |
| 5378 |
|
| SV * RETVALSV; |
| 5379 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5380 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5381 |
1 |
| ST(0) = RETVALSV; |
| 5382 |
|
| } |
| 5383 |
1 |
| } |
| 5384 |
1 |
| XSRETURN(1); |
| 5385 |
1 |
| }); } |
| 5386 |
|
| |
| 5387 |
|
| |
| 5388 |
|
| |
| 5389 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Polygon_getInteriorRingN) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Polygon_getInteriorRingN) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5390 |
|
| { |
| 5391 |
1 |
| dVAR; dXSARGS; |
| 5392 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 5393 |
0 |
| croak_xs_usage(cv, "THIS, index"); |
| 5394 |
|
| { |
| 5395 |
|
| LinearRing * RETVAL; |
| 5396 |
1 |
▶ | geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5397 |
|
| ; |
| 5398 |
1 |
▶ | std::size_t index = xs::in<std::size_t>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t index = xs::in<std::size_t>(ST(1)); |
1 |
0 |
1 |
|
| 5399 |
|
| ; |
| 5400 |
|
| #line 10 "./xsi/Polygon.xsi" |
| 5401 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5402 |
|
| auto r = THIS->getInteriorRingN(index); |
| 5403 |
|
| if (r) RETVAL = dyn_cast<LinearRing*>(r->clone()); |
| 5404 |
|
| else XSRETURN_UNDEF; |
| 5405 |
|
| #line 5406 "Geos_xsgen.cc" |
| 5406 |
|
| { |
| 5407 |
|
| SV * RETVALSV; |
| 5408 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5409 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5410 |
1 |
| ST(0) = RETVALSV; |
| 5411 |
|
| } |
| 5412 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 5413 |
1 |
| XSRETURN(1); |
| 5414 |
1 |
| }); } |
| 5415 |
|
| |
| 5416 |
|
| |
| 5417 |
|
| |
| 5418 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Polygon_getNumInteriorRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Polygon_getNumInteriorRing) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 5419 |
|
| { |
| 5420 |
2 |
| dVAR; dXSARGS; |
| 5421 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 5422 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5423 |
|
| { |
| 5424 |
|
| std::size_t RETVAL; |
| 5425 |
2 |
▶ | geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 5426 |
|
| ; |
| 5427 |
|
| #line 15 "./xsi/Polygon.xsi" |
| 5428 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5429 |
|
| RETVAL = THIS->getNumInteriorRing(); |
| 5430 |
|
| #line 5431 "Geos_xsgen.cc" |
| 5431 |
|
| { |
| 5432 |
|
| SV * RETVALSV; |
| 5433 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 5434 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 5435 |
2 |
| ST(0) = RETVALSV; |
| 5436 |
|
| } |
| 5437 |
2 |
| } |
| 5438 |
2 |
| XSRETURN(1); |
| 5439 |
2 |
| }); } |
| 5440 |
|
| |
| 5441 |
|
| |
| 5442 |
|
| |
| 5443 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Polygon_tesselate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Polygon_tesselate) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 5444 |
|
| { |
| 5445 |
1 |
| dVAR; dXSARGS; |
| 5446 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 5447 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5448 |
|
| { |
| 5449 |
|
| GeometryCollection * RETVAL; |
| 5450 |
1 |
▶ | geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| geos::geom::Polygon* THIS = xs::in<geos::geom::Polygon *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 5451 |
|
| ; |
| 5452 |
|
| #line 18 "./xsi/Polygon.xsi" |
| 5453 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5454 |
|
| RETVAL = panda::Geos::tesselate(*THIS); |
| 5455 |
|
| #line 5456 "Geos_xsgen.cc" |
| 5456 |
|
| { |
| 5457 |
|
| SV * RETVALSV; |
| 5458 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 5459 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 5460 |
1 |
| ST(0) = RETVALSV; |
| 5461 |
|
| } |
| 5462 |
1 |
| } |
| 5463 |
1 |
| XSRETURN(1); |
| 5464 |
1 |
| }); } |
| 5465 |
|
| |
| 5466 |
|
| |
| 5467 |
|
| |
| 5468 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Polygon_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Polygon_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5469 |
|
| { |
| 5470 |
0 |
| dVAR; dXSARGS; |
| 5471 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5472 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5473 |
|
| { |
| 5474 |
|
| int RETVAL; |
| 5475 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5476 |
|
| #line 21 "./xsi/Polygon.xsi" |
| 5477 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5478 |
|
| #line 5479 "Geos_xsgen.cc" |
| 5479 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5480 |
0 |
| ST(0) = TARG; |
| 5481 |
|
| } |
| 5482 |
0 |
| XSRETURN(1); |
| 5483 |
0 |
| }); } |
| 5484 |
|
| |
| 5485 |
|
| |
| 5486 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/Polygon.xsi' */ |
| 5487 |
|
| |
| 5488 |
|
| |
| 5489 |
|
| /* INCLUDE: Including 'xsi/MultiPolygon.xsi' from 'Geos.xs' */ |
| 5490 |
|
| |
| 5491 |
|
| |
| 5492 |
|
| |
| 5493 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__MultiPolygon_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__MultiPolygon_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5494 |
|
| { |
| 5495 |
0 |
| dVAR; dXSARGS; |
| 5496 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5497 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5498 |
|
| { |
| 5499 |
|
| int RETVAL; |
| 5500 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5501 |
|
| #line 4 "./xsi/MultiPolygon.xsi" |
| 5502 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5503 |
|
| #line 5504 "Geos_xsgen.cc" |
| 5504 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5505 |
0 |
| ST(0) = TARG; |
| 5506 |
|
| } |
| 5507 |
0 |
| XSRETURN(1); |
| 5508 |
0 |
| }); } |
| 5509 |
|
| |
| 5510 |
|
| |
| 5511 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/MultiPolygon.xsi' */ |
| 5512 |
|
| |
| 5513 |
|
| |
| 5514 |
|
| /* INCLUDE: Including 'xsi/WKBConstants.xsi' from 'Geos.xs' */ |
| 5515 |
|
| |
| 5516 |
|
| |
| 5517 |
|
| |
| 5518 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBConstants_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBConstants_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5519 |
|
| { |
| 5520 |
0 |
| dVAR; dXSARGS; |
| 5521 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5522 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5523 |
|
| { |
| 5524 |
|
| int RETVAL; |
| 5525 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5526 |
|
| #line 4 "./xsi/WKBConstants.xsi" |
| 5527 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5528 |
|
| #line 5529 "Geos_xsgen.cc" |
| 5529 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5530 |
0 |
| ST(0) = TARG; |
| 5531 |
|
| } |
| 5532 |
0 |
| XSRETURN(1); |
| 5533 |
0 |
| }); } |
| 5534 |
|
| |
| 5535 |
|
| |
| 5536 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/WKBConstants.xsi' */ |
| 5537 |
|
| |
| 5538 |
|
| |
| 5539 |
|
| /* INCLUDE: Including 'xsi/WKBWriter.xsi' from 'Geos.xs' */ |
| 5540 |
|
| |
| 5541 |
|
| |
| 5542 |
|
| |
| 5543 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_new) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 5544 |
|
| { |
| 5545 |
6 |
| dVAR; dXSARGS; |
| 5546 |
6 |
▶ | if (items < 1 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 4) |
6 |
0 |
6 |
| if (items < 1 || items > 4) |
0 |
6 |
6 |
|
| 5547 |
0 |
| croak_xs_usage(cv, "_____unused9, dims= 2, bo= getMachineByteOrder(), includeSRID= false"); |
| 5548 |
|
| { |
| 5549 |
|
| WKBWriter * RETVAL; |
| 5550 |
|
| int dims; |
| 5551 |
|
| int bo; |
| 5552 |
|
| bool includeSRID; |
| 5553 |
|
| |
| 5554 |
6 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
0 |
6 |
6 |
|
| 5555 |
0 |
| dims = 2; |
| 5556 |
|
| else { |
| 5557 |
6 |
▶ | dims = (int)SvIV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| dims = (int)SvIV(ST(1)) |
6 |
0 |
6 |
|
| 5558 |
|
| ; |
| 5559 |
|
| } |
| 5560 |
|
| |
| 5561 |
6 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
2 |
4 |
6 |
|
| 5562 |
2 |
| bo = getMachineByteOrder(); |
| 5563 |
|
| else { |
| 5564 |
4 |
▶ | bo = (int)SvIV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| bo = (int)SvIV(ST(2)) |
4 |
0 |
4 |
|
| 5565 |
|
| ; |
| 5566 |
|
| } |
| 5567 |
|
| |
| 5568 |
6 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
2 |
4 |
6 |
|
| 5569 |
2 |
| includeSRID = false; |
| 5570 |
|
| else { |
| 5571 |
4 |
▶ | includeSRID = (bool)SvTRUE(ST(3)) |
Branch: 1 branch
| Branch | True | False | Total |
| includeSRID = (bool)SvTRUE(ST(3)) |
4 |
0 |
4 |
|
| 5572 |
|
| ; |
| 5573 |
|
| } |
| 5574 |
|
| #line 5 "./xsi/WKBWriter.xsi" |
| 5575 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5576 |
|
| RETVAL = new WKBWriter(dims, bo, includeSRID); |
| 5577 |
|
| #line 5578 "Geos_xsgen.cc" |
| 5578 |
|
| { |
| 5579 |
|
| SV * RETVALSV; |
| 5580 |
6 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
6 |
0 |
6 |
|
| 5581 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 5582 |
6 |
| ST(0) = RETVALSV; |
| 5583 |
|
| } |
| 5584 |
6 |
| } |
| 5585 |
6 |
| XSRETURN(1); |
| 5586 |
6 |
| }); } |
| 5587 |
|
| |
| 5588 |
|
| |
| 5589 |
|
| |
| 5590 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_getOutputDimension) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_getOutputDimension) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5591 |
|
| { |
| 5592 |
0 |
| dVAR; dXSARGS; |
| 5593 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 5594 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5595 |
|
| { |
| 5596 |
|
| int RETVAL; |
| 5597 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 5598 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5599 |
|
| ; |
| 5600 |
|
| #line 8 "./xsi/WKBWriter.xsi" |
| 5601 |
|
| RETVAL = THIS->getOutputDimension(); |
| 5602 |
|
| #line 5603 "Geos_xsgen.cc" |
| 5603 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5604 |
0 |
| ST(0) = TARG; |
| 5605 |
|
| } |
| 5606 |
0 |
| XSRETURN(1); |
| 5607 |
0 |
| }); } |
| 5608 |
|
| |
| 5609 |
|
| |
| 5610 |
|
| |
| 5611 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_setOutputDimension) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_setOutputDimension) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5612 |
|
| { |
| 5613 |
0 |
| dVAR; dXSARGS; |
| 5614 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 5615 |
0 |
| croak_xs_usage(cv, "THIS, newOutputDimension"); |
| 5616 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 5617 |
0 |
| SP -= items; |
| 5618 |
|
| { |
| 5619 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5620 |
|
| ; |
| 5621 |
0 |
| int newOutputDimension = (int)SvIV(ST(1)) |
| 5622 |
|
| ; |
| 5623 |
|
| #line 10 "./xsi/WKBWriter.xsi" |
| 5624 |
|
| THIS->setOutputDimension(newOutputDimension); |
| 5625 |
|
| #line 5626 "Geos_xsgen.cc" |
| 5626 |
0 |
| PUTBACK; |
| 5627 |
0 |
| return; |
| 5628 |
|
| } |
| 5629 |
0 |
| }); } |
| 5630 |
|
| |
| 5631 |
|
| |
| 5632 |
|
| |
| 5633 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_getByteOrder) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_getByteOrder) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5634 |
|
| { |
| 5635 |
0 |
| dVAR; dXSARGS; |
| 5636 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 5637 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5638 |
|
| { |
| 5639 |
|
| int RETVAL; |
| 5640 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 5641 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5642 |
|
| ; |
| 5643 |
|
| #line 12 "./xsi/WKBWriter.xsi" |
| 5644 |
|
| RETVAL = THIS->getByteOrder(); |
| 5645 |
|
| #line 5646 "Geos_xsgen.cc" |
| 5646 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5647 |
0 |
| ST(0) = TARG; |
| 5648 |
|
| } |
| 5649 |
0 |
| XSRETURN(1); |
| 5650 |
0 |
| }); } |
| 5651 |
|
| |
| 5652 |
|
| |
| 5653 |
|
| |
| 5654 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_setByteOrder) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_setByteOrder) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5655 |
|
| { |
| 5656 |
0 |
| dVAR; dXSARGS; |
| 5657 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 5658 |
0 |
| croak_xs_usage(cv, "THIS, newByteOrder"); |
| 5659 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 5660 |
0 |
| SP -= items; |
| 5661 |
|
| { |
| 5662 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5663 |
|
| ; |
| 5664 |
0 |
| int newByteOrder = (int)SvIV(ST(1)) |
| 5665 |
|
| ; |
| 5666 |
|
| #line 14 "./xsi/WKBWriter.xsi" |
| 5667 |
|
| THIS->setByteOrder(newByteOrder); |
| 5668 |
|
| #line 5669 "Geos_xsgen.cc" |
| 5669 |
0 |
| PUTBACK; |
| 5670 |
0 |
| return; |
| 5671 |
|
| } |
| 5672 |
0 |
| }); } |
| 5673 |
|
| |
| 5674 |
|
| |
| 5675 |
|
| |
| 5676 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_getIncludeSRID) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_getIncludeSRID) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5677 |
|
| { |
| 5678 |
0 |
| dVAR; dXSARGS; |
| 5679 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 5680 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 5681 |
|
| { |
| 5682 |
|
| int RETVAL; |
| 5683 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 5684 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5685 |
|
| ; |
| 5686 |
|
| #line 16 "./xsi/WKBWriter.xsi" |
| 5687 |
|
| RETVAL = THIS->getIncludeSRID(); |
| 5688 |
|
| #line 5689 "Geos_xsgen.cc" |
| 5689 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5690 |
0 |
| ST(0) = TARG; |
| 5691 |
|
| } |
| 5692 |
0 |
| XSRETURN(1); |
| 5693 |
0 |
| }); } |
| 5694 |
|
| |
| 5695 |
|
| |
| 5696 |
|
| |
| 5697 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_setIncludeSRID) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_setIncludeSRID) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5698 |
|
| { |
| 5699 |
0 |
| dVAR; dXSARGS; |
| 5700 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 5701 |
0 |
| croak_xs_usage(cv, "THIS, newIncludeSRID"); |
| 5702 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 5703 |
0 |
| SP -= items; |
| 5704 |
|
| { |
| 5705 |
0 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5706 |
|
| ; |
| 5707 |
0 |
| int newIncludeSRID = (int)SvIV(ST(1)) |
| 5708 |
|
| ; |
| 5709 |
|
| #line 18 "./xsi/WKBWriter.xsi" |
| 5710 |
|
| THIS->setIncludeSRID(newIncludeSRID); |
| 5711 |
|
| #line 5712 "Geos_xsgen.cc" |
| 5712 |
0 |
| PUTBACK; |
| 5713 |
0 |
| return; |
| 5714 |
|
| } |
| 5715 |
0 |
| }); } |
| 5716 |
|
| |
| 5717 |
|
| |
| 5718 |
|
| |
| 5719 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_write) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_write) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 5720 |
|
| { |
| 5721 |
3 |
| dVAR; dXSARGS; |
| 5722 |
3 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
3 |
3 |
|
| 5723 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 5724 |
|
| { |
| 5725 |
3 |
| std::string RETVAL; |
| 5726 |
3 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5727 |
3 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 5728 |
|
| ; |
| 5729 |
3 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
3 |
0 |
3 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
3 |
0 |
3 |
|
| 5730 |
|
| ; |
| 5731 |
|
| #line 21 "./xsi/WKBWriter.xsi" |
| 5732 |
|
| std::ostringstream out; |
| 5733 |
|
| THIS->write(g, out); |
| 5734 |
|
| RETVAL = out.str(); |
| 5735 |
|
| #line 5736 "Geos_xsgen.cc" |
| 5736 |
3 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
3 |
0 |
3 |
|
| 5737 |
3 |
| ST(0) = TARG; |
| 5738 |
3 |
| } |
| 5739 |
3 |
| XSRETURN(1); |
| 5740 |
3 |
| }); } |
| 5741 |
|
| |
| 5742 |
|
| |
| 5743 |
|
| |
| 5744 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_writeHEX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_writeHEX) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 5745 |
|
| { |
| 5746 |
3 |
| dVAR; dXSARGS; |
| 5747 |
3 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
3 |
3 |
|
| 5748 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 5749 |
|
| { |
| 5750 |
3 |
| std::string RETVAL; |
| 5751 |
3 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5752 |
3 |
▶ | WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| WKBWriter* THIS = xs::in<WKBWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 5753 |
|
| ; |
| 5754 |
3 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
3 |
0 |
3 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
3 |
0 |
3 |
|
| 5755 |
|
| ; |
| 5756 |
|
| #line 27 "./xsi/WKBWriter.xsi" |
| 5757 |
|
| std::ostringstream out; |
| 5758 |
|
| THIS->writeHEX(g, out); |
| 5759 |
|
| RETVAL = out.str(); |
| 5760 |
|
| #line 5761 "Geos_xsgen.cc" |
| 5761 |
3 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
3 |
0 |
3 |
|
| 5762 |
3 |
| ST(0) = TARG; |
| 5763 |
3 |
| } |
| 5764 |
3 |
| XSRETURN(1); |
| 5765 |
3 |
| }); } |
| 5766 |
|
| |
| 5767 |
|
| |
| 5768 |
|
| |
| 5769 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBWriter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBWriter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5770 |
|
| { |
| 5771 |
0 |
| dVAR; dXSARGS; |
| 5772 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 5773 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 5774 |
|
| { |
| 5775 |
|
| int RETVAL; |
| 5776 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 5777 |
|
| #line 32 "./xsi/WKBWriter.xsi" |
| 5778 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 5779 |
|
| #line 5780 "Geos_xsgen.cc" |
| 5780 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 5781 |
0 |
| ST(0) = TARG; |
| 5782 |
|
| } |
| 5783 |
0 |
| XSRETURN(1); |
| 5784 |
0 |
| }); } |
| 5785 |
|
| |
| 5786 |
|
| |
| 5787 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/WKBWriter.xsi' */ |
| 5788 |
|
| |
| 5789 |
|
| |
| 5790 |
|
| /* INCLUDE: Including 'xsi/WKBReader.xsi' from 'Geos.xs' */ |
| 5791 |
|
| |
| 5792 |
|
| |
| 5793 |
|
| |
| 5794 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBReader_read) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBReader_read) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 5795 |
|
| { |
| 5796 |
3 |
| dVAR; dXSARGS; |
| 5797 |
3 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
3 |
0 |
3 |
| if (items < 1 || items > 2) |
0 |
3 |
3 |
|
| 5798 |
0 |
| croak_xs_usage(cv, "in, geometry_factory= NULL"); |
| 5799 |
|
| { |
| 5800 |
3 |
| Sv RETVAL; |
| 5801 |
3 |
| std::string in; |
| 5802 |
|
| SV* geometry_factory; |
| 5803 |
|
| |
| 5804 |
|
| { STRLEN __in_len; |
| 5805 |
3 |
| const char* __in_buf = SvPV(ST(0), __in_len); |
| 5806 |
3 |
▶ | in.assign(__in_buf, __in_len); } |
Branch: 1 branch
| Branch | True | False | Total |
| in.assign(__in_buf, __in_len); } |
3 |
0 |
3 |
|
| 5807 |
|
| ; |
| 5808 |
|
| |
| 5809 |
3 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
2 |
3 |
|
| 5810 |
1 |
| geometry_factory = NULL; |
| 5811 |
|
| else { |
| 5812 |
2 |
| geometry_factory = ST(1) |
| 5813 |
|
| ; |
| 5814 |
|
| } |
| 5815 |
|
| #line 5 "./xsi/WKBReader.xsi" |
| 5816 |
|
| std::istringstream in_stream(in); |
| 5817 |
|
| Geometry* g; |
| 5818 |
|
| if (geometry_factory) { |
| 5819 |
|
| WKBReader r(xs::in<GeometryFactory&>(geometry_factory)); |
| 5820 |
|
| g = r.read(in_stream); |
| 5821 |
|
| } |
| 5822 |
|
| else { |
| 5823 |
|
| WKBReader r; |
| 5824 |
|
| g = r.read(in_stream); |
| 5825 |
|
| } |
| 5826 |
|
| RETVAL = Helper::uplift(g); |
| 5827 |
|
| #line 5828 "Geos_xsgen.cc" |
| 5828 |
|
| { |
| 5829 |
|
| SV * RETVALSV; |
| 5830 |
3 |
| RETVALSV = NULL; |
| 5831 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 5832 |
3 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
|
| 5833 |
0 |
| else switch (RETVAL.type()) { |
| 5834 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5835 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5836 |
0 |
| case SVt_PVCV: |
| 5837 |
|
| case SVt_PVIO: |
| 5838 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 5839 |
0 |
| break; |
| 5840 |
0 |
| default: throw "unknown type of Sv to return"; |
| 5841 |
|
| } |
| 5842 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 5843 |
3 |
| ST(0) = RETVALSV; |
| 5844 |
|
| } |
| 5845 |
3 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
|
| 5846 |
3 |
| XSRETURN(1); |
| 5847 |
3 |
| }); } |
| 5848 |
|
| |
| 5849 |
|
| |
| 5850 |
|
| |
| 5851 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__WKBReader_readHEX) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKBReader_readHEX) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 5852 |
|
| { |
| 5853 |
3 |
| dVAR; dXSARGS; |
| 5854 |
3 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
3 |
0 |
3 |
| if (items < 1 || items > 2) |
0 |
3 |
3 |
|
| 5855 |
0 |
| croak_xs_usage(cv, "in, geometry_factory= NULL"); |
| 5856 |
|
| { |
| 5857 |
3 |
| Sv RETVAL; |
| 5858 |
3 |
| std::string in; |
| 5859 |
|
| SV* geometry_factory; |
| 5860 |
|
| |
| 5861 |
|
| { STRLEN __in_len; |
| 5862 |
3 |
| const char* __in_buf = SvPV(ST(0), __in_len); |
| 5863 |
3 |
▶ | in.assign(__in_buf, __in_len); } |
Branch: 1 branch
| Branch | True | False | Total |
| in.assign(__in_buf, __in_len); } |
3 |
0 |
3 |
|
| 5864 |
|
| ; |
| 5865 |
|
| |
| 5866 |
3 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
2 |
3 |
|
| 5867 |
1 |
| geometry_factory = NULL; |
| 5868 |
|
| else { |
| 5869 |
2 |
| geometry_factory = ST(1) |
| 5870 |
|
| ; |
| 5871 |
|
| } |
| 5872 |
|
| #line 19 "./xsi/WKBReader.xsi" |
| 5873 |
|
| std::istringstream in_stream(in); |
| 5874 |
|
| Geometry* g; |
| 5875 |
|
| if (geometry_factory) { |
| 5876 |
|
| WKBReader r(xs::in<GeometryFactory&>(geometry_factory)); |
| 5877 |
|
| g = r.readHEX(in_stream); |
| 5878 |
|
| } |
| 5879 |
|
| else { |
| 5880 |
|
| WKBReader r; |
| 5881 |
|
| g = r.readHEX(in_stream); |
| 5882 |
|
| } |
| 5883 |
|
| RETVAL = Helper::uplift(g); |
| 5884 |
|
| #line 5885 "Geos_xsgen.cc" |
| 5885 |
|
| { |
| 5886 |
|
| SV * RETVALSV; |
| 5887 |
3 |
| RETVALSV = NULL; |
| 5888 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 5889 |
3 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
|
| 5890 |
0 |
| else switch (RETVAL.type()) { |
| 5891 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5892 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 5893 |
0 |
| case SVt_PVCV: |
| 5894 |
|
| case SVt_PVIO: |
| 5895 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 5896 |
0 |
| break; |
| 5897 |
0 |
| default: throw "unknown type of Sv to return"; |
| 5898 |
|
| } |
| 5899 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 5900 |
3 |
| ST(0) = RETVALSV; |
| 5901 |
|
| } |
| 5902 |
3 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
|
| 5903 |
3 |
| XSRETURN(1); |
| 5904 |
3 |
| }); } |
| 5905 |
|
| |
| 5906 |
|
| |
| 5907 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/WKBReader.xsi' */ |
| 5908 |
|
| |
| 5909 |
|
| |
| 5910 |
|
| /* INCLUDE: Including 'xsi/WKTWriter.xsi' from 'Geos.xs' */ |
| 5911 |
|
| |
| 5912 |
|
| |
| 5913 |
|
| |
| 5914 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTWriter_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTWriter_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 5915 |
|
| { |
| 5916 |
2 |
| dVAR; dXSARGS; |
| 5917 |
2 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
2 |
0 |
2 |
| if (items < 1 || items > 3) |
0 |
2 |
2 |
|
| 5918 |
0 |
| croak_xs_usage(cv, "_____unused10, roundingPrecision= NULL, trim= NULL"); |
| 5919 |
|
| { |
| 5920 |
|
| WKTWriter * RETVAL; |
| 5921 |
|
| SV* roundingPrecision; |
| 5922 |
|
| SV* trim; |
| 5923 |
|
| |
| 5924 |
2 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
2 |
0 |
2 |
|
| 5925 |
2 |
| roundingPrecision = NULL; |
| 5926 |
|
| else { |
| 5927 |
0 |
| roundingPrecision = ST(1) |
| 5928 |
|
| ; |
| 5929 |
|
| } |
| 5930 |
|
| |
| 5931 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
2 |
0 |
2 |
|
| 5932 |
2 |
| trim = NULL; |
| 5933 |
|
| else { |
| 5934 |
0 |
| trim = ST(2) |
| 5935 |
|
| ; |
| 5936 |
|
| } |
| 5937 |
|
| #line 5 "./xsi/WKTWriter.xsi" |
| 5938 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 5939 |
|
| RETVAL = new WKTWriter(); |
| 5940 |
|
| if (roundingPrecision) RETVAL->setRoundingPrecision(SvIV(roundingPrecision)); |
| 5941 |
|
| if (trim) RETVAL->setTrim(SvTRUE(trim)); |
| 5942 |
|
| #line 5943 "Geos_xsgen.cc" |
| 5943 |
|
| { |
| 5944 |
|
| SV * RETVALSV; |
| 5945 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 5946 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 5947 |
2 |
| ST(0) = RETVALSV; |
| 5948 |
|
| } |
| 5949 |
2 |
| } |
| 5950 |
2 |
| XSRETURN(1); |
| 5951 |
2 |
| }); } |
| 5952 |
|
| |
| 5953 |
|
| |
| 5954 |
|
| |
| 5955 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTWriter_setTrim) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTWriter_setTrim) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5956 |
|
| { |
| 5957 |
0 |
| dVAR; dXSARGS; |
| 5958 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 5959 |
0 |
| croak_xs_usage(cv, "THIS, value"); |
| 5960 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 5961 |
0 |
| SP -= items; |
| 5962 |
|
| { |
| 5963 |
0 |
▶ | WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5964 |
|
| ; |
| 5965 |
0 |
| bool value = (bool)SvTRUE(ST(1)) |
| 5966 |
|
| ; |
| 5967 |
|
| #line 10 "./xsi/WKTWriter.xsi" |
| 5968 |
|
| THIS->setTrim(value); |
| 5969 |
|
| #line 5970 "Geos_xsgen.cc" |
| 5970 |
0 |
| PUTBACK; |
| 5971 |
0 |
| return; |
| 5972 |
|
| } |
| 5973 |
0 |
| }); } |
| 5974 |
|
| |
| 5975 |
|
| |
| 5976 |
|
| |
| 5977 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTWriter_setRoundingPrecision) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTWriter_setRoundingPrecision) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 5978 |
|
| { |
| 5979 |
0 |
| dVAR; dXSARGS; |
| 5980 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 5981 |
0 |
| croak_xs_usage(cv, "THIS, value"); |
| 5982 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 5983 |
0 |
| SP -= items; |
| 5984 |
|
| { |
| 5985 |
0 |
▶ | WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 5986 |
|
| ; |
| 5987 |
0 |
| int value = (int)SvIV(ST(1)) |
| 5988 |
|
| ; |
| 5989 |
|
| #line 12 "./xsi/WKTWriter.xsi" |
| 5990 |
|
| THIS->setRoundingPrecision(value); |
| 5991 |
|
| #line 5992 "Geos_xsgen.cc" |
| 5992 |
0 |
| PUTBACK; |
| 5993 |
0 |
| return; |
| 5994 |
|
| } |
| 5995 |
0 |
| }); } |
| 5996 |
|
| |
| 5997 |
|
| |
| 5998 |
|
| |
| 5999 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTWriter_write) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTWriter_write) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6000 |
|
| { |
| 6001 |
2 |
| dVAR; dXSARGS; |
| 6002 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 6003 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 6004 |
|
| { |
| 6005 |
2 |
| std::string RETVAL; |
| 6006 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 6007 |
2 |
▶ | WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| WKTWriter* THIS = xs::in<WKTWriter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 6008 |
|
| ; |
| 6009 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 6010 |
|
| ; |
| 6011 |
|
| #line 14 "./xsi/WKTWriter.xsi" |
| 6012 |
|
| RETVAL = THIS->write(&g); |
| 6013 |
|
| #line 6014 "Geos_xsgen.cc" |
| 6014 |
2 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
2 |
0 |
2 |
|
| 6015 |
2 |
| ST(0) = TARG; |
| 6016 |
2 |
| } |
| 6017 |
2 |
| XSRETURN(1); |
| 6018 |
2 |
| }); } |
| 6019 |
|
| |
| 6020 |
|
| |
| 6021 |
|
| |
| 6022 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTWriter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTWriter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 6023 |
|
| { |
| 6024 |
0 |
| dVAR; dXSARGS; |
| 6025 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 6026 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 6027 |
|
| { |
| 6028 |
|
| int RETVAL; |
| 6029 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 6030 |
|
| #line 16 "./xsi/WKTWriter.xsi" |
| 6031 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 6032 |
|
| #line 6033 "Geos_xsgen.cc" |
| 6033 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 6034 |
0 |
| ST(0) = TARG; |
| 6035 |
|
| } |
| 6036 |
0 |
| XSRETURN(1); |
| 6037 |
0 |
| }); } |
| 6038 |
|
| |
| 6039 |
|
| |
| 6040 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/WKTWriter.xsi' */ |
| 6041 |
|
| |
| 6042 |
|
| |
| 6043 |
|
| /* INCLUDE: Including 'xsi/WKTReader.xsi' from 'Geos.xs' */ |
| 6044 |
|
| |
| 6045 |
|
| |
| 6046 |
|
| |
| 6047 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__WKTReader_read) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__WKTReader_read) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6048 |
|
| { |
| 6049 |
2 |
| dVAR; dXSARGS; |
| 6050 |
2 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
2 |
0 |
2 |
| if (items < 1 || items > 2) |
0 |
2 |
2 |
|
| 6051 |
0 |
| croak_xs_usage(cv, "in, geometry_factory= NULL"); |
| 6052 |
|
| { |
| 6053 |
2 |
| Sv RETVAL; |
| 6054 |
2 |
| std::string in; |
| 6055 |
|
| SV* geometry_factory; |
| 6056 |
|
| |
| 6057 |
|
| { STRLEN __in_len; |
| 6058 |
2 |
| const char* __in_buf = SvPV(ST(0), __in_len); |
| 6059 |
2 |
▶ | in.assign(__in_buf, __in_len); } |
Branch: 1 branch
| Branch | True | False | Total |
| in.assign(__in_buf, __in_len); } |
2 |
0 |
2 |
|
| 6060 |
|
| ; |
| 6061 |
|
| |
| 6062 |
2 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
1 |
2 |
|
| 6063 |
1 |
| geometry_factory = NULL; |
| 6064 |
|
| else { |
| 6065 |
1 |
| geometry_factory = ST(1) |
| 6066 |
|
| ; |
| 6067 |
|
| } |
| 6068 |
|
| #line 5 "./xsi/WKTReader.xsi" |
| 6069 |
|
| Geometry* g; |
| 6070 |
|
| if (geometry_factory) { |
| 6071 |
|
| WKTReader r(xs::in<GeometryFactory&>(geometry_factory)); |
| 6072 |
|
| g = r.read(in); |
| 6073 |
|
| } |
| 6074 |
|
| else { |
| 6075 |
|
| WKTReader r; |
| 6076 |
|
| g = r.read(in); |
| 6077 |
|
| } |
| 6078 |
|
| RETVAL = Helper::uplift(g); |
| 6079 |
|
| #line 6080 "Geos_xsgen.cc" |
| 6080 |
|
| { |
| 6081 |
|
| SV * RETVALSV; |
| 6082 |
2 |
| RETVALSV = NULL; |
| 6083 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 6084 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 6085 |
0 |
| else switch (RETVAL.type()) { |
| 6086 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 6087 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 6088 |
0 |
| case SVt_PVCV: |
| 6089 |
|
| case SVt_PVIO: |
| 6090 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 6091 |
0 |
| break; |
| 6092 |
0 |
| default: throw "unknown type of Sv to return"; |
| 6093 |
|
| } |
| 6094 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 6095 |
2 |
| ST(0) = RETVALSV; |
| 6096 |
|
| } |
| 6097 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 6098 |
2 |
| XSRETURN(1); |
| 6099 |
2 |
| }); } |
| 6100 |
|
| |
| 6101 |
|
| |
| 6102 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/WKTReader.xsi' */ |
| 6103 |
|
| |
| 6104 |
|
| |
| 6105 |
|
| /* INCLUDE: Including 'xsi/PrepGeometry.xsi' from 'Geos.xs' */ |
| 6106 |
|
| |
| 6107 |
|
| |
| 6108 |
|
| |
| 6109 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_getGeometry) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_getGeometry) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 6110 |
|
| { |
| 6111 |
0 |
| dVAR; dXSARGS; |
| 6112 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 6113 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 6114 |
|
| { |
| 6115 |
|
| Geometry * RETVAL; |
| 6116 |
0 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 6117 |
|
| ; |
| 6118 |
|
| #line 4 "./xsi/PrepGeometry.xsi" |
| 6119 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6120 |
|
| RETVAL = THIS->getGeometry().clone(); |
| 6121 |
|
| #line 6122 "Geos_xsgen.cc" |
| 6122 |
|
| { |
| 6123 |
|
| SV * RETVALSV; |
| 6124 |
0 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
0 |
0 |
0 |
|
| 6125 |
0 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
0 |
0 |
0 |
|
| 6126 |
0 |
| ST(0) = RETVALSV; |
| 6127 |
|
| } |
| 6128 |
0 |
| } |
| 6129 |
0 |
| XSRETURN(1); |
| 6130 |
0 |
| }); } |
| 6131 |
|
| |
| 6132 |
|
| |
| 6133 |
|
| |
| 6134 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_contains) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_contains) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6135 |
|
| { |
| 6136 |
1 |
| dVAR; dXSARGS; |
| 6137 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6138 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6139 |
|
| { |
| 6140 |
|
| bool RETVAL; |
| 6141 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6142 |
|
| ; |
| 6143 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6144 |
|
| ; |
| 6145 |
|
| #line 6 "./xsi/PrepGeometry.xsi" |
| 6146 |
|
| RETVAL = THIS->contains(&geom); |
| 6147 |
|
| #line 6148 "Geos_xsgen.cc" |
| 6148 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6149 |
|
| } |
| 6150 |
1 |
| XSRETURN(1); |
| 6151 |
1 |
| }); } |
| 6152 |
|
| |
| 6153 |
|
| |
| 6154 |
|
| |
| 6155 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_containsProperly) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_containsProperly) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6156 |
|
| { |
| 6157 |
1 |
| dVAR; dXSARGS; |
| 6158 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6159 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6160 |
|
| { |
| 6161 |
|
| bool RETVAL; |
| 6162 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6163 |
|
| ; |
| 6164 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6165 |
|
| ; |
| 6166 |
|
| #line 8 "./xsi/PrepGeometry.xsi" |
| 6167 |
|
| RETVAL = THIS->containsProperly(&geom); |
| 6168 |
|
| #line 6169 "Geos_xsgen.cc" |
| 6169 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6170 |
|
| } |
| 6171 |
1 |
| XSRETURN(1); |
| 6172 |
1 |
| }); } |
| 6173 |
|
| |
| 6174 |
|
| |
| 6175 |
|
| |
| 6176 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_coveredBy) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_coveredBy) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6177 |
|
| { |
| 6178 |
1 |
| dVAR; dXSARGS; |
| 6179 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6180 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6181 |
|
| { |
| 6182 |
|
| bool RETVAL; |
| 6183 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6184 |
|
| ; |
| 6185 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6186 |
|
| ; |
| 6187 |
|
| #line 10 "./xsi/PrepGeometry.xsi" |
| 6188 |
|
| RETVAL = THIS->coveredBy(&geom); |
| 6189 |
|
| #line 6190 "Geos_xsgen.cc" |
| 6190 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6191 |
|
| } |
| 6192 |
1 |
| XSRETURN(1); |
| 6193 |
1 |
| }); } |
| 6194 |
|
| |
| 6195 |
|
| |
| 6196 |
|
| |
| 6197 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_covers) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_covers) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6198 |
|
| { |
| 6199 |
1 |
| dVAR; dXSARGS; |
| 6200 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6201 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6202 |
|
| { |
| 6203 |
|
| bool RETVAL; |
| 6204 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6205 |
|
| ; |
| 6206 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6207 |
|
| ; |
| 6208 |
|
| #line 12 "./xsi/PrepGeometry.xsi" |
| 6209 |
|
| RETVAL = THIS->covers(&geom); |
| 6210 |
|
| #line 6211 "Geos_xsgen.cc" |
| 6211 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6212 |
|
| } |
| 6213 |
1 |
| XSRETURN(1); |
| 6214 |
1 |
| }); } |
| 6215 |
|
| |
| 6216 |
|
| |
| 6217 |
|
| |
| 6218 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_crosses) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_crosses) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6219 |
|
| { |
| 6220 |
1 |
| dVAR; dXSARGS; |
| 6221 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6222 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6223 |
|
| { |
| 6224 |
|
| bool RETVAL; |
| 6225 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6226 |
|
| ; |
| 6227 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6228 |
|
| ; |
| 6229 |
|
| #line 14 "./xsi/PrepGeometry.xsi" |
| 6230 |
|
| RETVAL = THIS->crosses(&geom); |
| 6231 |
|
| #line 6232 "Geos_xsgen.cc" |
| 6232 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6233 |
|
| } |
| 6234 |
1 |
| XSRETURN(1); |
| 6235 |
1 |
| }); } |
| 6236 |
|
| |
| 6237 |
|
| |
| 6238 |
|
| |
| 6239 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_disjoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_disjoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6240 |
|
| { |
| 6241 |
1 |
| dVAR; dXSARGS; |
| 6242 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6243 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6244 |
|
| { |
| 6245 |
|
| bool RETVAL; |
| 6246 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6247 |
|
| ; |
| 6248 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6249 |
|
| ; |
| 6250 |
|
| #line 16 "./xsi/PrepGeometry.xsi" |
| 6251 |
|
| RETVAL = THIS->disjoint(&geom); |
| 6252 |
|
| #line 6253 "Geos_xsgen.cc" |
| 6253 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6254 |
|
| } |
| 6255 |
1 |
| XSRETURN(1); |
| 6256 |
1 |
| }); } |
| 6257 |
|
| |
| 6258 |
|
| |
| 6259 |
|
| |
| 6260 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_intersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_intersects) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6261 |
|
| { |
| 6262 |
1 |
| dVAR; dXSARGS; |
| 6263 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6264 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6265 |
|
| { |
| 6266 |
|
| bool RETVAL; |
| 6267 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6268 |
|
| ; |
| 6269 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6270 |
|
| ; |
| 6271 |
|
| #line 18 "./xsi/PrepGeometry.xsi" |
| 6272 |
|
| RETVAL = THIS->intersects(&geom); |
| 6273 |
|
| #line 6274 "Geos_xsgen.cc" |
| 6274 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6275 |
|
| } |
| 6276 |
1 |
| XSRETURN(1); |
| 6277 |
1 |
| }); } |
| 6278 |
|
| |
| 6279 |
|
| |
| 6280 |
|
| |
| 6281 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_overlaps) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_overlaps) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6282 |
|
| { |
| 6283 |
1 |
| dVAR; dXSARGS; |
| 6284 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6285 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6286 |
|
| { |
| 6287 |
|
| bool RETVAL; |
| 6288 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6289 |
|
| ; |
| 6290 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6291 |
|
| ; |
| 6292 |
|
| #line 20 "./xsi/PrepGeometry.xsi" |
| 6293 |
|
| RETVAL = THIS->overlaps(&geom); |
| 6294 |
|
| #line 6295 "Geos_xsgen.cc" |
| 6295 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6296 |
|
| } |
| 6297 |
1 |
| XSRETURN(1); |
| 6298 |
1 |
| }); } |
| 6299 |
|
| |
| 6300 |
|
| |
| 6301 |
|
| |
| 6302 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_touches) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_touches) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6303 |
|
| { |
| 6304 |
1 |
| dVAR; dXSARGS; |
| 6305 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6306 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6307 |
|
| { |
| 6308 |
|
| bool RETVAL; |
| 6309 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6310 |
|
| ; |
| 6311 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6312 |
|
| ; |
| 6313 |
|
| #line 22 "./xsi/PrepGeometry.xsi" |
| 6314 |
|
| RETVAL = THIS->touches(&geom); |
| 6315 |
|
| #line 6316 "Geos_xsgen.cc" |
| 6316 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6317 |
|
| } |
| 6318 |
1 |
| XSRETURN(1); |
| 6319 |
1 |
| }); } |
| 6320 |
|
| |
| 6321 |
|
| |
| 6322 |
|
| |
| 6323 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_within) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_within) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6324 |
|
| { |
| 6325 |
1 |
| dVAR; dXSARGS; |
| 6326 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6327 |
0 |
| croak_xs_usage(cv, "THIS, geom"); |
| 6328 |
|
| { |
| 6329 |
|
| bool RETVAL; |
| 6330 |
1 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 6331 |
|
| ; |
| 6332 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
| 6333 |
|
| ; |
| 6334 |
|
| #line 24 "./xsi/PrepGeometry.xsi" |
| 6335 |
|
| RETVAL = THIS->within(&geom); |
| 6336 |
|
| #line 6337 "Geos_xsgen.cc" |
| 6337 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6338 |
|
| } |
| 6339 |
1 |
| XSRETURN(1); |
| 6340 |
1 |
| }); } |
| 6341 |
|
| |
| 6342 |
|
| |
| 6343 |
|
| |
| 6344 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_toString) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 6345 |
|
| { |
| 6346 |
4 |
| dVAR; dXSARGS; |
| 6347 |
4 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
4 |
4 |
|
| 6348 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 6349 |
|
| { |
| 6350 |
4 |
| std::string RETVAL; |
| 6351 |
4 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
3 |
4 |
| dXSTARG; |
3 |
0 |
3 |
|
| 6352 |
4 |
▶ | BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
4 |
0 |
4 |
| BasicPreparedGeometry* THIS = xs::in<BasicPreparedGeometry *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 6353 |
|
| ; |
| 6354 |
|
| #line 26 "./xsi/PrepGeometry.xsi" |
| 6355 |
|
| RETVAL = THIS->toString(); |
| 6356 |
|
| #line 6357 "Geos_xsgen.cc" |
| 6357 |
4 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
4 |
0 |
4 |
|
| 6358 |
4 |
| ST(0) = TARG; |
| 6359 |
4 |
| } |
| 6360 |
4 |
| XSRETURN(1); |
| 6361 |
4 |
| }); } |
| 6362 |
|
| |
| 6363 |
|
| |
| 6364 |
|
| |
| 6365 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__Geometry_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__Geometry_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 6366 |
|
| { |
| 6367 |
0 |
| dVAR; dXSARGS; |
| 6368 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 6369 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 6370 |
|
| { |
| 6371 |
|
| int RETVAL; |
| 6372 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 6373 |
|
| #line 28 "./xsi/PrepGeometry.xsi" |
| 6374 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 6375 |
|
| #line 6376 "Geos_xsgen.cc" |
| 6376 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 6377 |
0 |
| ST(0) = TARG; |
| 6378 |
|
| } |
| 6379 |
0 |
| XSRETURN(1); |
| 6380 |
0 |
| }); } |
| 6381 |
|
| |
| 6382 |
|
| |
| 6383 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/PrepGeometry.xsi' */ |
| 6384 |
|
| |
| 6385 |
|
| |
| 6386 |
|
| /* INCLUDE: Including 'xsi/PrepGeometryFactory.xsi' from 'Geos.xs' */ |
| 6387 |
|
| |
| 6388 |
|
| |
| 6389 |
|
| |
| 6390 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Prep__GeometryFactory_prepare) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Prep__GeometryFactory_prepare) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6391 |
|
| { |
| 6392 |
2 |
| dVAR; dXSARGS; |
| 6393 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 6394 |
0 |
| croak_xs_usage(cv, "g"); |
| 6395 |
|
| { |
| 6396 |
|
| BasicPreparedGeometry * RETVAL; |
| 6397 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 6398 |
|
| ; |
| 6399 |
|
| #line 5 "./xsi/PrepGeometryFactory.xsi" |
| 6400 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6401 |
|
| auto pg = const_cast<PreparedGeometry*>(PreparedGeometryFactory::prepare(&g)); |
| 6402 |
|
| RETVAL = static_cast<BasicPreparedGeometry*>(pg); |
| 6403 |
|
| #line 6404 "Geos_xsgen.cc" |
| 6404 |
|
| { |
| 6405 |
|
| SV * RETVALSV; |
| 6406 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 6407 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 6408 |
2 |
| ST(0) = RETVALSV; |
| 6409 |
|
| } |
| 6410 |
2 |
| } |
| 6411 |
2 |
| XSRETURN(1); |
| 6412 |
2 |
| }); } |
| 6413 |
|
| |
| 6414 |
|
| |
| 6415 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/PrepGeometryFactory.xsi' */ |
| 6416 |
|
| |
| 6417 |
|
| |
| 6418 |
|
| /* INCLUDE: Including 'xsi/algorithm.xsi' from 'Geos.xs' */ |
| 6419 |
|
| |
| 6420 |
|
| |
| 6421 |
|
| |
| 6422 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_toDegrees) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_toDegrees) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 6423 |
|
| { |
| 6424 |
8 |
| dVAR; dXSARGS; |
| 6425 |
8 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
8 |
8 |
|
| 6426 |
0 |
| croak_xs_usage(cv, "radians"); |
| 6427 |
|
| { |
| 6428 |
|
| double RETVAL; |
| 6429 |
8 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
8 |
0 |
8 |
|
| 6430 |
8 |
| double radians = (double)SvNV(ST(0)) |
| 6431 |
|
| ; |
| 6432 |
|
| #line 4 "./xsi/algorithm.xsi" |
| 6433 |
|
| RETVAL = Angle::toDegrees(radians); |
| 6434 |
|
| #line 6435 "Geos_xsgen.cc" |
| 6435 |
8 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
8 |
8 |
|
| 6436 |
8 |
| ST(0) = TARG; |
| 6437 |
|
| } |
| 6438 |
8 |
| XSRETURN(1); |
| 6439 |
8 |
| }); } |
| 6440 |
|
| |
| 6441 |
|
| |
| 6442 |
|
| |
| 6443 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_toRadians) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_toRadians) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6444 |
|
| { |
| 6445 |
1 |
| dVAR; dXSARGS; |
| 6446 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 6447 |
0 |
| croak_xs_usage(cv, "angleDegrees"); |
| 6448 |
|
| { |
| 6449 |
|
| double RETVAL; |
| 6450 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6451 |
1 |
| double angleDegrees = (double)SvNV(ST(0)) |
| 6452 |
|
| ; |
| 6453 |
|
| #line 6 "./xsi/algorithm.xsi" |
| 6454 |
|
| RETVAL = Angle::toRadians(angleDegrees); |
| 6455 |
|
| #line 6456 "Geos_xsgen.cc" |
| 6456 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6457 |
1 |
| ST(0) = TARG; |
| 6458 |
|
| } |
| 6459 |
1 |
| XSRETURN(1); |
| 6460 |
1 |
| }); } |
| 6461 |
|
| |
| 6462 |
|
| |
| 6463 |
|
| |
| 6464 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_angle) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_angle) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6465 |
|
| { |
| 6466 |
2 |
| dVAR; dXSARGS; |
| 6467 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 6468 |
0 |
| croak_xs_usage(cv, "p0"); |
| 6469 |
|
| { |
| 6470 |
|
| double RETVAL; |
| 6471 |
2 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
|
| 6472 |
2 |
| Coordinate& p0 = xs::in<Coordinate&>(ST(0)); |
| 6473 |
|
| ; |
| 6474 |
|
| #line 8 "./xsi/algorithm.xsi" |
| 6475 |
|
| RETVAL = Angle::angle(p0); |
| 6476 |
|
| #line 6477 "Geos_xsgen.cc" |
| 6477 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6478 |
1 |
| ST(0) = TARG; |
| 6479 |
|
| } |
| 6480 |
1 |
| XSRETURN(1); |
| 6481 |
1 |
| }); } |
| 6482 |
|
| |
| 6483 |
|
| |
| 6484 |
|
| |
| 6485 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_isAcute) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_isAcute) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6486 |
|
| { |
| 6487 |
1 |
| dVAR; dXSARGS; |
| 6488 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6489 |
0 |
| croak_xs_usage(cv, "p0, p1, p2"); |
| 6490 |
|
| { |
| 6491 |
|
| bool RETVAL; |
| 6492 |
1 |
| Coordinate* p0 = xs::in<Coordinate *>(ST(0)); |
| 6493 |
|
| ; |
| 6494 |
1 |
| Coordinate* p1 = xs::in<Coordinate *>(ST(1)); |
| 6495 |
|
| ; |
| 6496 |
1 |
| Coordinate * p2 = xs::in<Coordinate *>(ST(2)); |
| 6497 |
|
| ; |
| 6498 |
|
| #line 11 "./xsi/algorithm.xsi" |
| 6499 |
|
| RETVAL = Angle::isAcute(*p0, *p1, *p2); |
| 6500 |
|
| #line 6501 "Geos_xsgen.cc" |
| 6501 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6502 |
|
| } |
| 6503 |
1 |
| XSRETURN(1); |
| 6504 |
1 |
| }); } |
| 6505 |
|
| |
| 6506 |
|
| |
| 6507 |
|
| |
| 6508 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_isObtuse) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_isObtuse) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6509 |
|
| { |
| 6510 |
1 |
| dVAR; dXSARGS; |
| 6511 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6512 |
0 |
| croak_xs_usage(cv, "p0, p1, p2"); |
| 6513 |
|
| { |
| 6514 |
|
| bool RETVAL; |
| 6515 |
1 |
| Coordinate& p0 = xs::in<Coordinate&>(ST(0)); |
| 6516 |
|
| ; |
| 6517 |
1 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(1)); |
| 6518 |
|
| ; |
| 6519 |
1 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(2)); |
| 6520 |
|
| ; |
| 6521 |
|
| #line 15 "./xsi/algorithm.xsi" |
| 6522 |
|
| RETVAL = Angle::isObtuse(p0, p1, p2); |
| 6523 |
|
| #line 6524 "Geos_xsgen.cc" |
| 6524 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6525 |
|
| } |
| 6526 |
1 |
| XSRETURN(1); |
| 6527 |
1 |
| }); } |
| 6528 |
|
| |
| 6529 |
|
| |
| 6530 |
|
| |
| 6531 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_angleBetween) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_angleBetween) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6532 |
|
| { |
| 6533 |
1 |
| dVAR; dXSARGS; |
| 6534 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6535 |
0 |
| croak_xs_usage(cv, "tip1, tail, tip2"); |
| 6536 |
|
| { |
| 6537 |
|
| double RETVAL; |
| 6538 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6539 |
1 |
| Coordinate& tip1 = xs::in<Coordinate&>(ST(0)); |
| 6540 |
|
| ; |
| 6541 |
1 |
| Coordinate& tail = xs::in<Coordinate&>(ST(1)); |
| 6542 |
|
| ; |
| 6543 |
1 |
| Coordinate& tip2 = xs::in<Coordinate&>(ST(2)); |
| 6544 |
|
| ; |
| 6545 |
|
| #line 19 "./xsi/algorithm.xsi" |
| 6546 |
|
| RETVAL = Angle::angleBetween(tip1, tail, tip2); |
| 6547 |
|
| #line 6548 "Geos_xsgen.cc" |
| 6548 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6549 |
1 |
| ST(0) = TARG; |
| 6550 |
|
| } |
| 6551 |
1 |
| XSRETURN(1); |
| 6552 |
1 |
| }); } |
| 6553 |
|
| |
| 6554 |
|
| |
| 6555 |
|
| |
| 6556 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_angleBetweenOriented) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_angleBetweenOriented) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6557 |
|
| { |
| 6558 |
1 |
| dVAR; dXSARGS; |
| 6559 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6560 |
0 |
| croak_xs_usage(cv, "tip1, tail, tip2"); |
| 6561 |
|
| { |
| 6562 |
|
| double RETVAL; |
| 6563 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6564 |
1 |
| Coordinate& tip1 = xs::in<Coordinate&>(ST(0)); |
| 6565 |
|
| ; |
| 6566 |
1 |
| Coordinate& tail = xs::in<Coordinate&>(ST(1)); |
| 6567 |
|
| ; |
| 6568 |
1 |
| Coordinate& tip2 = xs::in<Coordinate&>(ST(2)); |
| 6569 |
|
| ; |
| 6570 |
|
| #line 23 "./xsi/algorithm.xsi" |
| 6571 |
|
| RETVAL = Angle::angleBetweenOriented (tip1, tail, tip2); |
| 6572 |
|
| #line 6573 "Geos_xsgen.cc" |
| 6573 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6574 |
1 |
| ST(0) = TARG; |
| 6575 |
|
| } |
| 6576 |
1 |
| XSRETURN(1); |
| 6577 |
1 |
| }); } |
| 6578 |
|
| |
| 6579 |
|
| |
| 6580 |
|
| |
| 6581 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_interiorAngle) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_interiorAngle) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6582 |
|
| { |
| 6583 |
1 |
| dVAR; dXSARGS; |
| 6584 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6585 |
0 |
| croak_xs_usage(cv, "p0, p1, p2"); |
| 6586 |
|
| { |
| 6587 |
|
| double RETVAL; |
| 6588 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6589 |
1 |
| Coordinate& p0 = xs::in<Coordinate&>(ST(0)); |
| 6590 |
|
| ; |
| 6591 |
1 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(1)); |
| 6592 |
|
| ; |
| 6593 |
1 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(2)); |
| 6594 |
|
| ; |
| 6595 |
|
| #line 27 "./xsi/algorithm.xsi" |
| 6596 |
|
| RETVAL = Angle::interiorAngle(p0, p1, p2); |
| 6597 |
|
| #line 6598 "Geos_xsgen.cc" |
| 6598 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6599 |
1 |
| ST(0) = TARG; |
| 6600 |
|
| } |
| 6601 |
1 |
| XSRETURN(1); |
| 6602 |
1 |
| }); } |
| 6603 |
|
| |
| 6604 |
|
| |
| 6605 |
|
| |
| 6606 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_getTurn) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_getTurn) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6607 |
|
| { |
| 6608 |
1 |
| dVAR; dXSARGS; |
| 6609 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6610 |
0 |
| croak_xs_usage(cv, "ang1, ang2"); |
| 6611 |
|
| { |
| 6612 |
|
| int RETVAL; |
| 6613 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6614 |
1 |
| double ang1 = (double)SvNV(ST(0)) |
| 6615 |
|
| ; |
| 6616 |
1 |
| double ang2 = (double)SvNV(ST(1)) |
| 6617 |
|
| ; |
| 6618 |
|
| #line 30 "./xsi/algorithm.xsi" |
| 6619 |
|
| RETVAL = Angle::getTurn(ang1, ang2); |
| 6620 |
|
| #line 6621 "Geos_xsgen.cc" |
| 6621 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 6622 |
1 |
| ST(0) = TARG; |
| 6623 |
|
| } |
| 6624 |
1 |
| XSRETURN(1); |
| 6625 |
1 |
| }); } |
| 6626 |
|
| |
| 6627 |
|
| |
| 6628 |
|
| |
| 6629 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_normalize) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_normalize) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6630 |
|
| { |
| 6631 |
1 |
| dVAR; dXSARGS; |
| 6632 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 6633 |
0 |
| croak_xs_usage(cv, "angle"); |
| 6634 |
|
| { |
| 6635 |
|
| double RETVAL; |
| 6636 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6637 |
1 |
| double angle = (double)SvNV(ST(0)) |
| 6638 |
|
| ; |
| 6639 |
|
| #line 32 "./xsi/algorithm.xsi" |
| 6640 |
|
| RETVAL = Angle::normalize(angle); |
| 6641 |
|
| #line 6642 "Geos_xsgen.cc" |
| 6642 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6643 |
1 |
| ST(0) = TARG; |
| 6644 |
|
| } |
| 6645 |
1 |
| XSRETURN(1); |
| 6646 |
1 |
| }); } |
| 6647 |
|
| |
| 6648 |
|
| |
| 6649 |
|
| |
| 6650 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_normalizePositive) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_normalizePositive) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6651 |
|
| { |
| 6652 |
1 |
| dVAR; dXSARGS; |
| 6653 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 6654 |
0 |
| croak_xs_usage(cv, "angle"); |
| 6655 |
|
| { |
| 6656 |
|
| double RETVAL; |
| 6657 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6658 |
1 |
| double angle = (double)SvNV(ST(0)) |
| 6659 |
|
| ; |
| 6660 |
|
| #line 34 "./xsi/algorithm.xsi" |
| 6661 |
|
| RETVAL = Angle::normalizePositive(angle); |
| 6662 |
|
| #line 6663 "Geos_xsgen.cc" |
| 6663 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6664 |
1 |
| ST(0) = TARG; |
| 6665 |
|
| } |
| 6666 |
1 |
| XSRETURN(1); |
| 6667 |
1 |
| }); } |
| 6668 |
|
| |
| 6669 |
|
| |
| 6670 |
|
| |
| 6671 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_diff) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_diff) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6672 |
|
| { |
| 6673 |
1 |
| dVAR; dXSARGS; |
| 6674 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6675 |
0 |
| croak_xs_usage(cv, "ang1, ang2"); |
| 6676 |
|
| { |
| 6677 |
|
| double RETVAL; |
| 6678 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6679 |
1 |
| double ang1 = (double)SvNV(ST(0)) |
| 6680 |
|
| ; |
| 6681 |
1 |
| double ang2 = (double)SvNV(ST(1)) |
| 6682 |
|
| ; |
| 6683 |
|
| #line 36 "./xsi/algorithm.xsi" |
| 6684 |
|
| RETVAL = Angle::diff(ang1, ang2); |
| 6685 |
|
| #line 6686 "Geos_xsgen.cc" |
| 6686 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6687 |
1 |
| ST(0) = TARG; |
| 6688 |
|
| } |
| 6689 |
1 |
| XSRETURN(1); |
| 6690 |
1 |
| }); } |
| 6691 |
|
| |
| 6692 |
|
| |
| 6693 |
|
| |
| 6694 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_centroid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_centroid) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6695 |
|
| { |
| 6696 |
2 |
| dVAR; dXSARGS; |
| 6697 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 6698 |
0 |
| croak_xs_usage(cv, "g"); |
| 6699 |
|
| { |
| 6700 |
|
| Coordinate * RETVAL; |
| 6701 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 6702 |
|
| ; |
| 6703 |
|
| #line 39 "./xsi/algorithm.xsi" |
| 6704 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6705 |
|
| Coordinate c; |
| 6706 |
|
| if (Centroid::getCentroid(g, c)) RETVAL = new Coordinate(c); |
| 6707 |
|
| else XSRETURN_UNDEF; |
| 6708 |
|
| #line 6709 "Geos_xsgen.cc" |
| 6709 |
|
| { |
| 6710 |
|
| SV * RETVALSV; |
| 6711 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 6712 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 6713 |
1 |
| ST(0) = RETVALSV; |
| 6714 |
|
| } |
| 6715 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
|
| 6716 |
1 |
| XSRETURN(1); |
| 6717 |
2 |
| }); } |
| 6718 |
|
| |
| 6719 |
|
| |
| 6720 |
|
| |
| 6721 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_centroidArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_centroidArea) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 6722 |
|
| { |
| 6723 |
3 |
| dVAR; dXSARGS; |
| 6724 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 6725 |
0 |
| croak_xs_usage(cv, "geoms"); |
| 6726 |
|
| { |
| 6727 |
|
| Coordinate * RETVAL; |
| 6728 |
3 |
▶ | Array geoms = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array geoms = ST(0); |
3 |
0 |
3 |
|
| 6729 |
3 |
▶ | if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
|
| 6730 |
|
| ; |
| 6731 |
|
| #line 45 "./xsi/algorithm.xsi" |
| 6732 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6733 |
|
| Coordinate result; |
| 6734 |
|
| CentroidArea acc; |
| 6735 |
|
| for(size_t i = 0; i < geoms.size(); ++i) { |
| 6736 |
|
| auto item = geoms.at(i); |
| 6737 |
|
| if (item.is_array_ref()) { |
| 6738 |
|
| auto seq = Helper::convert_coords(Array(item)); |
| 6739 |
|
| acc.add(&seq); |
| 6740 |
|
| } |
| 6741 |
|
| else { |
| 6742 |
|
| acc.add(&xs::in<Geometry&>(item)); |
| 6743 |
|
| } |
| 6744 |
|
| } |
| 6745 |
|
| if (acc.getCentroid(result)) RETVAL = new Coordinate(result); |
| 6746 |
|
| else XSRETURN_UNDEF; |
| 6747 |
|
| #line 6748 "Geos_xsgen.cc" |
| 6748 |
|
| { |
| 6749 |
|
| SV * RETVALSV; |
| 6750 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 6751 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 6752 |
2 |
| ST(0) = RETVALSV; |
| 6753 |
|
| } |
| 6754 |
5 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
2 |
1 |
3 |
| } |
2 |
1 |
3 |
| } |
2 |
1 |
3 |
|
| 6755 |
2 |
| XSRETURN(1); |
| 6756 |
3 |
| }); } |
| 6757 |
|
| |
| 6758 |
|
| |
| 6759 |
|
| |
| 6760 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_centroidLine) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_centroidLine) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6761 |
|
| { |
| 6762 |
2 |
| dVAR; dXSARGS; |
| 6763 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 6764 |
0 |
| croak_xs_usage(cv, "geoms"); |
| 6765 |
|
| { |
| 6766 |
|
| Coordinate * RETVAL; |
| 6767 |
2 |
▶ | Array geoms = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array geoms = ST(0); |
2 |
0 |
2 |
|
| 6768 |
2 |
▶ | if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 6769 |
|
| ; |
| 6770 |
|
| #line 63 "./xsi/algorithm.xsi" |
| 6771 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6772 |
|
| Coordinate result; |
| 6773 |
|
| CentroidLine acc; |
| 6774 |
|
| for(size_t i = 0; i < geoms.size(); ++i) { |
| 6775 |
|
| auto item = geoms.at(i); |
| 6776 |
|
| if (item.is_array_ref()) { |
| 6777 |
|
| auto seq = Helper::convert_coords(Array(item)); |
| 6778 |
|
| acc.add(&seq); |
| 6779 |
|
| } |
| 6780 |
|
| else { |
| 6781 |
|
| acc.add(&xs::in<Geometry&>(item)); |
| 6782 |
|
| } |
| 6783 |
|
| } |
| 6784 |
|
| if (acc.getCentroid(result)) RETVAL = new Coordinate(result); |
| 6785 |
|
| else XSRETURN_UNDEF; |
| 6786 |
|
| #line 6787 "Geos_xsgen.cc" |
| 6787 |
|
| { |
| 6788 |
|
| SV * RETVALSV; |
| 6789 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 6790 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 6791 |
1 |
| ST(0) = RETVALSV; |
| 6792 |
|
| } |
| 6793 |
4 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
|
| 6794 |
1 |
| XSRETURN(1); |
| 6795 |
2 |
| }); } |
| 6796 |
|
| |
| 6797 |
|
| |
| 6798 |
|
| |
| 6799 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_centroidPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_centroidPoint) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 6800 |
|
| { |
| 6801 |
3 |
| dVAR; dXSARGS; |
| 6802 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 6803 |
0 |
| croak_xs_usage(cv, "geoms"); |
| 6804 |
|
| { |
| 6805 |
|
| Coordinate * RETVAL; |
| 6806 |
3 |
▶ | Array geoms = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array geoms = ST(0); |
3 |
0 |
3 |
|
| 6807 |
3 |
▶ | if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!geoms && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
|
| 6808 |
|
| ; |
| 6809 |
|
| #line 80 "./xsi/algorithm.xsi" |
| 6810 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 6811 |
|
| Coordinate result; |
| 6812 |
|
| CentroidPoint acc; |
| 6813 |
|
| for(size_t i = 0; i < geoms.size(); ++i) { |
| 6814 |
|
| Object item = Object(geoms.at(i)); |
| 6815 |
|
| if (!item) throw ("invalid argument"); |
| 6816 |
|
| if (item.stash().name() == "Geo::Geos::Coordinate") { |
| 6817 |
|
| acc.add(&xs::in<Coordinate&>(item)); |
| 6818 |
|
| } |
| 6819 |
|
| else acc.add(&xs::in<Geometry&>(item)); |
| 6820 |
|
| } |
| 6821 |
|
| if (acc.getCentroid(result)) RETVAL = new Coordinate(result); |
| 6822 |
|
| else XSRETURN_UNDEF; |
| 6823 |
|
| #line 6824 "Geos_xsgen.cc" |
| 6824 |
|
| { |
| 6825 |
|
| SV * RETVALSV; |
| 6826 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 6827 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 6828 |
1 |
| ST(0) = RETVALSV; |
| 6829 |
|
| } |
| 6830 |
7 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
|
| 6831 |
1 |
| XSRETURN(1); |
| 6832 |
2 |
| }); } |
| 6833 |
|
| |
| 6834 |
|
| |
| 6835 |
|
| |
| 6836 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_isPointInRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_isPointInRing) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6837 |
|
| { |
| 6838 |
1 |
| dVAR; dXSARGS; |
| 6839 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6840 |
0 |
| croak_xs_usage(cv, "p, ring"); |
| 6841 |
|
| { |
| 6842 |
|
| bool RETVAL; |
| 6843 |
1 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
1 |
0 |
1 |
|
| 6844 |
|
| ; |
| 6845 |
1 |
▶ | Array ring = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array ring = ST(1); |
1 |
0 |
1 |
|
| 6846 |
1 |
▶ | if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 6847 |
|
| ; |
| 6848 |
|
| #line 95 "./xsi/algorithm.xsi" |
| 6849 |
|
| auto seq = Helper::convert_coords(ring); |
| 6850 |
|
| RETVAL = CGAlgorithms::isPointInRing(p, &seq); |
| 6851 |
|
| #line 6852 "Geos_xsgen.cc" |
| 6852 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 6853 |
1 |
| } |
| 6854 |
1 |
| XSRETURN(1); |
| 6855 |
1 |
| }); } |
| 6856 |
|
| |
| 6857 |
|
| |
| 6858 |
|
| |
| 6859 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_locatePointInRing) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_locatePointInRing) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6860 |
|
| { |
| 6861 |
1 |
| dVAR; dXSARGS; |
| 6862 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6863 |
0 |
| croak_xs_usage(cv, "p, ring"); |
| 6864 |
|
| { |
| 6865 |
|
| int RETVAL; |
| 6866 |
1 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
| dXSTARG; |
0 |
0 |
0 |
|
| 6867 |
1 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
1 |
0 |
1 |
|
| 6868 |
|
| ; |
| 6869 |
1 |
▶ | Array ring = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array ring = ST(1); |
1 |
0 |
1 |
|
| 6870 |
1 |
▶ | if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!ring && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 6871 |
|
| ; |
| 6872 |
|
| #line 100 "./xsi/algorithm.xsi" |
| 6873 |
|
| auto seq = Helper::convert_coords(ring); |
| 6874 |
|
| RETVAL = CGAlgorithms::locatePointInRing(p, seq); |
| 6875 |
|
| #line 6876 "Geos_xsgen.cc" |
| 6876 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
| TARGi((IV)RETVAL, 1); |
1 |
0 |
1 |
|
| 6877 |
1 |
| ST(0) = TARG; |
| 6878 |
1 |
| } |
| 6879 |
1 |
| XSRETURN(1); |
| 6880 |
1 |
| }); } |
| 6881 |
|
| |
| 6882 |
|
| |
| 6883 |
|
| |
| 6884 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_isOnLine) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_isOnLine) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6885 |
|
| { |
| 6886 |
1 |
| dVAR; dXSARGS; |
| 6887 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 6888 |
0 |
| croak_xs_usage(cv, "p, line"); |
| 6889 |
|
| { |
| 6890 |
|
| bool RETVAL; |
| 6891 |
1 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
1 |
0 |
1 |
|
| 6892 |
|
| ; |
| 6893 |
1 |
▶ | Array line = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array line = ST(1); |
1 |
0 |
1 |
|
| 6894 |
1 |
▶ | if (!line && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!line && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!line && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!line && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 6895 |
|
| ; |
| 6896 |
|
| #line 105 "./xsi/algorithm.xsi" |
| 6897 |
|
| auto seq = Helper::convert_coords(line); |
| 6898 |
|
| RETVAL = CGAlgorithms::isPointInRing(p, &seq); |
| 6899 |
|
| #line 6900 "Geos_xsgen.cc" |
| 6900 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6901 |
1 |
| } |
| 6902 |
1 |
| XSRETURN(1); |
| 6903 |
1 |
| }); } |
| 6904 |
|
| |
| 6905 |
|
| |
| 6906 |
|
| |
| 6907 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_isCCW) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_isCCW) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6908 |
|
| { |
| 6909 |
1 |
| dVAR; dXSARGS; |
| 6910 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 6911 |
0 |
| croak_xs_usage(cv, "ring"); |
| 6912 |
|
| { |
| 6913 |
|
| bool RETVAL; |
| 6914 |
1 |
▶ | Array ring = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array ring = ST(0); |
1 |
0 |
1 |
|
| 6915 |
1 |
▶ | if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 6916 |
|
| ; |
| 6917 |
|
| #line 110 "./xsi/algorithm.xsi" |
| 6918 |
|
| auto seq = Helper::convert_coords(ring); |
| 6919 |
|
| RETVAL = CGAlgorithms::isCCW(&seq); |
| 6920 |
|
| #line 6921 "Geos_xsgen.cc" |
| 6921 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 6922 |
1 |
| } |
| 6923 |
1 |
| XSRETURN(1); |
| 6924 |
1 |
| }); } |
| 6925 |
|
| |
| 6926 |
|
| |
| 6927 |
|
| |
| 6928 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_computeOrientation) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_computeOrientation) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6929 |
|
| { |
| 6930 |
1 |
| dVAR; dXSARGS; |
| 6931 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6932 |
0 |
| croak_xs_usage(cv, "p1, p2, q"); |
| 6933 |
|
| { |
| 6934 |
|
| int RETVAL; |
| 6935 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6936 |
1 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(0)); |
| 6937 |
|
| ; |
| 6938 |
1 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(1)); |
| 6939 |
|
| ; |
| 6940 |
1 |
| Coordinate& q = xs::in<Coordinate&>(ST(2)); |
| 6941 |
|
| ; |
| 6942 |
|
| #line 115 "./xsi/algorithm.xsi" |
| 6943 |
|
| RETVAL = CGAlgorithms::computeOrientation(p1, p2, q); |
| 6944 |
|
| #line 6945 "Geos_xsgen.cc" |
| 6945 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 6946 |
1 |
| ST(0) = TARG; |
| 6947 |
|
| } |
| 6948 |
1 |
| XSRETURN(1); |
| 6949 |
1 |
| }); } |
| 6950 |
|
| |
| 6951 |
|
| |
| 6952 |
|
| |
| 6953 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_distancePointLine) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_distancePointLine) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6954 |
|
| { |
| 6955 |
1 |
| dVAR; dXSARGS; |
| 6956 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6957 |
0 |
| croak_xs_usage(cv, "p, A, B"); |
| 6958 |
|
| { |
| 6959 |
|
| double RETVAL; |
| 6960 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6961 |
1 |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
| 6962 |
|
| ; |
| 6963 |
1 |
| Coordinate& A = xs::in<Coordinate&>(ST(1)); |
| 6964 |
|
| ; |
| 6965 |
1 |
| Coordinate& B = xs::in<Coordinate&>(ST(2)); |
| 6966 |
|
| ; |
| 6967 |
|
| #line 119 "./xsi/algorithm.xsi" |
| 6968 |
|
| RETVAL = CGAlgorithms::distancePointLine(p, A, B); |
| 6969 |
|
| #line 6970 "Geos_xsgen.cc" |
| 6970 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6971 |
1 |
| ST(0) = TARG; |
| 6972 |
|
| } |
| 6973 |
1 |
| XSRETURN(1); |
| 6974 |
1 |
| }); } |
| 6975 |
|
| |
| 6976 |
|
| |
| 6977 |
|
| |
| 6978 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_distancePointLinePerpendicular) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_distancePointLinePerpendicular) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 6979 |
|
| { |
| 6980 |
1 |
| dVAR; dXSARGS; |
| 6981 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 6982 |
0 |
| croak_xs_usage(cv, "p, A, B"); |
| 6983 |
|
| { |
| 6984 |
|
| double RETVAL; |
| 6985 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 6986 |
1 |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
| 6987 |
|
| ; |
| 6988 |
1 |
| Coordinate& A = xs::in<Coordinate&>(ST(1)); |
| 6989 |
|
| ; |
| 6990 |
1 |
| Coordinate& B = xs::in<Coordinate&>(ST(2)); |
| 6991 |
|
| ; |
| 6992 |
|
| #line 123 "./xsi/algorithm.xsi" |
| 6993 |
|
| RETVAL = CGAlgorithms::distancePointLinePerpendicular(p, A, B); |
| 6994 |
|
| #line 6995 "Geos_xsgen.cc" |
| 6995 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 6996 |
1 |
| ST(0) = TARG; |
| 6997 |
|
| } |
| 6998 |
1 |
| XSRETURN(1); |
| 6999 |
1 |
| }); } |
| 7000 |
|
| |
| 7001 |
|
| |
| 7002 |
|
| |
| 7003 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_distanceLineLine) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_distanceLineLine) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7004 |
|
| { |
| 7005 |
1 |
| dVAR; dXSARGS; |
| 7006 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 7007 |
0 |
| croak_xs_usage(cv, "A, B, C, D"); |
| 7008 |
|
| { |
| 7009 |
|
| double RETVAL; |
| 7010 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7011 |
1 |
| Coordinate& A = xs::in<Coordinate&>(ST(0)); |
| 7012 |
|
| ; |
| 7013 |
1 |
| Coordinate& B = xs::in<Coordinate&>(ST(1)); |
| 7014 |
|
| ; |
| 7015 |
1 |
| Coordinate& C = xs::in<Coordinate&>(ST(2)); |
| 7016 |
|
| ; |
| 7017 |
1 |
| Coordinate& D = xs::in<Coordinate&>(ST(3)); |
| 7018 |
|
| ; |
| 7019 |
|
| #line 127 "./xsi/algorithm.xsi" |
| 7020 |
|
| RETVAL = CGAlgorithms::distanceLineLine(A, B, C, D); |
| 7021 |
|
| #line 7022 "Geos_xsgen.cc" |
| 7022 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 7023 |
1 |
| ST(0) = TARG; |
| 7024 |
|
| } |
| 7025 |
1 |
| XSRETURN(1); |
| 7026 |
1 |
| }); } |
| 7027 |
|
| |
| 7028 |
|
| |
| 7029 |
|
| |
| 7030 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_signedArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_signedArea) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7031 |
|
| { |
| 7032 |
1 |
| dVAR; dXSARGS; |
| 7033 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7034 |
0 |
| croak_xs_usage(cv, "ring"); |
| 7035 |
|
| { |
| 7036 |
|
| double RETVAL; |
| 7037 |
1 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7038 |
1 |
▶ | Array ring = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array ring = ST(0); |
1 |
0 |
1 |
|
| 7039 |
1 |
▶ | if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!ring && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 7040 |
|
| ; |
| 7041 |
|
| #line 131 "./xsi/algorithm.xsi" |
| 7042 |
|
| auto seq = Helper::convert_coords(ring); |
| 7043 |
|
| RETVAL = CGAlgorithms::signedArea(&seq); |
| 7044 |
|
| #line 7045 "Geos_xsgen.cc" |
| 7045 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
| TARGn((double)RETVAL, 1); |
1 |
0 |
1 |
|
| 7046 |
1 |
| ST(0) = TARG; |
| 7047 |
1 |
| } |
| 7048 |
1 |
| XSRETURN(1); |
| 7049 |
1 |
| }); } |
| 7050 |
|
| |
| 7051 |
|
| |
| 7052 |
|
| |
| 7053 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_length) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_length) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7054 |
|
| { |
| 7055 |
1 |
| dVAR; dXSARGS; |
| 7056 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7057 |
0 |
| croak_xs_usage(cv, "pts"); |
| 7058 |
|
| { |
| 7059 |
|
| double RETVAL; |
| 7060 |
1 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7061 |
1 |
▶ | Array pts = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array pts = ST(0); |
1 |
0 |
1 |
|
| 7062 |
1 |
▶ | if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 7063 |
|
| ; |
| 7064 |
|
| #line 136 "./xsi/algorithm.xsi" |
| 7065 |
|
| auto seq = Helper::convert_coords(pts); |
| 7066 |
|
| RETVAL = CGAlgorithms::length(&seq); |
| 7067 |
|
| #line 7068 "Geos_xsgen.cc" |
| 7068 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
| TARGn((double)RETVAL, 1); |
1 |
0 |
1 |
|
| 7069 |
1 |
| ST(0) = TARG; |
| 7070 |
1 |
| } |
| 7071 |
1 |
| XSRETURN(1); |
| 7072 |
1 |
| }); } |
| 7073 |
|
| |
| 7074 |
|
| |
| 7075 |
|
| |
| 7076 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_orientationIndex) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_orientationIndex) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7077 |
|
| { |
| 7078 |
1 |
| dVAR; dXSARGS; |
| 7079 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 7080 |
0 |
| croak_xs_usage(cv, "p1, p2, q"); |
| 7081 |
|
| { |
| 7082 |
|
| int RETVAL; |
| 7083 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7084 |
1 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(0)); |
| 7085 |
|
| ; |
| 7086 |
1 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(1)); |
| 7087 |
|
| ; |
| 7088 |
1 |
| Coordinate& q = xs::in<Coordinate&>(ST(2)); |
| 7089 |
|
| ; |
| 7090 |
|
| #line 141 "./xsi/algorithm.xsi" |
| 7091 |
|
| RETVAL = CGAlgorithms::computeOrientation(p1, p2, q); |
| 7092 |
|
| #line 7093 "Geos_xsgen.cc" |
| 7093 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 7094 |
1 |
| ST(0) = TARG; |
| 7095 |
|
| } |
| 7096 |
1 |
| XSRETURN(1); |
| 7097 |
1 |
| }); } |
| 7098 |
|
| |
| 7099 |
|
| |
| 7100 |
|
| |
| 7101 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_getIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_getIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7102 |
|
| { |
| 7103 |
1 |
| dVAR; dXSARGS; |
| 7104 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 7105 |
0 |
| croak_xs_usage(cv, "p00, p01, p10, p11"); |
| 7106 |
|
| { |
| 7107 |
|
| Coordinate * RETVAL; |
| 7108 |
1 |
▶ | Coordinate& p00 = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p00 = xs::in<Coordinate&>(ST(0)); |
1 |
0 |
1 |
|
| 7109 |
|
| ; |
| 7110 |
1 |
▶ | Coordinate& p01 = xs::in<Coordinate&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p01 = xs::in<Coordinate&>(ST(1)); |
1 |
0 |
1 |
|
| 7111 |
|
| ; |
| 7112 |
1 |
▶ | Coordinate& p10 = xs::in<Coordinate&>(ST(2)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p10 = xs::in<Coordinate&>(ST(2)); |
1 |
0 |
1 |
|
| 7113 |
|
| ; |
| 7114 |
1 |
▶ | Coordinate& p11 = xs::in<Coordinate&>(ST(3)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p11 = xs::in<Coordinate&>(ST(3)); |
1 |
0 |
1 |
|
| 7115 |
|
| ; |
| 7116 |
|
| #line 145 "./xsi/algorithm.xsi" |
| 7117 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7118 |
|
| //auto& c = CentralEndpointIntersector::getIntersection(p00, p01, p10, p11); |
| 7119 |
|
| // ^ buggy implementation in 3.6.3, as it returns dangling reference; |
| 7120 |
|
| CentralEndpointIntersector intor(p00, p01, p10, p11); |
| 7121 |
|
| auto& c = intor.getIntersection(); |
| 7122 |
|
| RETVAL = new Coordinate(c); |
| 7123 |
|
| #line 7124 "Geos_xsgen.cc" |
| 7124 |
|
| { |
| 7125 |
|
| SV * RETVALSV; |
| 7126 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7127 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7128 |
1 |
| ST(0) = RETVALSV; |
| 7129 |
|
| } |
| 7130 |
1 |
| } |
| 7131 |
1 |
| XSRETURN(1); |
| 7132 |
1 |
| }); } |
| 7133 |
|
| |
| 7134 |
|
| |
| 7135 |
|
| |
| 7136 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_convexHull) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_convexHull) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7137 |
|
| { |
| 7138 |
2 |
| dVAR; dXSARGS; |
| 7139 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 7140 |
0 |
| croak_xs_usage(cv, "newGeometry"); |
| 7141 |
|
| { |
| 7142 |
2 |
| Sv RETVAL; |
| 7143 |
2 |
▶ | Geometry& newGeometry = xs::in<Geometry&>(ST(0)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& newGeometry = xs::in<Geometry&>(ST(0)); |
1 |
1 |
2 |
| Geometry& newGeometry = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 7144 |
|
| ; |
| 7145 |
|
| #line 153 "./xsi/algorithm.xsi" |
| 7146 |
|
| auto ch = ConvexHull(&newGeometry); |
| 7147 |
|
| RETVAL = Helper::uplift(ch.getConvexHull()); |
| 7148 |
|
| #line 7149 "Geos_xsgen.cc" |
| 7149 |
|
| { |
| 7150 |
|
| SV * RETVALSV; |
| 7151 |
1 |
| RETVALSV = NULL; |
| 7152 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 7153 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 7154 |
0 |
| else switch (RETVAL.type()) { |
| 7155 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7156 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7157 |
0 |
| case SVt_PVCV: |
| 7158 |
|
| case SVt_PVIO: |
| 7159 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 7160 |
0 |
| break; |
| 7161 |
0 |
| default: throw "unknown type of Sv to return"; |
| 7162 |
|
| } |
| 7163 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7164 |
1 |
| ST(0) = RETVALSV; |
| 7165 |
|
| } |
| 7166 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 7167 |
1 |
| XSRETURN(1); |
| 7168 |
1 |
| }); } |
| 7169 |
|
| |
| 7170 |
|
| |
| 7171 |
|
| |
| 7172 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointArea) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7173 |
|
| { |
| 7174 |
2 |
| dVAR; dXSARGS; |
| 7175 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 7176 |
0 |
| croak_xs_usage(cv, "g"); |
| 7177 |
|
| { |
| 7178 |
|
| Coordinate * RETVAL; |
| 7179 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
1 |
2 |
|
| 7180 |
|
| ; |
| 7181 |
|
| #line 158 "./xsi/algorithm.xsi" |
| 7182 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7183 |
|
| InteriorPointArea ip(&g); |
| 7184 |
|
| Coordinate c; |
| 7185 |
|
| if (ip.getInteriorPoint(c)) RETVAL = new Coordinate(c); |
| 7186 |
|
| else XSRETURN_UNDEF; |
| 7187 |
|
| #line 7188 "Geos_xsgen.cc" |
| 7188 |
|
| { |
| 7189 |
|
| SV * RETVALSV; |
| 7190 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7191 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7192 |
1 |
| ST(0) = RETVALSV; |
| 7193 |
|
| } |
| 7194 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 7195 |
1 |
| XSRETURN(1); |
| 7196 |
1 |
| }); } |
| 7197 |
|
| |
| 7198 |
|
| |
| 7199 |
|
| |
| 7200 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointLine) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointLine) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7201 |
|
| { |
| 7202 |
2 |
| dVAR; dXSARGS; |
| 7203 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 7204 |
0 |
| croak_xs_usage(cv, "g"); |
| 7205 |
|
| { |
| 7206 |
|
| Coordinate * RETVAL; |
| 7207 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
1 |
2 |
|
| 7208 |
|
| ; |
| 7209 |
|
| #line 165 "./xsi/algorithm.xsi" |
| 7210 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7211 |
|
| InteriorPointLine ip(&g); |
| 7212 |
|
| Coordinate c; |
| 7213 |
|
| if (ip.getInteriorPoint(c)) RETVAL = new Coordinate(c); |
| 7214 |
|
| else XSRETURN_UNDEF; |
| 7215 |
|
| #line 7216 "Geos_xsgen.cc" |
| 7216 |
|
| { |
| 7217 |
|
| SV * RETVALSV; |
| 7218 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7219 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7220 |
1 |
| ST(0) = RETVALSV; |
| 7221 |
|
| } |
| 7222 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 7223 |
1 |
| XSRETURN(1); |
| 7224 |
1 |
| }); } |
| 7225 |
|
| |
| 7226 |
|
| |
| 7227 |
|
| |
| 7228 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_interiorPointPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7229 |
|
| { |
| 7230 |
2 |
| dVAR; dXSARGS; |
| 7231 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 7232 |
0 |
| croak_xs_usage(cv, "g"); |
| 7233 |
|
| { |
| 7234 |
|
| Coordinate * RETVAL; |
| 7235 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
1 |
2 |
|
| 7236 |
|
| ; |
| 7237 |
|
| #line 172 "./xsi/algorithm.xsi" |
| 7238 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7239 |
|
| InteriorPointPoint ip(&g); |
| 7240 |
|
| Coordinate c; |
| 7241 |
|
| if (ip.getInteriorPoint(c)) RETVAL = new Coordinate(c); |
| 7242 |
|
| else XSRETURN_UNDEF; |
| 7243 |
|
| #line 7244 "Geos_xsgen.cc" |
| 7244 |
|
| { |
| 7245 |
|
| SV * RETVALSV; |
| 7246 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7247 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7248 |
1 |
| ST(0) = RETVALSV; |
| 7249 |
|
| } |
| 7250 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 7251 |
1 |
| XSRETURN(1); |
| 7252 |
1 |
| }); } |
| 7253 |
|
| |
| 7254 |
|
| |
| 7255 |
|
| |
| 7256 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_locate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_locate) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7257 |
|
| { |
| 7258 |
2 |
| dVAR; dXSARGS; |
| 7259 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 7260 |
0 |
| croak_xs_usage(cv, "p, geom"); |
| 7261 |
|
| { |
| 7262 |
|
| int RETVAL; |
| 7263 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7264 |
2 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
2 |
0 |
2 |
|
| 7265 |
|
| ; |
| 7266 |
2 |
▶ | Geometry& geom = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
1 |
1 |
2 |
|
| 7267 |
|
| ; |
| 7268 |
|
| #line 179 "./xsi/algorithm.xsi" |
| 7269 |
|
| PointLocator pl; |
| 7270 |
|
| RETVAL = pl.locate(p, &geom); |
| 7271 |
|
| #line 7272 "Geos_xsgen.cc" |
| 7272 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
| TARGi((IV)RETVAL, 1); |
1 |
0 |
1 |
|
| 7273 |
1 |
| ST(0) = TARG; |
| 7274 |
1 |
| } |
| 7275 |
1 |
| XSRETURN(1); |
| 7276 |
1 |
| }); } |
| 7277 |
|
| |
| 7278 |
|
| |
| 7279 |
|
| |
| 7280 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_intersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_intersects) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7281 |
|
| { |
| 7282 |
2 |
| dVAR; dXSARGS; |
| 7283 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 7284 |
0 |
| croak_xs_usage(cv, "p, geom"); |
| 7285 |
|
| { |
| 7286 |
|
| bool RETVAL; |
| 7287 |
2 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
2 |
0 |
2 |
|
| 7288 |
|
| ; |
| 7289 |
2 |
▶ | Geometry& geom = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
1 |
1 |
2 |
|
| 7290 |
|
| ; |
| 7291 |
|
| #line 184 "./xsi/algorithm.xsi" |
| 7292 |
|
| PointLocator pl; |
| 7293 |
|
| RETVAL = pl.intersects(p, &geom); |
| 7294 |
|
| #line 7295 "Geos_xsgen.cc" |
| 7295 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 7296 |
1 |
| } |
| 7297 |
1 |
| XSRETURN(1); |
| 7298 |
1 |
| }); } |
| 7299 |
|
| |
| 7300 |
|
| |
| 7301 |
|
| |
| 7302 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_signOfDet2x2) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_signOfDet2x2) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7303 |
|
| { |
| 7304 |
1 |
| dVAR; dXSARGS; |
| 7305 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 7306 |
0 |
| croak_xs_usage(cv, "x1, y1, x2, y2"); |
| 7307 |
|
| { |
| 7308 |
|
| int RETVAL; |
| 7309 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7310 |
1 |
| double x1 = (double)SvNV(ST(0)) |
| 7311 |
|
| ; |
| 7312 |
1 |
| double y1 = (double)SvNV(ST(1)) |
| 7313 |
|
| ; |
| 7314 |
1 |
| double x2 = (double)SvNV(ST(2)) |
| 7315 |
|
| ; |
| 7316 |
1 |
| double y2 = (double)SvNV(ST(3)) |
| 7317 |
|
| ; |
| 7318 |
|
| #line 189 "./xsi/algorithm.xsi" |
| 7319 |
|
| RETVAL = RobustDeterminant::signOfDet2x2(x1, y1, x2, y2); |
| 7320 |
|
| #line 7321 "Geos_xsgen.cc" |
| 7321 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 7322 |
1 |
| ST(0) = TARG; |
| 7323 |
|
| } |
| 7324 |
1 |
| XSRETURN(1); |
| 7325 |
1 |
| }); } |
| 7326 |
|
| |
| 7327 |
|
| |
| 7328 |
|
| |
| 7329 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_locateIndexedPointInArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_locateIndexedPointInArea) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7330 |
|
| { |
| 7331 |
2 |
| dVAR; dXSARGS; |
| 7332 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 7333 |
0 |
| croak_xs_usage(cv, "p, geom"); |
| 7334 |
|
| { |
| 7335 |
|
| int RETVAL; |
| 7336 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7337 |
2 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
1 |
1 |
2 |
|
| 7338 |
|
| ; |
| 7339 |
1 |
▶ | Geometry& geom = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 7340 |
|
| ; |
| 7341 |
|
| #line 193 "./xsi/algorithm.xsi" |
| 7342 |
|
| locate::IndexedPointInAreaLocator locator(geom); |
| 7343 |
|
| RETVAL = locator.locate(&p); |
| 7344 |
|
| #line 7345 "Geos_xsgen.cc" |
| 7345 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
| TARGi((IV)RETVAL, 1); |
1 |
0 |
1 |
|
| 7346 |
1 |
| ST(0) = TARG; |
| 7347 |
1 |
| } |
| 7348 |
1 |
| XSRETURN(1); |
| 7349 |
1 |
| }); } |
| 7350 |
|
| |
| 7351 |
|
| |
| 7352 |
|
| |
| 7353 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm_locateSimplePointInArea) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm_locateSimplePointInArea) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7354 |
|
| { |
| 7355 |
3 |
| dVAR; dXSARGS; |
| 7356 |
3 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
3 |
3 |
|
| 7357 |
0 |
| croak_xs_usage(cv, "p, geom"); |
| 7358 |
|
| { |
| 7359 |
|
| int RETVAL; |
| 7360 |
3 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7361 |
3 |
▶ | Coordinate& p = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p = xs::in<Coordinate&>(ST(0)); |
2 |
1 |
3 |
|
| 7362 |
|
| ; |
| 7363 |
2 |
▶ | Geometry& geom = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& geom = xs::in<Geometry&>(ST(1)); |
1 |
1 |
2 |
|
| 7364 |
|
| ; |
| 7365 |
|
| #line 198 "./xsi/algorithm.xsi" |
| 7366 |
|
| locate::SimplePointInAreaLocator locator(&geom); |
| 7367 |
|
| RETVAL = locator.locate(&p); |
| 7368 |
|
| #line 7369 "Geos_xsgen.cc" |
| 7369 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
| TARGi((IV)RETVAL, 1); |
1 |
0 |
1 |
|
| 7370 |
1 |
| ST(0) = TARG; |
| 7371 |
1 |
| } |
| 7372 |
1 |
| XSRETURN(1); |
| 7373 |
1 |
| }); } |
| 7374 |
|
| |
| 7375 |
|
| |
| 7376 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/algorithm.xsi' */ |
| 7377 |
|
| |
| 7378 |
|
| |
| 7379 |
|
| /* INCLUDE: Including 'xsi/algorithm/HCoordinate.xsi' from 'Geos.xs' */ |
| 7380 |
|
| |
| 7381 |
|
| |
| 7382 |
|
| |
| 7383 |
10 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_new) { xs::throw_guard(cv, [=]() |
5 |
0 |
5 |
|
| 7384 |
|
| { |
| 7385 |
5 |
| dVAR; dXSARGS; |
| 7386 |
5 |
▶ | if (items < 2 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 5) |
5 |
0 |
5 |
| if (items < 2 || items > 5) |
0 |
5 |
5 |
|
| 7387 |
0 |
| croak_xs_usage(cv, "_____unused11, arg1, arg2= NULL, arg3= NULL, arg4= NULL"); |
| 7388 |
|
| { |
| 7389 |
|
| HCoordinate * RETVAL; |
| 7390 |
5 |
| SV* arg1 = ST(1) |
| 7391 |
|
| ; |
| 7392 |
|
| SV* arg2; |
| 7393 |
|
| SV* arg3; |
| 7394 |
|
| SV* arg4; |
| 7395 |
|
| |
| 7396 |
5 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
4 |
5 |
|
| 7397 |
1 |
| arg2 = NULL; |
| 7398 |
|
| else { |
| 7399 |
4 |
| arg2 = ST(2) |
| 7400 |
|
| ; |
| 7401 |
|
| } |
| 7402 |
|
| |
| 7403 |
5 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
3 |
2 |
5 |
|
| 7404 |
3 |
| arg3 = NULL; |
| 7405 |
|
| else { |
| 7406 |
2 |
| arg3 = ST(3) |
| 7407 |
|
| ; |
| 7408 |
|
| } |
| 7409 |
|
| |
| 7410 |
5 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
4 |
1 |
5 |
|
| 7411 |
4 |
| arg4 = NULL; |
| 7412 |
|
| else { |
| 7413 |
1 |
| arg4 = ST(4) |
| 7414 |
|
| ; |
| 7415 |
|
| } |
| 7416 |
|
| #line 5 "./xsi/algorithm/HCoordinate.xsi" |
| 7417 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7418 |
|
| if (!arg2) { |
| 7419 |
|
| auto c = xs::in<Coordinate*>(arg1); |
| 7420 |
|
| RETVAL = new HCoordinate(*c); |
| 7421 |
|
| } |
| 7422 |
|
| else if(!arg3) { |
| 7423 |
|
| Object obj1 {arg1}, obj2{arg2}; |
| 7424 |
|
| if(!obj1) throw("wrong argument"); |
| 7425 |
|
| if(!obj2) throw("wrong argument"); |
| 7426 |
|
| if (obj1.stash().name() == "Geo::Geos::Algorithm::HCoordinate") { |
| 7427 |
|
| auto& c1 = xs::in<HCoordinate&>(obj1); |
| 7428 |
|
| auto& c2 = xs::in<HCoordinate&>(obj1); |
| 7429 |
|
| RETVAL = new HCoordinate(c1, c2); |
| 7430 |
|
| } |
| 7431 |
|
| else { |
| 7432 |
|
| auto& c1 = xs::in<Coordinate&>(obj1); |
| 7433 |
|
| auto& c2 = xs::in<Coordinate&>(obj1); |
| 7434 |
|
| RETVAL = new HCoordinate(c1, c2); |
| 7435 |
|
| } |
| 7436 |
|
| } |
| 7437 |
|
| else if(!arg4) { |
| 7438 |
|
| if(!arg1) throw("undef not allowed"); |
| 7439 |
|
| if(!arg2) throw("undef not allowed"); |
| 7440 |
|
| if(!arg3) throw("undef not allowed"); |
| 7441 |
|
| RETVAL = new HCoordinate(Simple(arg1), Simple(arg2), Simple(arg3)); |
| 7442 |
|
| } |
| 7443 |
|
| else { |
| 7444 |
|
| auto& c1 = xs::in<Coordinate&>(arg1); |
| 7445 |
|
| auto& c2 = xs::in<Coordinate&>(arg2); |
| 7446 |
|
| auto& c3 = xs::in<Coordinate&>(arg3); |
| 7447 |
|
| auto& c4 = xs::in<Coordinate&>(arg4); |
| 7448 |
|
| RETVAL = new HCoordinate(c1, c2, c3, c4); |
| 7449 |
|
| } |
| 7450 |
|
| #line 7451 "Geos_xsgen.cc" |
| 7451 |
|
| { |
| 7452 |
|
| SV * RETVALSV; |
| 7453 |
5 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
5 |
0 |
5 |
|
| 7454 |
5 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
5 |
0 |
5 |
|
| 7455 |
5 |
| ST(0) = RETVALSV; |
| 7456 |
|
| } |
| 7457 |
5 |
| } |
| 7458 |
5 |
| XSRETURN(1); |
| 7459 |
5 |
| }); } |
| 7460 |
|
| |
| 7461 |
|
| |
| 7462 |
|
| |
| 7463 |
16 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_x) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_x) { xs::throw_guard(cv, [=]() |
8 |
0 |
8 |
|
| 7464 |
|
| { |
| 7465 |
8 |
| dVAR; dXSARGS; |
| 7466 |
8 |
| dXSI32; |
| 7467 |
8 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
8 |
0 |
8 |
| if (items < 1 || items > 2) |
0 |
8 |
8 |
|
| 7468 |
0 |
| croak_xs_usage(cv, "THIS, newval= NULL"); |
| 7469 |
|
| { |
| 7470 |
|
| double RETVAL; |
| 7471 |
8 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
8 |
0 |
8 |
|
| 7472 |
8 |
▶ | HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
8 |
8 |
|
| 7473 |
|
| ; |
| 7474 |
|
| SV* newval; |
| 7475 |
|
| |
| 7476 |
8 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
8 |
0 |
8 |
|
| 7477 |
8 |
| newval = NULL; |
| 7478 |
|
| else { |
| 7479 |
0 |
| newval = ST(1) |
| 7480 |
|
| ; |
| 7481 |
|
| } |
| 7482 |
|
| #line 40 "./xsi/algorithm/HCoordinate.xsi" |
| 7483 |
|
| double* val; |
| 7484 |
|
| switch (ix) { |
| 7485 |
|
| case 0: val = &THIS->x; break; |
| 7486 |
|
| case 1: val = &THIS->y; break; |
| 7487 |
|
| default: val = &THIS->w; break; |
| 7488 |
|
| } |
| 7489 |
|
| if (newval) { |
| 7490 |
|
| *val = SvNV(newval); |
| 7491 |
|
| } |
| 7492 |
|
| RETVAL = *val; |
| 7493 |
|
| #line 7494 "Geos_xsgen.cc" |
| 7494 |
8 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
8 |
8 |
|
| 7495 |
8 |
| ST(0) = TARG; |
| 7496 |
|
| } |
| 7497 |
8 |
| XSRETURN(1); |
| 7498 |
8 |
| }); } |
| 7499 |
|
| |
| 7500 |
|
| |
| 7501 |
|
| |
| 7502 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_getCoordinate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_getCoordinate) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7503 |
|
| { |
| 7504 |
1 |
| dVAR; dXSARGS; |
| 7505 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7506 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 7507 |
|
| { |
| 7508 |
|
| Coordinate * RETVAL; |
| 7509 |
1 |
▶ | HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 7510 |
|
| ; |
| 7511 |
|
| #line 53 "./xsi/algorithm/HCoordinate.xsi" |
| 7512 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7513 |
|
| Coordinate c; |
| 7514 |
|
| THIS->getCoordinate(c); |
| 7515 |
|
| RETVAL = new Coordinate(c); |
| 7516 |
|
| #line 7517 "Geos_xsgen.cc" |
| 7517 |
|
| { |
| 7518 |
|
| SV * RETVALSV; |
| 7519 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7520 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7521 |
1 |
| ST(0) = RETVALSV; |
| 7522 |
|
| } |
| 7523 |
1 |
| } |
| 7524 |
1 |
| XSRETURN(1); |
| 7525 |
1 |
| }); } |
| 7526 |
|
| |
| 7527 |
|
| |
| 7528 |
|
| |
| 7529 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_intersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_intersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7530 |
|
| { |
| 7531 |
1 |
| dVAR; dXSARGS; |
| 7532 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 7533 |
0 |
| croak_xs_usage(cv, "p1, p2, q1, q2"); |
| 7534 |
|
| { |
| 7535 |
|
| Coordinate * RETVAL; |
| 7536 |
1 |
▶ | Coordinate& p1 = xs::in<Coordinate&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p1 = xs::in<Coordinate&>(ST(0)); |
1 |
0 |
1 |
|
| 7537 |
|
| ; |
| 7538 |
1 |
▶ | Coordinate& p2 = xs::in<Coordinate&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& p2 = xs::in<Coordinate&>(ST(1)); |
1 |
0 |
1 |
|
| 7539 |
|
| ; |
| 7540 |
1 |
▶ | Coordinate& q1 = xs::in<Coordinate&>(ST(2)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& q1 = xs::in<Coordinate&>(ST(2)); |
1 |
0 |
1 |
|
| 7541 |
|
| ; |
| 7542 |
1 |
▶ | Coordinate& q2 = xs::in<Coordinate&>(ST(3)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& q2 = xs::in<Coordinate&>(ST(3)); |
1 |
0 |
1 |
|
| 7543 |
|
| ; |
| 7544 |
|
| #line 60 "./xsi/algorithm/HCoordinate.xsi" |
| 7545 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7546 |
|
| Coordinate c; |
| 7547 |
|
| HCoordinate::intersection(p1, p2, q1, q2, c); |
| 7548 |
|
| RETVAL = new Coordinate(c); |
| 7549 |
|
| #line 7550 "Geos_xsgen.cc" |
| 7550 |
|
| { |
| 7551 |
|
| SV * RETVALSV; |
| 7552 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7553 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7554 |
1 |
| ST(0) = RETVALSV; |
| 7555 |
|
| } |
| 7556 |
1 |
| } |
| 7557 |
1 |
| XSRETURN(1); |
| 7558 |
1 |
| }); } |
| 7559 |
|
| |
| 7560 |
|
| |
| 7561 |
|
| |
| 7562 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_toString) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 7563 |
|
| { |
| 7564 |
6 |
| dVAR; dXSARGS; |
| 7565 |
6 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
6 |
6 |
|
| 7566 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 7567 |
|
| { |
| 7568 |
6 |
| std::string RETVAL; |
| 7569 |
6 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
5 |
6 |
| dXSTARG; |
5 |
0 |
5 |
|
| 7570 |
6 |
▶ | HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| HCoordinate* THIS = xs::in<HCoordinate *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 7571 |
|
| ; |
| 7572 |
|
| #line 66 "./xsi/algorithm/HCoordinate.xsi" |
| 7573 |
|
| std::ostringstream out; |
| 7574 |
|
| out << *THIS; |
| 7575 |
|
| RETVAL = out.str(); |
| 7576 |
|
| #line 7577 "Geos_xsgen.cc" |
| 7577 |
6 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
6 |
0 |
6 |
|
| 7578 |
6 |
| ST(0) = TARG; |
| 7579 |
6 |
| } |
| 7580 |
6 |
| XSRETURN(1); |
| 7581 |
6 |
| }); } |
| 7582 |
|
| |
| 7583 |
|
| |
| 7584 |
|
| |
| 7585 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__HCoordinate_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 7586 |
|
| { |
| 7587 |
0 |
| dVAR; dXSARGS; |
| 7588 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 7589 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 7590 |
|
| { |
| 7591 |
|
| int RETVAL; |
| 7592 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7593 |
|
| #line 71 "./xsi/algorithm/HCoordinate.xsi" |
| 7594 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 7595 |
|
| #line 7596 "Geos_xsgen.cc" |
| 7596 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 7597 |
0 |
| ST(0) = TARG; |
| 7598 |
|
| } |
| 7599 |
0 |
| XSRETURN(1); |
| 7600 |
0 |
| }); } |
| 7601 |
|
| |
| 7602 |
|
| |
| 7603 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/algorithm/HCoordinate.xsi' */ |
| 7604 |
|
| |
| 7605 |
|
| |
| 7606 |
|
| /* INCLUDE: Including 'xsi/algorithm/MinimumDiameter.xsi' from 'Geos.xs' */ |
| 7607 |
|
| |
| 7608 |
|
| |
| 7609 |
|
| |
| 7610 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 7611 |
|
| { |
| 7612 |
2 |
| dVAR; dXSARGS; |
| 7613 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 7614 |
0 |
| croak_xs_usage(cv, "_____unused12, g, hint= NULL"); |
| 7615 |
|
| { |
| 7616 |
|
| MinimumDiameter * RETVAL; |
| 7617 |
2 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 7618 |
|
| ; |
| 7619 |
|
| SV* hint; |
| 7620 |
|
| |
| 7621 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 7622 |
1 |
| hint = NULL; |
| 7623 |
|
| else { |
| 7624 |
1 |
| hint = ST(2) |
| 7625 |
|
| ; |
| 7626 |
|
| } |
| 7627 |
|
| #line 5 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7628 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7629 |
|
| if (!hint) { |
| 7630 |
|
| bool convex = SvTRUE(hint); |
| 7631 |
|
| RETVAL = new MinimumDiameter(&g, convex); |
| 7632 |
|
| } |
| 7633 |
|
| else RETVAL = new MinimumDiameter(&g); |
| 7634 |
|
| #line 7635 "Geos_xsgen.cc" |
| 7635 |
|
| { |
| 7636 |
|
| SV * RETVALSV; |
| 7637 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 7638 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 7639 |
2 |
| ST(0) = RETVALSV; |
| 7640 |
|
| } |
| 7641 |
2 |
| } |
| 7642 |
2 |
| XSRETURN(1); |
| 7643 |
2 |
| }); } |
| 7644 |
|
| |
| 7645 |
|
| |
| 7646 |
|
| |
| 7647 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumRectangle) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumRectangle) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 7648 |
|
| { |
| 7649 |
3 |
| dVAR; dXSARGS; |
| 7650 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 7651 |
0 |
| croak_xs_usage(cv, "obj"); |
| 7652 |
|
| { |
| 7653 |
3 |
| Sv RETVAL; |
| 7654 |
3 |
▶ | Object obj = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Object obj = ST(0); |
3 |
0 |
3 |
|
| 7655 |
3 |
▶ | if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
3 |
3 |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
3 |
3 |
|
| 7656 |
|
| ; |
| 7657 |
|
| #line 13 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7658 |
|
| Geometry* r; |
| 7659 |
|
| if (obj.stash().name() == "Geo::Geos::Algorithm::MinimumDiameter") { |
| 7660 |
|
| auto& self = xs::in<MinimumDiameter&>(obj); |
| 7661 |
|
| r = self.getMinimumRectangle(); |
| 7662 |
|
| } |
| 7663 |
|
| else { |
| 7664 |
|
| auto& g = xs::in<Geometry&>(obj); |
| 7665 |
|
| r = MinimumDiameter::getMinimumRectangle(&g); |
| 7666 |
|
| } |
| 7667 |
|
| RETVAL = Helper::uplift(r); |
| 7668 |
|
| #line 7669 "Geos_xsgen.cc" |
| 7669 |
|
| { |
| 7670 |
|
| SV * RETVALSV; |
| 7671 |
3 |
| RETVALSV = NULL; |
| 7672 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 7673 |
3 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
|
| 7674 |
0 |
| else switch (RETVAL.type()) { |
| 7675 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7676 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7677 |
0 |
| case SVt_PVCV: |
| 7678 |
|
| case SVt_PVIO: |
| 7679 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 7680 |
0 |
| break; |
| 7681 |
0 |
| default: throw "unknown type of Sv to return"; |
| 7682 |
|
| } |
| 7683 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 7684 |
3 |
| ST(0) = RETVALSV; |
| 7685 |
|
| } |
| 7686 |
3 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
|
| 7687 |
3 |
| XSRETURN(1); |
| 7688 |
3 |
| }); } |
| 7689 |
|
| |
| 7690 |
|
| |
| 7691 |
|
| |
| 7692 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumDiameter) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumDiameter) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7693 |
|
| { |
| 7694 |
1 |
| dVAR; dXSARGS; |
| 7695 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7696 |
0 |
| croak_xs_usage(cv, "g"); |
| 7697 |
|
| { |
| 7698 |
1 |
| Sv RETVAL; |
| 7699 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 7700 |
|
| ; |
| 7701 |
|
| #line 26 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7702 |
|
| RETVAL = Helper::uplift(MinimumDiameter::getMinimumDiameter(&g)); |
| 7703 |
|
| #line 7704 "Geos_xsgen.cc" |
| 7704 |
|
| { |
| 7705 |
|
| SV * RETVALSV; |
| 7706 |
1 |
| RETVALSV = NULL; |
| 7707 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 7708 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 7709 |
0 |
| else switch (RETVAL.type()) { |
| 7710 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7711 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7712 |
0 |
| case SVt_PVCV: |
| 7713 |
|
| case SVt_PVIO: |
| 7714 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 7715 |
0 |
| break; |
| 7716 |
0 |
| default: throw "unknown type of Sv to return"; |
| 7717 |
|
| } |
| 7718 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7719 |
1 |
| ST(0) = RETVALSV; |
| 7720 |
|
| } |
| 7721 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 7722 |
1 |
| XSRETURN(1); |
| 7723 |
1 |
| }); } |
| 7724 |
|
| |
| 7725 |
|
| |
| 7726 |
|
| |
| 7727 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getLength) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getLength) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7728 |
|
| { |
| 7729 |
1 |
| dVAR; dXSARGS; |
| 7730 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7731 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 7732 |
|
| { |
| 7733 |
|
| double RETVAL; |
| 7734 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7735 |
1 |
▶ | MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 7736 |
|
| ; |
| 7737 |
|
| #line 29 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7738 |
|
| RETVAL = THIS->getLength(); |
| 7739 |
|
| #line 7740 "Geos_xsgen.cc" |
| 7740 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 7741 |
1 |
| ST(0) = TARG; |
| 7742 |
|
| } |
| 7743 |
1 |
| XSRETURN(1); |
| 7744 |
1 |
| }); } |
| 7745 |
|
| |
| 7746 |
|
| |
| 7747 |
|
| |
| 7748 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getWidthCoordinate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getWidthCoordinate) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7749 |
|
| { |
| 7750 |
1 |
| dVAR; dXSARGS; |
| 7751 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7752 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 7753 |
|
| { |
| 7754 |
|
| Coordinate * RETVAL; |
| 7755 |
1 |
▶ | MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 7756 |
|
| ; |
| 7757 |
|
| #line 32 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7758 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7759 |
|
| RETVAL = new Coordinate(* (THIS->getWidthCoordinate())); |
| 7760 |
|
| #line 7761 "Geos_xsgen.cc" |
| 7761 |
|
| { |
| 7762 |
|
| SV * RETVALSV; |
| 7763 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7764 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7765 |
1 |
| ST(0) = RETVALSV; |
| 7766 |
|
| } |
| 7767 |
1 |
| } |
| 7768 |
1 |
| XSRETURN(1); |
| 7769 |
1 |
| }); } |
| 7770 |
|
| |
| 7771 |
|
| |
| 7772 |
|
| |
| 7773 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getSupportingSegment) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getSupportingSegment) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7774 |
|
| { |
| 7775 |
1 |
| dVAR; dXSARGS; |
| 7776 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 7777 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 7778 |
|
| { |
| 7779 |
|
| LineString * RETVAL; |
| 7780 |
1 |
▶ | MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 7781 |
|
| ; |
| 7782 |
|
| #line 36 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7783 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7784 |
|
| RETVAL = dyn_cast<LineString*>(THIS->getSupportingSegment()); |
| 7785 |
|
| #line 7786 "Geos_xsgen.cc" |
| 7786 |
|
| { |
| 7787 |
|
| SV * RETVALSV; |
| 7788 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 7789 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 7790 |
1 |
| ST(0) = RETVALSV; |
| 7791 |
|
| } |
| 7792 |
1 |
| } |
| 7793 |
1 |
| XSRETURN(1); |
| 7794 |
1 |
| }); } |
| 7795 |
|
| |
| 7796 |
|
| |
| 7797 |
|
| |
| 7798 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getDiameter) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_getDiameter) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 7799 |
|
| { |
| 7800 |
2 |
| dVAR; dXSARGS; |
| 7801 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 7802 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 7803 |
|
| { |
| 7804 |
|
| LineString * RETVAL; |
| 7805 |
2 |
▶ | MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| MinimumDiameter* THIS = xs::in<MinimumDiameter *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 7806 |
|
| ; |
| 7807 |
|
| #line 40 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7808 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 7809 |
|
| RETVAL = dyn_cast<LineString*>(THIS->getDiameter()); |
| 7810 |
|
| #line 7811 "Geos_xsgen.cc" |
| 7811 |
|
| { |
| 7812 |
|
| SV * RETVALSV; |
| 7813 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 7814 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 7815 |
2 |
| ST(0) = RETVALSV; |
| 7816 |
|
| } |
| 7817 |
2 |
| } |
| 7818 |
2 |
| XSRETURN(1); |
| 7819 |
2 |
| }); } |
| 7820 |
|
| |
| 7821 |
|
| |
| 7822 |
|
| |
| 7823 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__MinimumDiameter_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 7824 |
|
| { |
| 7825 |
0 |
| dVAR; dXSARGS; |
| 7826 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 7827 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 7828 |
|
| { |
| 7829 |
|
| int RETVAL; |
| 7830 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 7831 |
|
| #line 44 "./xsi/algorithm/MinimumDiameter.xsi" |
| 7832 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 7833 |
|
| #line 7834 "Geos_xsgen.cc" |
| 7834 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 7835 |
0 |
| ST(0) = TARG; |
| 7836 |
|
| } |
| 7837 |
0 |
| XSRETURN(1); |
| 7838 |
0 |
| }); } |
| 7839 |
|
| |
| 7840 |
|
| |
| 7841 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/algorithm/MinimumDiameter.xsi' */ |
| 7842 |
|
| |
| 7843 |
|
| |
| 7844 |
|
| /* INCLUDE: Including 'xsi/algorithm/LineIntersector.xsi' from 'Geos.xs' */ |
| 7845 |
|
| |
| 7846 |
|
| |
| 7847 |
|
| |
| 7848 |
24 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_new) { xs::throw_guard(cv, [=]() |
12 |
0 |
12 |
|
| 7849 |
|
| { |
| 7850 |
12 |
| dVAR; dXSARGS; |
| 7851 |
12 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
12 |
0 |
12 |
| if (items < 1 || items > 2) |
0 |
12 |
12 |
|
| 7852 |
0 |
| croak_xs_usage(cv, "_____unused13, precisionModel= NULL"); |
| 7853 |
|
| { |
| 7854 |
12 |
| Sv RETVAL; |
| 7855 |
|
| SV* precisionModel; |
| 7856 |
|
| |
| 7857 |
12 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
2 |
10 |
12 |
|
| 7858 |
2 |
| precisionModel = NULL; |
| 7859 |
|
| else { |
| 7860 |
10 |
| precisionModel = ST(1) |
| 7861 |
|
| ; |
| 7862 |
|
| } |
| 7863 |
|
| #line 5 "./xsi/algorithm/LineIntersector.xsi" |
| 7864 |
|
| PrecisionModel* pm = precisionModel ? xs::in<PrecisionModel*>(precisionModel) : NULL; |
| 7865 |
|
| Object wrapped = xs::out<LineIntersector*>(new LineIntersector(pm)); |
| 7866 |
|
| if (pm) wrapped.payload_attach(precisionModel, &payload_marker); |
| 7867 |
|
| RETVAL = wrapped.ref(); |
| 7868 |
|
| #line 7869 "Geos_xsgen.cc" |
| 7869 |
|
| { |
| 7870 |
|
| SV * RETVALSV; |
| 7871 |
12 |
| RETVALSV = NULL; |
| 7872 |
12 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
12 |
12 |
|
| 7873 |
12 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
12 |
0 |
12 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
12 |
0 |
12 |
|
| 7874 |
0 |
| else switch (RETVAL.type()) { |
| 7875 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7876 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 7877 |
0 |
| case SVt_PVCV: |
| 7878 |
|
| case SVt_PVIO: |
| 7879 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 7880 |
0 |
| break; |
| 7881 |
0 |
| default: throw "unknown type of Sv to return"; |
| 7882 |
|
| } |
| 7883 |
12 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
12 |
0 |
12 |
|
| 7884 |
12 |
| ST(0) = RETVALSV; |
| 7885 |
|
| } |
| 7886 |
12 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
12 |
0 |
12 |
| } |
12 |
0 |
12 |
|
| 7887 |
12 |
| XSRETURN(1); |
| 7888 |
12 |
| }); } |
| 7889 |
|
| |
| 7890 |
|
| |
| 7891 |
|
| |
| 7892 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_interpolateZ) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_interpolateZ) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7893 |
|
| { |
| 7894 |
1 |
| dVAR; dXSARGS; |
| 7895 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 7896 |
0 |
| croak_xs_usage(cv, "p, p0, p1"); |
| 7897 |
|
| { |
| 7898 |
|
| double RETVAL; |
| 7899 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7900 |
1 |
| Coordinate * p = xs::in<Coordinate *>(ST(0)); |
| 7901 |
|
| ; |
| 7902 |
1 |
| Coordinate * p0 = xs::in<Coordinate *>(ST(1)); |
| 7903 |
|
| ; |
| 7904 |
1 |
| Coordinate * p1 = xs::in<Coordinate *>(ST(2)); |
| 7905 |
|
| ; |
| 7906 |
|
| #line 11 "./xsi/algorithm/LineIntersector.xsi" |
| 7907 |
|
| RETVAL = LineIntersector::interpolateZ(*p, *p0, *p1); |
| 7908 |
|
| #line 7909 "Geos_xsgen.cc" |
| 7909 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 7910 |
1 |
| ST(0) = TARG; |
| 7911 |
|
| } |
| 7912 |
1 |
| XSRETURN(1); |
| 7913 |
1 |
| }); } |
| 7914 |
|
| |
| 7915 |
|
| |
| 7916 |
|
| |
| 7917 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_computeEdgeDistance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_computeEdgeDistance) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7918 |
|
| { |
| 7919 |
1 |
| dVAR; dXSARGS; |
| 7920 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 7921 |
0 |
| croak_xs_usage(cv, "p, p0, p1"); |
| 7922 |
|
| { |
| 7923 |
|
| double RETVAL; |
| 7924 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 7925 |
1 |
| Coordinate * p = xs::in<Coordinate *>(ST(0)); |
| 7926 |
|
| ; |
| 7927 |
1 |
| Coordinate * p0 = xs::in<Coordinate *>(ST(1)); |
| 7928 |
|
| ; |
| 7929 |
1 |
| Coordinate * p1 = xs::in<Coordinate *>(ST(2)); |
| 7930 |
|
| ; |
| 7931 |
|
| #line 13 "./xsi/algorithm/LineIntersector.xsi" |
| 7932 |
|
| RETVAL = LineIntersector::computeEdgeDistance(*p, *p0, *p1); |
| 7933 |
|
| #line 7934 "Geos_xsgen.cc" |
| 7934 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 7935 |
1 |
| ST(0) = TARG; |
| 7936 |
|
| } |
| 7937 |
1 |
| XSRETURN(1); |
| 7938 |
1 |
| }); } |
| 7939 |
|
| |
| 7940 |
|
| |
| 7941 |
|
| |
| 7942 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isSameSignAndNonZero) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isSameSignAndNonZero) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 7943 |
|
| { |
| 7944 |
1 |
| dVAR; dXSARGS; |
| 7945 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 7946 |
0 |
| croak_xs_usage(cv, "a, b"); |
| 7947 |
|
| { |
| 7948 |
|
| bool RETVAL; |
| 7949 |
1 |
| double a = (double)SvNV(ST(0)) |
| 7950 |
|
| ; |
| 7951 |
1 |
| double b = (double)SvNV(ST(1)) |
| 7952 |
|
| ; |
| 7953 |
|
| #line 15 "./xsi/algorithm/LineIntersector.xsi" |
| 7954 |
|
| RETVAL = LineIntersector::isSameSignAndNonZero(a, b); |
| 7955 |
|
| #line 7956 "Geos_xsgen.cc" |
| 7956 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 7957 |
|
| } |
| 7958 |
1 |
| XSRETURN(1); |
| 7959 |
1 |
| }); } |
| 7960 |
|
| |
| 7961 |
|
| |
| 7962 |
|
| |
| 7963 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_hasIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_hasIntersection) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 7964 |
|
| { |
| 7965 |
6 |
| dVAR; dXSARGS; |
| 7966 |
6 |
▶ | if (items < 1 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 3) |
6 |
0 |
6 |
| if (items < 1 || items > 3) |
0 |
6 |
6 |
|
| 7967 |
0 |
| croak_xs_usage(cv, "arg0, p1= NULL, p2= NULL"); |
| 7968 |
|
| { |
| 7969 |
|
| bool RETVAL; |
| 7970 |
6 |
▶ | Object arg0 = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg0 = ST(0); |
6 |
0 |
6 |
|
| 7971 |
6 |
▶ | if (!arg0 && SvOK(ST(0))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg0 && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
6 |
6 |
| if (!arg0 && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg0 && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
6 |
6 |
|
| 7972 |
|
| ; |
| 7973 |
|
| Coordinate * p1; |
| 7974 |
|
| Coordinate * p2; |
| 7975 |
|
| |
| 7976 |
6 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
5 |
1 |
6 |
|
| 7977 |
5 |
| p1 = NULL; |
| 7978 |
|
| else { |
| 7979 |
1 |
▶ | p1 = xs::in<Coordinate *>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| p1 = xs::in<Coordinate *>(ST(1)); |
1 |
0 |
1 |
|
| 7980 |
|
| ; |
| 7981 |
|
| } |
| 7982 |
|
| |
| 7983 |
6 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
5 |
1 |
6 |
|
| 7984 |
5 |
| p2 = NULL; |
| 7985 |
|
| else { |
| 7986 |
1 |
▶ | p2 = xs::in<Coordinate *>(ST(2)); |
Branch: 1 branch
| Branch | True | False | Total |
| p2 = xs::in<Coordinate *>(ST(2)); |
1 |
0 |
1 |
|
| 7987 |
|
| ; |
| 7988 |
|
| } |
| 7989 |
|
| #line 18 "./xsi/algorithm/LineIntersector.xsi" |
| 7990 |
|
| if (p1 == NULL) RETVAL = xs::in<LineIntersector&>(arg0).hasIntersection(); |
| 7991 |
|
| else { |
| 7992 |
|
| auto& p0 = xs::in<Coordinate&>(arg0); |
| 7993 |
|
| if(!p1) throw("undef not allowed"); |
| 7994 |
|
| if(!p2) throw("undef not allowed"); |
| 7995 |
|
| RETVAL = LineIntersector::hasIntersection(p0, *p1, *p2); |
| 7996 |
|
| } |
| 7997 |
|
| #line 7998 "Geos_xsgen.cc" |
| 7998 |
6 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
4 |
2 |
6 |
|
| 7999 |
6 |
| } |
| 8000 |
6 |
| XSRETURN(1); |
| 8001 |
6 |
| }); } |
| 8002 |
|
| |
| 8003 |
|
| |
| 8004 |
|
| |
| 8005 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isInteriorIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isInteriorIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8006 |
|
| { |
| 8007 |
1 |
| dVAR; dXSARGS; |
| 8008 |
1 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
1 |
0 |
1 |
| if (items < 1 || items > 2) |
0 |
1 |
1 |
|
| 8009 |
0 |
| croak_xs_usage(cv, "THIS, arg= NULL"); |
| 8010 |
|
| { |
| 8011 |
|
| bool RETVAL; |
| 8012 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8013 |
|
| ; |
| 8014 |
|
| SV* arg; |
| 8015 |
|
| |
| 8016 |
1 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
1 |
0 |
1 |
|
| 8017 |
1 |
| arg = NULL; |
| 8018 |
|
| else { |
| 8019 |
0 |
| arg = ST(1) |
| 8020 |
|
| ; |
| 8021 |
|
| } |
| 8022 |
|
| #line 29 "./xsi/algorithm/LineIntersector.xsi" |
| 8023 |
|
| if(!arg) RETVAL = THIS->isInteriorIntersection(); |
| 8024 |
|
| else { |
| 8025 |
|
| int inputLineIndex = SvIV(arg); |
| 8026 |
|
| RETVAL = THIS->isInteriorIntersection(inputLineIndex); |
| 8027 |
|
| } |
| 8028 |
|
| #line 8029 "Geos_xsgen.cc" |
| 8029 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 8030 |
|
| } |
| 8031 |
1 |
| XSRETURN(1); |
| 8032 |
1 |
| }); } |
| 8033 |
|
| |
| 8034 |
|
| |
| 8035 |
|
| |
| 8036 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_setPrecisionModel) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_setPrecisionModel) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 8037 |
|
| { |
| 8038 |
3 |
| dVAR; dXSARGS; |
| 8039 |
3 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
3 |
3 |
|
| 8040 |
0 |
| croak_xs_usage(cv, "THIS, pm"); |
| 8041 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8042 |
3 |
| SP -= items; |
| 8043 |
|
| { |
| 8044 |
3 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 8045 |
|
| ; |
| 8046 |
3 |
▶ | SV* pm = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* pm = ST(1) |
3 |
0 |
3 |
|
| 8047 |
|
| ; |
| 8048 |
|
| #line 37 "./xsi/algorithm/LineIntersector.xsi" |
| 8049 |
|
| PrecisionModel& newPM = xs::in<PrecisionModel&>(pm); |
| 8050 |
|
| THIS->setPrecisionModel(&newPM); |
| 8051 |
|
| Object me {ST(0)}; |
| 8052 |
|
| if (me.payload_exists(&payload_marker)) { |
| 8053 |
|
| me.payload_detach(&payload_marker); |
| 8054 |
|
| } |
| 8055 |
|
| me.payload_attach(SvRV(pm), &payload_marker); |
| 8056 |
|
| #line 8057 "Geos_xsgen.cc" |
| 8057 |
3 |
| PUTBACK; |
| 8058 |
6 |
| return; |
| 8059 |
3 |
| } |
| 8060 |
3 |
| }); } |
| 8061 |
|
| |
| 8062 |
|
| |
| 8063 |
|
| |
| 8064 |
10 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_computeIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_computeIntersection) { xs::throw_guard(cv, [=]() |
5 |
0 |
5 |
|
| 8065 |
|
| { |
| 8066 |
5 |
| dVAR; dXSARGS; |
| 8067 |
5 |
▶ | if (items < 4 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 4 || items > 5) |
5 |
0 |
5 |
| if (items < 4 || items > 5) |
0 |
5 |
5 |
|
| 8068 |
0 |
| croak_xs_usage(cv, "THIS, p1, p2, p3, p4arg= NULL"); |
| 8069 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8070 |
5 |
| SP -= items; |
| 8071 |
|
| { |
| 8072 |
5 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
5 |
5 |
|
| 8073 |
|
| ; |
| 8074 |
5 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(1)); |
| 8075 |
|
| ; |
| 8076 |
5 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(2)); |
| 8077 |
|
| ; |
| 8078 |
5 |
| Coordinate& p3 = xs::in<Coordinate&>(ST(3)); |
| 8079 |
|
| ; |
| 8080 |
|
| SV* p4arg; |
| 8081 |
|
| |
| 8082 |
5 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
1 |
4 |
5 |
|
| 8083 |
1 |
| p4arg = NULL; |
| 8084 |
|
| else { |
| 8085 |
4 |
| p4arg = ST(4) |
| 8086 |
|
| ; |
| 8087 |
|
| } |
| 8088 |
|
| #line 47 "./xsi/algorithm/LineIntersector.xsi" |
| 8089 |
|
| if (!p4arg) THIS->computeIntersection(p1, p2, p3); |
| 8090 |
|
| else { |
| 8091 |
|
| auto& p4 = xs::in<Coordinate&>(p4arg); |
| 8092 |
|
| THIS->computeIntersection(p1, p2, p3, p4); |
| 8093 |
|
| } |
| 8094 |
|
| #line 8095 "Geos_xsgen.cc" |
| 8095 |
5 |
| PUTBACK; |
| 8096 |
5 |
| return; |
| 8097 |
|
| } |
| 8098 |
5 |
| }); } |
| 8099 |
|
| |
| 8100 |
|
| |
| 8101 |
|
| |
| 8102 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_toString) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8103 |
|
| { |
| 8104 |
1 |
| dVAR; dXSARGS; |
| 8105 |
1 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
1 |
1 |
|
| 8106 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 8107 |
|
| { |
| 8108 |
1 |
| std::string RETVAL; |
| 8109 |
1 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8110 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8111 |
|
| ; |
| 8112 |
|
| #line 54 "./xsi/algorithm/LineIntersector.xsi" |
| 8113 |
|
| RETVAL = THIS->toString(); |
| 8114 |
|
| #line 8115 "Geos_xsgen.cc" |
| 8115 |
1 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
1 |
0 |
1 |
|
| 8116 |
1 |
| ST(0) = TARG; |
| 8117 |
1 |
| } |
| 8118 |
1 |
| XSRETURN(1); |
| 8119 |
1 |
| }); } |
| 8120 |
|
| |
| 8121 |
|
| |
| 8122 |
|
| |
| 8123 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionNum) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionNum) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8124 |
|
| { |
| 8125 |
1 |
| dVAR; dXSARGS; |
| 8126 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 8127 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8128 |
|
| { |
| 8129 |
|
| int RETVAL; |
| 8130 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 8131 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8132 |
|
| ; |
| 8133 |
|
| #line 56 "./xsi/algorithm/LineIntersector.xsi" |
| 8134 |
|
| RETVAL = THIS->getIntersectionNum(); |
| 8135 |
|
| #line 8136 "Geos_xsgen.cc" |
| 8136 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 8137 |
1 |
| ST(0) = TARG; |
| 8138 |
|
| } |
| 8139 |
1 |
| XSRETURN(1); |
| 8140 |
1 |
| }); } |
| 8141 |
|
| |
| 8142 |
|
| |
| 8143 |
|
| |
| 8144 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isProper) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_isProper) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8145 |
|
| { |
| 8146 |
1 |
| dVAR; dXSARGS; |
| 8147 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 8148 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8149 |
|
| { |
| 8150 |
|
| bool RETVAL; |
| 8151 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8152 |
|
| ; |
| 8153 |
|
| #line 58 "./xsi/algorithm/LineIntersector.xsi" |
| 8154 |
|
| RETVAL = THIS->isProper(); |
| 8155 |
|
| #line 8156 "Geos_xsgen.cc" |
| 8156 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 8157 |
|
| } |
| 8158 |
1 |
| XSRETURN(1); |
| 8159 |
1 |
| }); } |
| 8160 |
|
| |
| 8161 |
|
| |
| 8162 |
|
| |
| 8163 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIndexAlongSegment) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIndexAlongSegment) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8164 |
|
| { |
| 8165 |
1 |
| dVAR; dXSARGS; |
| 8166 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 8167 |
0 |
| croak_xs_usage(cv, "THIS, segmentIndex, intIndex"); |
| 8168 |
|
| { |
| 8169 |
|
| int RETVAL; |
| 8170 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 8171 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8172 |
|
| ; |
| 8173 |
1 |
| int segmentIndex = (int)SvIV(ST(1)) |
| 8174 |
|
| ; |
| 8175 |
1 |
| int intIndex = (int)SvIV(ST(2)) |
| 8176 |
|
| ; |
| 8177 |
|
| #line 60 "./xsi/algorithm/LineIntersector.xsi" |
| 8178 |
|
| RETVAL = THIS->getIndexAlongSegment(segmentIndex, intIndex); |
| 8179 |
|
| #line 8180 "Geos_xsgen.cc" |
| 8180 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 8181 |
1 |
| ST(0) = TARG; |
| 8182 |
|
| } |
| 8183 |
1 |
| XSRETURN(1); |
| 8184 |
1 |
| }); } |
| 8185 |
|
| |
| 8186 |
|
| |
| 8187 |
|
| |
| 8188 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getEdgeDistance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getEdgeDistance) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 8189 |
|
| { |
| 8190 |
4 |
| dVAR; dXSARGS; |
| 8191 |
4 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
4 |
4 |
|
| 8192 |
0 |
| croak_xs_usage(cv, "THIS, geomIndex, intIndex"); |
| 8193 |
|
| { |
| 8194 |
|
| double RETVAL; |
| 8195 |
4 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
4 |
0 |
4 |
|
| 8196 |
4 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 8197 |
|
| ; |
| 8198 |
4 |
| int geomIndex = (int)SvIV(ST(1)) |
| 8199 |
|
| ; |
| 8200 |
4 |
| int intIndex = (int)SvIV(ST(2)) |
| 8201 |
|
| ; |
| 8202 |
|
| #line 62 "./xsi/algorithm/LineIntersector.xsi" |
| 8203 |
|
| RETVAL = THIS->getEdgeDistance(geomIndex, intIndex); |
| 8204 |
|
| #line 8205 "Geos_xsgen.cc" |
| 8205 |
4 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
4 |
4 |
|
| 8206 |
4 |
| ST(0) = TARG; |
| 8207 |
|
| } |
| 8208 |
4 |
| XSRETURN(1); |
| 8209 |
4 |
| }); } |
| 8210 |
|
| |
| 8211 |
|
| |
| 8212 |
|
| |
| 8213 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionAlongSegment) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionAlongSegment) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8214 |
|
| { |
| 8215 |
1 |
| dVAR; dXSARGS; |
| 8216 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 8217 |
0 |
| croak_xs_usage(cv, "THIS, segmentIndex, intIndex"); |
| 8218 |
|
| { |
| 8219 |
|
| Coordinate * RETVAL; |
| 8220 |
1 |
▶ | LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| LineIntersector* THIS = xs::in<LineIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8221 |
|
| ; |
| 8222 |
1 |
▶ | int segmentIndex = (int)SvIV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| int segmentIndex = (int)SvIV(ST(1)) |
1 |
0 |
1 |
|
| 8223 |
|
| ; |
| 8224 |
1 |
▶ | int intIndex = (int)SvIV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| int intIndex = (int)SvIV(ST(2)) |
1 |
0 |
1 |
|
| 8225 |
|
| ; |
| 8226 |
|
| #line 65 "./xsi/algorithm/LineIntersector.xsi" |
| 8227 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 8228 |
|
| RETVAL = new Coordinate(THIS->getIntersectionAlongSegment(segmentIndex, intIndex)); |
| 8229 |
|
| #line 8230 "Geos_xsgen.cc" |
| 8230 |
|
| { |
| 8231 |
|
| SV * RETVALSV; |
| 8232 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 8233 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 8234 |
1 |
| ST(0) = RETVALSV; |
| 8235 |
|
| } |
| 8236 |
1 |
| } |
| 8237 |
1 |
| XSRETURN(1); |
| 8238 |
1 |
| }); } |
| 8239 |
|
| |
| 8240 |
|
| |
| 8241 |
|
| |
| 8242 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Algorithm__LineIntersector_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 8243 |
|
| { |
| 8244 |
0 |
| dVAR; dXSARGS; |
| 8245 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 8246 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 8247 |
|
| { |
| 8248 |
|
| int RETVAL; |
| 8249 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8250 |
|
| #line 68 "./xsi/algorithm/LineIntersector.xsi" |
| 8251 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 8252 |
|
| #line 8253 "Geos_xsgen.cc" |
| 8253 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 8254 |
0 |
| ST(0) = TARG; |
| 8255 |
|
| } |
| 8256 |
0 |
| XSRETURN(1); |
| 8257 |
0 |
| }); } |
| 8258 |
|
| |
| 8259 |
|
| |
| 8260 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/algorithm/LineIntersector.xsi' */ |
| 8261 |
|
| |
| 8262 |
|
| |
| 8263 |
|
| /* INCLUDE: Including 'xsi/noding.xsi' from 'Geos.xs' */ |
| 8264 |
|
| |
| 8265 |
|
| |
| 8266 |
|
| |
| 8267 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_compareOrientedCoordinateArray) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_compareOrientedCoordinateArray) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8268 |
|
| { |
| 8269 |
1 |
| dVAR; dXSARGS; |
| 8270 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 8271 |
0 |
| croak_xs_usage(cv, "pts1, pts2"); |
| 8272 |
|
| { |
| 8273 |
|
| int RETVAL; |
| 8274 |
1 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8275 |
1 |
▶ | Array pts1 = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array pts1 = ST(0); |
1 |
0 |
1 |
|
| 8276 |
1 |
▶ | if (!pts1 && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!pts1 && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!pts1 && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!pts1 && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 8277 |
|
| ; |
| 8278 |
1 |
▶ | Array pts2 = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array pts2 = ST(1); |
1 |
0 |
1 |
|
| 8279 |
1 |
▶ | if (!pts2 && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!pts2 && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!pts2 && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!pts2 && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 8280 |
|
| ; |
| 8281 |
|
| #line 5 "./xsi/noding.xsi" |
| 8282 |
|
| auto seq1 = Helper::convert_coords(pts1); |
| 8283 |
|
| auto seq2 = Helper::convert_coords(pts2); |
| 8284 |
|
| geos::noding::OrientedCoordinateArray oca{seq1}; |
| 8285 |
|
| RETVAL = oca.compareTo(seq2); |
| 8286 |
|
| #line 8287 "Geos_xsgen.cc" |
| 8287 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
| TARGi((IV)RETVAL, 1); |
1 |
0 |
1 |
|
| 8288 |
1 |
| ST(0) = TARG; |
| 8289 |
1 |
| } |
| 8290 |
1 |
| XSRETURN(1); |
| 8291 |
1 |
| }); } |
| 8292 |
|
| |
| 8293 |
|
| |
| 8294 |
|
| |
| 8295 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_octant) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_octant) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8296 |
|
| { |
| 8297 |
2 |
| dVAR; dXSARGS; |
| 8298 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 8299 |
0 |
| croak_xs_usage(cv, "arg1, arg2"); |
| 8300 |
|
| { |
| 8301 |
|
| int RETVAL; |
| 8302 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8303 |
2 |
| Sv arg1 = ST(0) |
| 8304 |
|
| ; |
| 8305 |
2 |
| SV* arg2 = ST(1) |
| 8306 |
|
| ; |
| 8307 |
|
| #line 12 "./xsi/noding.xsi" |
| 8308 |
|
| if (arg1.is_object_ref() && Object(arg1).stash().name() == "Geo::Geos::Coordinate") { |
| 8309 |
|
| auto& c1 = xs::in<Coordinate&>(arg1); |
| 8310 |
|
| auto& c2 = xs::in<Coordinate&>(arg2); |
| 8311 |
|
| RETVAL = Octant::octant(&c1, &c2); |
| 8312 |
|
| } else { |
| 8313 |
|
| if(!arg1) throw("undef not allowed"); |
| 8314 |
|
| if(!arg2) throw("undef not allowed"); |
| 8315 |
|
| double dx = SvNV(arg1); |
| 8316 |
|
| double dy = SvNV(arg2); |
| 8317 |
|
| RETVAL = Octant::octant(dx, dy); |
| 8318 |
|
| } |
| 8319 |
|
| #line 8320 "Geos_xsgen.cc" |
| 8320 |
2 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 2 branches
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
2 |
2 |
| TARGi((IV)RETVAL, 1); |
2 |
0 |
2 |
|
| 8321 |
2 |
| ST(0) = TARG; |
| 8322 |
2 |
| } |
| 8323 |
2 |
| XSRETURN(1); |
| 8324 |
2 |
| }); } |
| 8325 |
|
| |
| 8326 |
|
| |
| 8327 |
|
| |
| 8328 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_checkNodingValid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_checkNodingValid) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 8329 |
|
| { |
| 8330 |
1 |
| dVAR; dXSARGS; |
| 8331 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 8332 |
0 |
| croak_xs_usage(cv, "segmentStrigns"); |
| 8333 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8334 |
1 |
| SP -= items; |
| 8335 |
|
| { |
| 8336 |
1 |
▶ | Array segmentStrigns = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array segmentStrigns = ST(0); |
1 |
0 |
1 |
|
| 8337 |
1 |
▶ | if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 8338 |
|
| ; |
| 8339 |
|
| #line 26 "./xsi/noding.xsi" |
| 8340 |
|
| std::vector<SegmentString*> v; |
| 8341 |
|
| v.reserve(segmentStrigns.size()); |
| 8342 |
|
| |
| 8343 |
|
| for (auto it: segmentStrigns) { |
| 8344 |
|
| SegmentString& ss = xs::in<SegmentString&>(it); |
| 8345 |
|
| v.push_back(&ss); |
| 8346 |
|
| } |
| 8347 |
|
| NodingValidator nv(v); |
| 8348 |
|
| nv.checkValid(); |
| 8349 |
|
| #line 8350 "Geos_xsgen.cc" |
| 8350 |
0 |
| PUTBACK; |
| 8351 |
0 |
| return; |
| 8352 |
3 |
| } |
| 8353 |
0 |
| }); } |
| 8354 |
|
| |
| 8355 |
|
| |
| 8356 |
|
| |
| 8357 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_fastCheckNodingValid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_fastCheckNodingValid) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8358 |
|
| { |
| 8359 |
3 |
| dVAR; dXSARGS; |
| 8360 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 8361 |
0 |
| croak_xs_usage(cv, "segmentStrigns"); |
| 8362 |
|
| { |
| 8363 |
3 |
| std::string RETVAL; |
| 8364 |
3 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8365 |
3 |
▶ | Array segmentStrigns = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array segmentStrigns = ST(0); |
3 |
0 |
3 |
|
| 8366 |
3 |
▶ | if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!segmentStrigns && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
3 |
3 |
|
| 8367 |
|
| ; |
| 8368 |
|
| #line 38 "./xsi/noding.xsi" |
| 8369 |
|
| std::vector<SegmentString*> v; |
| 8370 |
|
| v.reserve(segmentStrigns.size()); |
| 8371 |
|
| |
| 8372 |
|
| for (auto it: segmentStrigns) { |
| 8373 |
|
| SegmentString& ss = xs::in<SegmentString&>(it); |
| 8374 |
|
| v.push_back(&ss); |
| 8375 |
|
| } |
| 8376 |
|
| FastNodingValidator fnv{v}; |
| 8377 |
|
| |
| 8378 |
|
| if (GIMME_V == G_VOID) { |
| 8379 |
|
| fnv.checkValid(); |
| 8380 |
|
| XSRETURN_UNDEF; |
| 8381 |
|
| } |
| 8382 |
|
| else { |
| 8383 |
|
| if (fnv.isValid()) XSRETURN_UNDEF; |
| 8384 |
|
| else RETVAL = fnv.getErrorMessage(); |
| 8385 |
|
| } |
| 8386 |
|
| #line 8387 "Geos_xsgen.cc" |
| 8387 |
1 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
1 |
0 |
1 |
|
| 8388 |
1 |
| ST(0) = TARG; |
| 8389 |
9 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
| } |
1 |
1 |
2 |
|
| 8390 |
1 |
| XSRETURN(1); |
| 8391 |
2 |
| }); } |
| 8392 |
|
| |
| 8393 |
|
| |
| 8394 |
|
| |
| 8395 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_compareSegmentPoints) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_compareSegmentPoints) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8396 |
|
| { |
| 8397 |
1 |
| dVAR; dXSARGS; |
| 8398 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 8399 |
0 |
| croak_xs_usage(cv, "octant, p1, p2"); |
| 8400 |
|
| { |
| 8401 |
|
| int RETVAL; |
| 8402 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 8403 |
1 |
| int octant = (int)SvIV(ST(0)) |
| 8404 |
|
| ; |
| 8405 |
1 |
| Coordinate& p1 = xs::in<Coordinate&>(ST(1)); |
| 8406 |
|
| ; |
| 8407 |
1 |
| Coordinate& p2 = xs::in<Coordinate&>(ST(2)); |
| 8408 |
|
| ; |
| 8409 |
|
| #line 58 "./xsi/noding.xsi" |
| 8410 |
|
| RETVAL = SegmentPointComparator::compare(octant, p1, p2); |
| 8411 |
|
| #line 8412 "Geos_xsgen.cc" |
| 8412 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 8413 |
1 |
| ST(0) = TARG; |
| 8414 |
|
| } |
| 8415 |
1 |
| XSRETURN(1); |
| 8416 |
1 |
| }); } |
| 8417 |
|
| |
| 8418 |
|
| |
| 8419 |
|
| |
| 8420 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_extractSegmentStrings) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_extractSegmentStrings) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8421 |
|
| { |
| 8422 |
1 |
| dVAR; dXSARGS; |
| 8423 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 8424 |
0 |
| croak_xs_usage(cv, "g"); |
| 8425 |
|
| { |
| 8426 |
1 |
| Array RETVAL; |
| 8427 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 8428 |
|
| ; |
| 8429 |
|
| #line 62 "./xsi/noding.xsi" |
| 8430 |
|
| SegmentString::ConstVect v; |
| 8431 |
|
| geos::noding::SegmentStringUtil::extractSegmentStrings(&g, v); |
| 8432 |
|
| |
| 8433 |
|
| Array result = xs::Array::create(v.size()); |
| 8434 |
|
| for(auto ss: v) { |
| 8435 |
|
| auto it = xs::out<SegmentString*>(const_cast<SegmentString*>(ss)); |
| 8436 |
|
| result.push(it); |
| 8437 |
|
| }; |
| 8438 |
|
| RETVAL = result; |
| 8439 |
|
| #line 8440 "Geos_xsgen.cc" |
| 8440 |
|
| { |
| 8441 |
|
| SV * RETVALSV; |
| 8442 |
1 |
| RETVALSV = NULL; |
| 8443 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 8444 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 8445 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 8446 |
1 |
| ST(0) = RETVALSV; |
| 8447 |
|
| } |
| 8448 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 8449 |
1 |
| XSRETURN(1); |
| 8450 |
1 |
| }); } |
| 8451 |
|
| |
| 8452 |
|
| |
| 8453 |
|
| |
| 8454 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding_intersects) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding_intersects) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8455 |
|
| { |
| 8456 |
2 |
| dVAR; dXSARGS; |
| 8457 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 8458 |
0 |
| croak_xs_usage(cv, "baseSegmentStrings, segmentStrings, intDetector= NULL"); |
| 8459 |
|
| { |
| 8460 |
|
| bool RETVAL; |
| 8461 |
2 |
▶ | Array baseSegmentStrings = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array baseSegmentStrings = ST(0); |
2 |
0 |
2 |
|
| 8462 |
2 |
▶ | if (!baseSegmentStrings && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!baseSegmentStrings && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!baseSegmentStrings && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!baseSegmentStrings && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 8463 |
|
| ; |
| 8464 |
2 |
▶ | Array segmentStrings = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array segmentStrings = ST(1); |
2 |
0 |
2 |
|
| 8465 |
2 |
▶ | if (!segmentStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!segmentStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!segmentStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!segmentStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 8466 |
|
| ; |
| 8467 |
|
| SV* intDetector; |
| 8468 |
|
| |
| 8469 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 8470 |
1 |
| intDetector = NULL; |
| 8471 |
|
| else { |
| 8472 |
1 |
| intDetector = ST(2) |
| 8473 |
|
| ; |
| 8474 |
|
| } |
| 8475 |
|
| #line 74 "./xsi/noding.xsi" |
| 8476 |
|
| SegmentString::ConstVect vb; |
| 8477 |
|
| for(auto it: baseSegmentStrings) vb.push_back(&xs::in<SegmentString&>(it)); |
| 8478 |
|
| |
| 8479 |
|
| SegmentString::ConstVect v; |
| 8480 |
|
| for(auto it: segmentStrings) v.push_back(&xs::in<SegmentString&>(it)); |
| 8481 |
|
| |
| 8482 |
|
| FastSegmentSetIntersectionFinder finder{&vb}; |
| 8483 |
|
| if (!intDetector) RETVAL = finder.intersects(&v); |
| 8484 |
|
| else { |
| 8485 |
|
| auto& id = xs::in<SegmentIntersectionDetector&>(intDetector); |
| 8486 |
|
| RETVAL = finder.intersects(&v, &id); |
| 8487 |
|
| } |
| 8488 |
|
| #line 8489 "Geos_xsgen.cc" |
| 8489 |
2 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
0 |
2 |
|
| 8490 |
2 |
| } |
| 8491 |
2 |
| XSRETURN(1); |
| 8492 |
2 |
| }); } |
| 8493 |
|
| |
| 8494 |
|
| |
| 8495 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding.xsi' */ |
| 8496 |
|
| |
| 8497 |
|
| |
| 8498 |
|
| /* INCLUDE: Including 'xsi/noding/SegmentString.xsi' from 'Geos.xs' */ |
| 8499 |
|
| |
| 8500 |
|
| |
| 8501 |
|
| |
| 8502 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_size) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_size) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8503 |
|
| { |
| 8504 |
2 |
| dVAR; dXSARGS; |
| 8505 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 8506 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8507 |
|
| { |
| 8508 |
|
| unsigned int RETVAL; |
| 8509 |
2 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
2 |
0 |
2 |
|
| 8510 |
2 |
▶ | SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8511 |
|
| ; |
| 8512 |
|
| #line 4 "./xsi/noding/SegmentString.xsi" |
| 8513 |
|
| RETVAL = THIS->size(); |
| 8514 |
|
| #line 8515 "Geos_xsgen.cc" |
| 8515 |
2 |
▶ | TARGu((UV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGu((UV)RETVAL, 1); |
0 |
2 |
2 |
|
| 8516 |
2 |
| ST(0) = TARG; |
| 8517 |
|
| } |
| 8518 |
2 |
| XSRETURN(1); |
| 8519 |
2 |
| }); } |
| 8520 |
|
| |
| 8521 |
|
| |
| 8522 |
|
| |
| 8523 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_getCoordinate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_getCoordinate) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8524 |
|
| { |
| 8525 |
2 |
| dVAR; dXSARGS; |
| 8526 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 8527 |
0 |
| croak_xs_usage(cv, "THIS, i"); |
| 8528 |
|
| { |
| 8529 |
|
| Coordinate * RETVAL; |
| 8530 |
2 |
▶ | SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8531 |
|
| ; |
| 8532 |
2 |
▶ | unsigned int i = (unsigned int)SvUV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int i = (unsigned int)SvUV(ST(1)) |
2 |
0 |
2 |
|
| 8533 |
|
| ; |
| 8534 |
|
| #line 7 "./xsi/noding/SegmentString.xsi" |
| 8535 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 8536 |
|
| RETVAL = new Coordinate(THIS->getCoordinate(i)); |
| 8537 |
|
| #line 8538 "Geos_xsgen.cc" |
| 8538 |
|
| { |
| 8539 |
|
| SV * RETVALSV; |
| 8540 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 8541 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 8542 |
2 |
| ST(0) = RETVALSV; |
| 8543 |
|
| } |
| 8544 |
2 |
| } |
| 8545 |
2 |
| XSRETURN(1); |
| 8546 |
2 |
| }); } |
| 8547 |
|
| |
| 8548 |
|
| |
| 8549 |
|
| |
| 8550 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_getCoordinates) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_getCoordinates) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 8551 |
|
| { |
| 8552 |
3 |
| dVAR; dXSARGS; |
| 8553 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 8554 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8555 |
|
| { |
| 8556 |
3 |
| Array RETVAL; |
| 8557 |
3 |
▶ | SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 8558 |
|
| ; |
| 8559 |
|
| #line 11 "./xsi/noding/SegmentString.xsi" |
| 8560 |
|
| auto seq = THIS->getCoordinates(); |
| 8561 |
|
| RETVAL = Helper::convert_copy(seq); |
| 8562 |
|
| #line 8563 "Geos_xsgen.cc" |
| 8563 |
|
| { |
| 8564 |
|
| SV * RETVALSV; |
| 8565 |
3 |
| RETVALSV = NULL; |
| 8566 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 8567 |
3 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
3 |
0 |
3 |
|
| 8568 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 8569 |
3 |
| ST(0) = RETVALSV; |
| 8570 |
|
| } |
| 8571 |
3 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
|
| 8572 |
3 |
| XSRETURN(1); |
| 8573 |
3 |
| }); } |
| 8574 |
|
| |
| 8575 |
|
| |
| 8576 |
|
| |
| 8577 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_isClosed) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_isClosed) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8578 |
|
| { |
| 8579 |
2 |
| dVAR; dXSARGS; |
| 8580 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 8581 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8582 |
|
| { |
| 8583 |
|
| bool RETVAL; |
| 8584 |
2 |
▶ | SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8585 |
|
| ; |
| 8586 |
|
| #line 15 "./xsi/noding/SegmentString.xsi" |
| 8587 |
|
| RETVAL = THIS->isClosed(); |
| 8588 |
|
| #line 8589 "Geos_xsgen.cc" |
| 8589 |
2 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
2 |
2 |
|
| 8590 |
|
| } |
| 8591 |
2 |
| XSRETURN(1); |
| 8592 |
2 |
| }); } |
| 8593 |
|
| |
| 8594 |
|
| |
| 8595 |
|
| |
| 8596 |
24 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentString_toString) { xs::throw_guard(cv, [=]() |
12 |
0 |
12 |
|
| 8597 |
|
| { |
| 8598 |
12 |
| dVAR; dXSARGS; |
| 8599 |
12 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
12 |
12 |
|
| 8600 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 8601 |
|
| { |
| 8602 |
12 |
| std::string RETVAL; |
| 8603 |
12 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
9 |
3 |
12 |
| dXSTARG; |
3 |
0 |
3 |
|
| 8604 |
12 |
▶ | SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
12 |
0 |
12 |
| SegmentString* THIS = xs::in<SegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
12 |
12 |
|
| 8605 |
|
| ; |
| 8606 |
|
| #line 18 "./xsi/noding/SegmentString.xsi" |
| 8607 |
|
| std::ostringstream out; |
| 8608 |
|
| out << *THIS; |
| 8609 |
|
| RETVAL = out.str(); |
| 8610 |
|
| #line 8611 "Geos_xsgen.cc" |
| 8611 |
12 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
12 |
0 |
12 |
|
| 8612 |
12 |
| ST(0) = TARG; |
| 8613 |
12 |
| } |
| 8614 |
12 |
| XSRETURN(1); |
| 8615 |
12 |
| }); } |
| 8616 |
|
| |
| 8617 |
|
| |
| 8618 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SegmentString.xsi' */ |
| 8619 |
|
| |
| 8620 |
|
| |
| 8621 |
|
| /* INCLUDE: Including 'xsi/noding/SegmentNode.xsi' from 'Geos.xs' */ |
| 8622 |
|
| |
| 8623 |
|
| |
| 8624 |
|
| |
| 8625 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_isInterior) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_isInterior) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8626 |
|
| { |
| 8627 |
2 |
| dVAR; dXSARGS; |
| 8628 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 8629 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8630 |
|
| { |
| 8631 |
|
| bool RETVAL; |
| 8632 |
2 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8633 |
|
| ; |
| 8634 |
|
| #line 4 "./xsi/noding/SegmentNode.xsi" |
| 8635 |
|
| RETVAL = THIS->isInterior(); |
| 8636 |
|
| #line 8637 "Geos_xsgen.cc" |
| 8637 |
2 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
0 |
2 |
|
| 8638 |
|
| } |
| 8639 |
2 |
| XSRETURN(1); |
| 8640 |
2 |
| }); } |
| 8641 |
|
| |
| 8642 |
|
| |
| 8643 |
|
| |
| 8644 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_isEndPoint) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_isEndPoint) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8645 |
|
| { |
| 8646 |
1 |
| dVAR; dXSARGS; |
| 8647 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 8648 |
0 |
| croak_xs_usage(cv, "THIS, maxSegmentIndex"); |
| 8649 |
|
| { |
| 8650 |
|
| bool RETVAL; |
| 8651 |
1 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8652 |
|
| ; |
| 8653 |
1 |
| unsigned int maxSegmentIndex = (unsigned int)SvUV(ST(1)) |
| 8654 |
|
| ; |
| 8655 |
|
| #line 6 "./xsi/noding/SegmentNode.xsi" |
| 8656 |
|
| RETVAL = THIS->isEndPoint(maxSegmentIndex); |
| 8657 |
|
| #line 8658 "Geos_xsgen.cc" |
| 8658 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 8659 |
|
| } |
| 8660 |
1 |
| XSRETURN(1); |
| 8661 |
1 |
| }); } |
| 8662 |
|
| |
| 8663 |
|
| |
| 8664 |
|
| |
| 8665 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_compareTo) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_compareTo) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8666 |
|
| { |
| 8667 |
1 |
| dVAR; dXSARGS; |
| 8668 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 8669 |
0 |
| croak_xs_usage(cv, "THIS, other"); |
| 8670 |
|
| { |
| 8671 |
|
| int RETVAL; |
| 8672 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 8673 |
1 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8674 |
|
| ; |
| 8675 |
1 |
| SegmentNode& other = xs::in<SegmentNode&>(ST(1)); |
| 8676 |
|
| ; |
| 8677 |
|
| #line 8 "./xsi/noding/SegmentNode.xsi" |
| 8678 |
|
| RETVAL = THIS->compareTo(other); |
| 8679 |
|
| #line 8680 "Geos_xsgen.cc" |
| 8680 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 8681 |
1 |
| ST(0) = TARG; |
| 8682 |
|
| } |
| 8683 |
1 |
| XSRETURN(1); |
| 8684 |
1 |
| }); } |
| 8685 |
|
| |
| 8686 |
|
| |
| 8687 |
|
| |
| 8688 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_toString) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 8689 |
|
| { |
| 8690 |
3 |
| dVAR; dXSARGS; |
| 8691 |
3 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
3 |
3 |
|
| 8692 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 8693 |
|
| { |
| 8694 |
3 |
| std::string RETVAL; |
| 8695 |
3 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
2 |
3 |
| dXSTARG; |
2 |
0 |
2 |
|
| 8696 |
3 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 8697 |
|
| ; |
| 8698 |
|
| #line 11 "./xsi/noding/SegmentNode.xsi" |
| 8699 |
|
| std::ostringstream out; |
| 8700 |
|
| out << *THIS; |
| 8701 |
|
| RETVAL = out.str(); |
| 8702 |
|
| #line 8703 "Geos_xsgen.cc" |
| 8703 |
3 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
3 |
0 |
3 |
|
| 8704 |
3 |
| ST(0) = TARG; |
| 8705 |
3 |
| } |
| 8706 |
3 |
| XSRETURN(1); |
| 8707 |
3 |
| }); } |
| 8708 |
|
| |
| 8709 |
|
| |
| 8710 |
|
| |
| 8711 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_coord) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_coord) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8712 |
|
| { |
| 8713 |
2 |
| dVAR; dXSARGS; |
| 8714 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 8715 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8716 |
|
| { |
| 8717 |
|
| Coordinate * RETVAL; |
| 8718 |
2 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8719 |
|
| ; |
| 8720 |
|
| #line 17 "./xsi/noding/SegmentNode.xsi" |
| 8721 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 8722 |
|
| RETVAL = new Coordinate(THIS->coord); |
| 8723 |
|
| #line 8724 "Geos_xsgen.cc" |
| 8724 |
|
| { |
| 8725 |
|
| SV * RETVALSV; |
| 8726 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 8727 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 8728 |
2 |
| ST(0) = RETVALSV; |
| 8729 |
|
| } |
| 8730 |
2 |
| } |
| 8731 |
2 |
| XSRETURN(1); |
| 8732 |
2 |
| }); } |
| 8733 |
|
| |
| 8734 |
|
| |
| 8735 |
|
| |
| 8736 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_segmentIndex) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentNode_segmentIndex) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 8737 |
|
| { |
| 8738 |
3 |
| dVAR; dXSARGS; |
| 8739 |
3 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
3 |
3 |
|
| 8740 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8741 |
|
| { |
| 8742 |
|
| unsigned int RETVAL; |
| 8743 |
3 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
3 |
0 |
3 |
|
| 8744 |
3 |
▶ | SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentNode* THIS = xs::in<SegmentNode *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 8745 |
|
| ; |
| 8746 |
|
| #line 20 "./xsi/noding/SegmentNode.xsi" |
| 8747 |
|
| RETVAL = THIS->segmentIndex; |
| 8748 |
|
| #line 8749 "Geos_xsgen.cc" |
| 8749 |
3 |
▶ | TARGu((UV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGu((UV)RETVAL, 1); |
0 |
3 |
3 |
|
| 8750 |
3 |
| ST(0) = TARG; |
| 8751 |
|
| } |
| 8752 |
3 |
| XSRETURN(1); |
| 8753 |
3 |
| }); } |
| 8754 |
|
| |
| 8755 |
|
| |
| 8756 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SegmentNode.xsi' */ |
| 8757 |
|
| |
| 8758 |
|
| |
| 8759 |
|
| /* INCLUDE: Including 'xsi/noding/NodedSegmentString.xsi' from 'Geos.xs' */ |
| 8760 |
|
| |
| 8761 |
|
| |
| 8762 |
|
| |
| 8763 |
30 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_new) { xs::throw_guard(cv, [=]() |
15 |
0 |
15 |
|
| 8764 |
|
| { |
| 8765 |
15 |
| dVAR; dXSARGS; |
| 8766 |
15 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
15 |
15 |
|
| 8767 |
0 |
| croak_xs_usage(cv, "_____unused14, coords"); |
| 8768 |
|
| { |
| 8769 |
|
| NodedSegmentString * RETVAL; |
| 8770 |
15 |
▶ | Array coords = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array coords = ST(1); |
15 |
0 |
15 |
|
| 8771 |
15 |
▶ | if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
15 |
15 |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
15 |
15 |
|
| 8772 |
|
| ; |
| 8773 |
|
| #line 5 "./xsi/noding/NodedSegmentString.xsi" |
| 8774 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 8775 |
|
| auto seq = Helper::convert_coords(coords); |
| 8776 |
|
| auto v = new NodedSegmentString(seq.clone(), NULL); |
| 8777 |
|
| RETVAL = v; |
| 8778 |
|
| #line 8779 "Geos_xsgen.cc" |
| 8779 |
|
| { |
| 8780 |
|
| SV * RETVALSV; |
| 8781 |
15 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
15 |
0 |
15 |
|
| 8782 |
15 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
15 |
0 |
15 |
|
| 8783 |
15 |
| ST(0) = RETVALSV; |
| 8784 |
|
| } |
| 8785 |
15 |
| } |
| 8786 |
15 |
| XSRETURN(1); |
| 8787 |
15 |
| }); } |
| 8788 |
|
| |
| 8789 |
|
| |
| 8790 |
|
| |
| 8791 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersectionNode) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersectionNode) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 8792 |
|
| { |
| 8793 |
3 |
| dVAR; dXSARGS; |
| 8794 |
3 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
3 |
3 |
|
| 8795 |
0 |
| croak_xs_usage(cv, "THIS, c, segmentIndex"); |
| 8796 |
|
| { |
| 8797 |
3 |
| Sv RETVAL; |
| 8798 |
3 |
▶ | NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 8799 |
|
| ; |
| 8800 |
3 |
▶ | Coordinate& c = xs::in<Coordinate&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Coordinate& c = xs::in<Coordinate&>(ST(1)); |
3 |
0 |
3 |
|
| 8801 |
|
| ; |
| 8802 |
3 |
▶ | std::size_t segmentIndex = xs::in<std::size_t>(ST(2)); |
Branch: 2 branches
| Branch | True | False | Total |
| std::size_t segmentIndex = xs::in<std::size_t>(ST(2)); |
3 |
0 |
3 |
| std::size_t segmentIndex = xs::in<std::size_t>(ST(2)); |
3 |
0 |
3 |
|
| 8803 |
|
| ; |
| 8804 |
|
| #line 11 "./xsi/noding/NodedSegmentString.xsi" |
| 8805 |
|
| auto* node = THIS->addIntersectionNode(&c, segmentIndex); |
| 8806 |
|
| Sv wrapped = xs::out<SegmentNode*>(node); |
| 8807 |
|
| Object obj{ST(0)}; |
| 8808 |
|
| wrapped.payload_attach(obj.detach(), &payload_marker); |
| 8809 |
|
| RETVAL = wrapped; |
| 8810 |
|
| #line 8811 "Geos_xsgen.cc" |
| 8811 |
|
| { |
| 8812 |
|
| SV * RETVALSV; |
| 8813 |
3 |
| RETVALSV = NULL; |
| 8814 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 8815 |
3 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
|
| 8816 |
0 |
| else switch (RETVAL.type()) { |
| 8817 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 8818 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 8819 |
0 |
| case SVt_PVCV: |
| 8820 |
|
| case SVt_PVIO: |
| 8821 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 8822 |
0 |
| break; |
| 8823 |
0 |
| default: throw "unknown type of Sv to return"; |
| 8824 |
|
| } |
| 8825 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 8826 |
3 |
| ST(0) = RETVALSV; |
| 8827 |
|
| } |
| 8828 |
3 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
| } |
3 |
0 |
3 |
|
| 8829 |
3 |
| XSRETURN(1); |
| 8830 |
3 |
| }); } |
| 8831 |
|
| |
| 8832 |
|
| |
| 8833 |
|
| |
| 8834 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_getSegmentOctant) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_getSegmentOctant) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 8835 |
|
| { |
| 8836 |
0 |
| dVAR; dXSARGS; |
| 8837 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 8838 |
0 |
| croak_xs_usage(cv, "THIS, index"); |
| 8839 |
|
| { |
| 8840 |
|
| int RETVAL; |
| 8841 |
0 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
|
| 8842 |
0 |
▶ | NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 8843 |
|
| ; |
| 8844 |
0 |
| unsigned int index = (unsigned int)SvUV(ST(1)) |
| 8845 |
|
| ; |
| 8846 |
|
| #line 18 "./xsi/noding/NodedSegmentString.xsi" |
| 8847 |
|
| RETVAL = THIS->getSegmentOctant(index); |
| 8848 |
|
| #line 8849 "Geos_xsgen.cc" |
| 8849 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 8850 |
0 |
| ST(0) = TARG; |
| 8851 |
|
| } |
| 8852 |
0 |
| XSRETURN(1); |
| 8853 |
0 |
| }); } |
| 8854 |
|
| |
| 8855 |
|
| |
| 8856 |
|
| |
| 8857 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersections) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersections) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 8858 |
|
| { |
| 8859 |
1 |
| dVAR; dXSARGS; |
| 8860 |
1 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
1 |
1 |
|
| 8861 |
0 |
| croak_xs_usage(cv, "THIS, li, segmentIndex, geomIndex"); |
| 8862 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8863 |
1 |
| SP -= items; |
| 8864 |
|
| { |
| 8865 |
1 |
▶ | NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 8866 |
|
| ; |
| 8867 |
1 |
| LineIntersector& li = xs::in<LineIntersector&>(ST(1)); |
| 8868 |
|
| ; |
| 8869 |
1 |
| unsigned int segmentIndex = (unsigned int)SvUV(ST(2)) |
| 8870 |
|
| ; |
| 8871 |
1 |
| int geomIndex = (int)SvIV(ST(3)) |
| 8872 |
|
| ; |
| 8873 |
|
| #line 21 "./xsi/noding/NodedSegmentString.xsi" |
| 8874 |
|
| THIS->addIntersections(&li, segmentIndex, geomIndex); |
| 8875 |
|
| #line 8876 "Geos_xsgen.cc" |
| 8876 |
1 |
| PUTBACK; |
| 8877 |
1 |
| return; |
| 8878 |
|
| } |
| 8879 |
1 |
| }); } |
| 8880 |
|
| |
| 8881 |
|
| |
| 8882 |
|
| |
| 8883 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_addIntersection) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 8884 |
|
| { |
| 8885 |
2 |
| dVAR; dXSARGS; |
| 8886 |
2 |
▶ | if (items < 3 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 3 || items > 5) |
2 |
0 |
2 |
| if (items < 3 || items > 5) |
0 |
2 |
2 |
|
| 8887 |
0 |
| croak_xs_usage(cv, "THIS, arg1, segmentIndex, arg3= NULL, arg4= NULL"); |
| 8888 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8889 |
2 |
| SP -= items; |
| 8890 |
|
| { |
| 8891 |
2 |
▶ | NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| NodedSegmentString* THIS = xs::in<NodedSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 8892 |
|
| ; |
| 8893 |
2 |
▶ | Object arg1 = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg1 = ST(1); |
2 |
0 |
2 |
|
| 8894 |
2 |
▶ | if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
|
| 8895 |
|
| ; |
| 8896 |
2 |
▶ | unsigned int segmentIndex = (unsigned int)SvUV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int segmentIndex = (unsigned int)SvUV(ST(2)) |
2 |
0 |
2 |
|
| 8897 |
|
| ; |
| 8898 |
|
| SV* arg3; |
| 8899 |
|
| SV* arg4; |
| 8900 |
|
| |
| 8901 |
2 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
1 |
1 |
2 |
|
| 8902 |
1 |
| arg3 = NULL; |
| 8903 |
|
| else { |
| 8904 |
1 |
| arg3 = ST(3) |
| 8905 |
|
| ; |
| 8906 |
|
| } |
| 8907 |
|
| |
| 8908 |
2 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
1 |
1 |
2 |
|
| 8909 |
1 |
| arg4 = NULL; |
| 8910 |
|
| else { |
| 8911 |
1 |
| arg4 = ST(4) |
| 8912 |
|
| ; |
| 8913 |
|
| } |
| 8914 |
|
| #line 25 "./xsi/noding/NodedSegmentString.xsi" |
| 8915 |
|
| if (!arg3) { |
| 8916 |
|
| auto& c = xs::in<Coordinate&>(arg1); |
| 8917 |
|
| THIS->addIntersection(c, segmentIndex); |
| 8918 |
|
| } |
| 8919 |
|
| else { |
| 8920 |
|
| auto& li = xs::in<LineIntersector&>(arg1); |
| 8921 |
|
| if (!arg3) throw("missing mandatory argument"); |
| 8922 |
|
| if (!arg4) throw("missing mandatory argument"); |
| 8923 |
|
| THIS->addIntersection(&li, segmentIndex, SvIV(arg3), SvIV(arg4)); |
| 8924 |
|
| } |
| 8925 |
|
| #line 8926 "Geos_xsgen.cc" |
| 8926 |
2 |
| PUTBACK; |
| 8927 |
4 |
| return; |
| 8928 |
2 |
| } |
| 8929 |
2 |
| }); } |
| 8930 |
|
| |
| 8931 |
|
| |
| 8932 |
|
| |
| 8933 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__NodedSegmentString_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 8934 |
|
| { |
| 8935 |
0 |
| dVAR; dXSARGS; |
| 8936 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 8937 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 8938 |
|
| { |
| 8939 |
|
| int RETVAL; |
| 8940 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 8941 |
|
| #line 37 "./xsi/noding/NodedSegmentString.xsi" |
| 8942 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 8943 |
|
| #line 8944 "Geos_xsgen.cc" |
| 8944 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 8945 |
0 |
| ST(0) = TARG; |
| 8946 |
|
| } |
| 8947 |
0 |
| XSRETURN(1); |
| 8948 |
0 |
| }); } |
| 8949 |
|
| |
| 8950 |
|
| |
| 8951 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/NodedSegmentString.xsi' */ |
| 8952 |
|
| |
| 8953 |
|
| |
| 8954 |
|
| /* INCLUDE: Including 'xsi/noding/BasicSegmentString.xsi' from 'Geos.xs' */ |
| 8955 |
|
| |
| 8956 |
|
| |
| 8957 |
|
| |
| 8958 |
10 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_new) { xs::throw_guard(cv, [=]() |
5 |
0 |
5 |
|
| 8959 |
|
| { |
| 8960 |
5 |
| dVAR; dXSARGS; |
| 8961 |
5 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
5 |
5 |
|
| 8962 |
0 |
| croak_xs_usage(cv, "_____unused15, coords"); |
| 8963 |
|
| { |
| 8964 |
|
| BasicSegmentString * RETVAL; |
| 8965 |
5 |
▶ | Array coords = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array coords = ST(1); |
5 |
0 |
5 |
|
| 8966 |
5 |
▶ | if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
5 |
5 |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!coords && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
5 |
5 |
|
| 8967 |
|
| ; |
| 8968 |
|
| #line 6 "./xsi/noding/BasicSegmentString.xsi" |
| 8969 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 8970 |
|
| auto seq = Helper::convert_coords(coords); |
| 8971 |
|
| auto deep_clone = seq.clone(); |
| 8972 |
|
| RETVAL = new BasicSegmentString(deep_clone, NULL); |
| 8973 |
|
| #line 8974 "Geos_xsgen.cc" |
| 8974 |
|
| { |
| 8975 |
|
| SV * RETVALSV; |
| 8976 |
5 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
5 |
0 |
5 |
|
| 8977 |
5 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
5 |
0 |
5 |
|
| 8978 |
5 |
| ST(0) = RETVALSV; |
| 8979 |
|
| } |
| 8980 |
5 |
| } |
| 8981 |
5 |
| XSRETURN(1); |
| 8982 |
5 |
| }); } |
| 8983 |
|
| |
| 8984 |
|
| |
| 8985 |
|
| |
| 8986 |
10 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_DESTROY) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_DESTROY) { xs::throw_guard(cv, [=]() |
5 |
0 |
5 |
|
| 8987 |
|
| { |
| 8988 |
5 |
| dVAR; dXSARGS; |
| 8989 |
5 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
5 |
5 |
|
| 8990 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 8991 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 8992 |
5 |
| SP -= items; |
| 8993 |
|
| { |
| 8994 |
5 |
▶ | BasicSegmentString* THIS = xs::in<BasicSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| BasicSegmentString* THIS = xs::in<BasicSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
5 |
0 |
5 |
| BasicSegmentString* THIS = xs::in<BasicSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
5 |
5 |
|
| 8995 |
|
| ; |
| 8996 |
|
| #line 12 "./xsi/noding/BasicSegmentString.xsi" |
| 8997 |
|
| delete THIS->getCoordinates(); |
| 8998 |
|
| xs::Typemap<BasicSegmentString*>().destroy(THIS, SvRV(ST(0))); |
| 8999 |
|
| #line 9000 "Geos_xsgen.cc" |
| 9000 |
5 |
| PUTBACK; |
| 9001 |
10 |
| return; |
| 9002 |
|
| } |
| 9003 |
5 |
| }); } |
| 9004 |
|
| |
| 9005 |
|
| |
| 9006 |
|
| |
| 9007 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_getSegmentOctant) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_getSegmentOctant) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9008 |
|
| { |
| 9009 |
1 |
| dVAR; dXSARGS; |
| 9010 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 9011 |
0 |
| croak_xs_usage(cv, "THIS, index"); |
| 9012 |
|
| { |
| 9013 |
|
| int RETVAL; |
| 9014 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 9015 |
1 |
▶ | BasicSegmentString* THIS = xs::in<BasicSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| BasicSegmentString* THIS = xs::in<BasicSegmentString *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9016 |
|
| ; |
| 9017 |
1 |
| unsigned int index = (unsigned int)SvUV(ST(1)) |
| 9018 |
|
| ; |
| 9019 |
|
| #line 15 "./xsi/noding/BasicSegmentString.xsi" |
| 9020 |
|
| RETVAL = THIS->getSegmentOctant(index); |
| 9021 |
|
| #line 9022 "Geos_xsgen.cc" |
| 9022 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 9023 |
1 |
| ST(0) = TARG; |
| 9024 |
|
| } |
| 9025 |
1 |
| XSRETURN(1); |
| 9026 |
1 |
| }); } |
| 9027 |
|
| |
| 9028 |
|
| |
| 9029 |
|
| |
| 9030 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__BasicSegmentString_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9031 |
|
| { |
| 9032 |
0 |
| dVAR; dXSARGS; |
| 9033 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9034 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9035 |
|
| { |
| 9036 |
|
| int RETVAL; |
| 9037 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9038 |
|
| #line 17 "./xsi/noding/BasicSegmentString.xsi" |
| 9039 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9040 |
|
| #line 9041 "Geos_xsgen.cc" |
| 9041 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9042 |
0 |
| ST(0) = TARG; |
| 9043 |
|
| } |
| 9044 |
0 |
| XSRETURN(1); |
| 9045 |
0 |
| }); } |
| 9046 |
|
| |
| 9047 |
|
| |
| 9048 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/BasicSegmentString.xsi' */ |
| 9049 |
|
| |
| 9050 |
|
| |
| 9051 |
|
| /* INCLUDE: Including 'xsi/noding/SegmentIntersector.xsi' from 'Geos.xs' */ |
| 9052 |
|
| |
| 9053 |
|
| |
| 9054 |
|
| |
| 9055 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersector_processIntersections) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersector_processIntersections) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 9056 |
|
| { |
| 9057 |
3 |
| dVAR; dXSARGS; |
| 9058 |
3 |
▶ | if (items != 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 5) |
0 |
3 |
3 |
|
| 9059 |
0 |
| croak_xs_usage(cv, "THIS, e0, segIndex0, e1, segIndex1"); |
| 9060 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 9061 |
3 |
| SP -= items; |
| 9062 |
|
| { |
| 9063 |
3 |
▶ | SegmentIntersector* THIS = xs::in<SegmentIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersector* THIS = xs::in<SegmentIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 9064 |
|
| ; |
| 9065 |
3 |
| SegmentString& e0 = xs::in<SegmentString&>(ST(1)); |
| 9066 |
|
| ; |
| 9067 |
3 |
| int segIndex0 = (int)SvIV(ST(2)) |
| 9068 |
|
| ; |
| 9069 |
3 |
| SegmentString& e1 = xs::in<SegmentString&>(ST(3)); |
| 9070 |
|
| ; |
| 9071 |
3 |
| int segIndex1 = (int)SvIV(ST(4)) |
| 9072 |
|
| ; |
| 9073 |
|
| #line 6 "./xsi/noding/SegmentIntersector.xsi" |
| 9074 |
|
| THIS->processIntersections(&e0, segIndex0, &e1, segIndex1); |
| 9075 |
|
| #line 9076 "Geos_xsgen.cc" |
| 9076 |
3 |
| PUTBACK; |
| 9077 |
3 |
| return; |
| 9078 |
|
| } |
| 9079 |
3 |
| }); } |
| 9080 |
|
| |
| 9081 |
|
| |
| 9082 |
|
| |
| 9083 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersector_isDone) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersector_isDone) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 9084 |
|
| { |
| 9085 |
7 |
| dVAR; dXSARGS; |
| 9086 |
7 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
7 |
7 |
|
| 9087 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9088 |
|
| { |
| 9089 |
|
| bool RETVAL; |
| 9090 |
7 |
▶ | SegmentIntersector* THIS = xs::in<SegmentIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersector* THIS = xs::in<SegmentIntersector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 9091 |
|
| ; |
| 9092 |
|
| #line 9 "./xsi/noding/SegmentIntersector.xsi" |
| 9093 |
|
| RETVAL = THIS->isDone(); |
| 9094 |
|
| #line 9095 "Geos_xsgen.cc" |
| 9095 |
7 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
5 |
7 |
|
| 9096 |
|
| } |
| 9097 |
7 |
| XSRETURN(1); |
| 9098 |
7 |
| }); } |
| 9099 |
|
| |
| 9100 |
|
| |
| 9101 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SegmentIntersector.xsi' */ |
| 9102 |
|
| |
| 9103 |
|
| |
| 9104 |
|
| /* INCLUDE: Including 'xsi/noding/SegmentIntersectionDetector.xsi' from 'Geos.xs' */ |
| 9105 |
|
| |
| 9106 |
|
| |
| 9107 |
|
| |
| 9108 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 9109 |
|
| { |
| 9110 |
2 |
| dVAR; dXSARGS; |
| 9111 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 9112 |
0 |
| croak_xs_usage(cv, "_____unused16, liObj"); |
| 9113 |
|
| { |
| 9114 |
2 |
| Sv RETVAL; |
| 9115 |
2 |
▶ | SV* liObj = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* liObj = ST(1) |
2 |
0 |
2 |
|
| 9116 |
|
| ; |
| 9117 |
|
| #line 5 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9118 |
|
| LineIntersector& li = xs::in<LineIntersector&>(liObj); |
| 9119 |
|
| Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); |
| 9120 |
|
| wrapped.payload_attach(SvRV(liObj), &payload_marker); |
| 9121 |
|
| RETVAL = wrapped; |
| 9122 |
|
| #line 9123 "Geos_xsgen.cc" |
| 9123 |
|
| { |
| 9124 |
|
| SV * RETVALSV; |
| 9125 |
2 |
| RETVALSV = NULL; |
| 9126 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 9127 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 9128 |
0 |
| else switch (RETVAL.type()) { |
| 9129 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9130 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9131 |
0 |
| case SVt_PVCV: |
| 9132 |
|
| case SVt_PVIO: |
| 9133 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9134 |
0 |
| break; |
| 9135 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9136 |
|
| } |
| 9137 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 9138 |
2 |
| ST(0) = RETVALSV; |
| 9139 |
|
| } |
| 9140 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 9141 |
2 |
| XSRETURN(1); |
| 9142 |
2 |
| }); } |
| 9143 |
|
| |
| 9144 |
|
| |
| 9145 |
|
| |
| 9146 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasIntersection) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9147 |
|
| { |
| 9148 |
0 |
| dVAR; dXSARGS; |
| 9149 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 9150 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9151 |
|
| { |
| 9152 |
|
| bool RETVAL; |
| 9153 |
0 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 9154 |
|
| ; |
| 9155 |
|
| #line 12 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9156 |
|
| RETVAL = THIS->hasIntersection(); |
| 9157 |
|
| #line 9158 "Geos_xsgen.cc" |
| 9158 |
0 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
0 |
0 |
|
| 9159 |
|
| } |
| 9160 |
0 |
| XSRETURN(1); |
| 9161 |
0 |
| }); } |
| 9162 |
|
| |
| 9163 |
|
| |
| 9164 |
|
| |
| 9165 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasProperIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasProperIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9166 |
|
| { |
| 9167 |
1 |
| dVAR; dXSARGS; |
| 9168 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9169 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9170 |
|
| { |
| 9171 |
|
| bool RETVAL; |
| 9172 |
1 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9173 |
|
| ; |
| 9174 |
|
| #line 14 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9175 |
|
| RETVAL = THIS->hasProperIntersection(); |
| 9176 |
|
| #line 9177 "Geos_xsgen.cc" |
| 9177 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 9178 |
|
| } |
| 9179 |
1 |
| XSRETURN(1); |
| 9180 |
1 |
| }); } |
| 9181 |
|
| |
| 9182 |
|
| |
| 9183 |
|
| |
| 9184 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasNonProperIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasNonProperIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9185 |
|
| { |
| 9186 |
1 |
| dVAR; dXSARGS; |
| 9187 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9188 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9189 |
|
| { |
| 9190 |
|
| bool RETVAL; |
| 9191 |
1 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9192 |
|
| ; |
| 9193 |
|
| #line 16 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9194 |
|
| RETVAL = THIS->hasNonProperIntersection(); |
| 9195 |
|
| #line 9196 "Geos_xsgen.cc" |
| 9196 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 9197 |
|
| } |
| 9198 |
1 |
| XSRETURN(1); |
| 9199 |
1 |
| }); } |
| 9200 |
|
| |
| 9201 |
|
| |
| 9202 |
|
| |
| 9203 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindProper) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindProper) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9204 |
|
| { |
| 9205 |
0 |
| dVAR; dXSARGS; |
| 9206 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 9207 |
0 |
| croak_xs_usage(cv, "THIS, findProper"); |
| 9208 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 9209 |
0 |
| SP -= items; |
| 9210 |
|
| { |
| 9211 |
0 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 9212 |
|
| ; |
| 9213 |
0 |
| bool findProper = (bool)SvTRUE(ST(1)) |
| 9214 |
|
| ; |
| 9215 |
|
| #line 18 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9216 |
|
| THIS->setFindProper(findProper); |
| 9217 |
|
| #line 9218 "Geos_xsgen.cc" |
| 9218 |
0 |
| PUTBACK; |
| 9219 |
0 |
| return; |
| 9220 |
|
| } |
| 9221 |
0 |
| }); } |
| 9222 |
|
| |
| 9223 |
|
| |
| 9224 |
|
| |
| 9225 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindAllIntersectionTypes) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindAllIntersectionTypes) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9226 |
|
| { |
| 9227 |
0 |
| dVAR; dXSARGS; |
| 9228 |
0 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
0 |
0 |
|
| 9229 |
0 |
| croak_xs_usage(cv, "THIS, findAllTypes"); |
| 9230 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 9231 |
0 |
| SP -= items; |
| 9232 |
|
| { |
| 9233 |
0 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 9234 |
|
| ; |
| 9235 |
0 |
| bool findAllTypes = (bool)SvTRUE(ST(1)) |
| 9236 |
|
| ; |
| 9237 |
|
| #line 20 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9238 |
|
| THIS->setFindAllIntersectionTypes(findAllTypes); |
| 9239 |
|
| #line 9240 "Geos_xsgen.cc" |
| 9240 |
0 |
| PUTBACK; |
| 9241 |
0 |
| return; |
| 9242 |
|
| } |
| 9243 |
0 |
| }); } |
| 9244 |
|
| |
| 9245 |
|
| |
| 9246 |
|
| |
| 9247 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersectionSegments) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersectionSegments) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9248 |
|
| { |
| 9249 |
1 |
| dVAR; dXSARGS; |
| 9250 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9251 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9252 |
|
| { |
| 9253 |
1 |
| xs::Array RETVAL; |
| 9254 |
1 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9255 |
|
| ; |
| 9256 |
|
| #line 23 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9257 |
|
| RETVAL = Helper::convert_copy(THIS->getIntersectionSegments()); |
| 9258 |
|
| #line 9259 "Geos_xsgen.cc" |
| 9259 |
|
| { |
| 9260 |
|
| SV * RETVALSV; |
| 9261 |
1 |
| RETVALSV = NULL; |
| 9262 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9263 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 9264 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9265 |
1 |
| ST(0) = RETVALSV; |
| 9266 |
|
| } |
| 9267 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 9268 |
1 |
| XSRETURN(1); |
| 9269 |
1 |
| }); } |
| 9270 |
|
| |
| 9271 |
|
| |
| 9272 |
|
| |
| 9273 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9274 |
|
| { |
| 9275 |
1 |
| dVAR; dXSARGS; |
| 9276 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9277 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9278 |
|
| { |
| 9279 |
|
| Coordinate * RETVAL; |
| 9280 |
1 |
▶ | SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SegmentIntersectionDetector* THIS = xs::in<SegmentIntersectionDetector *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9281 |
|
| ; |
| 9282 |
|
| #line 27 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9283 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 9284 |
|
| auto c = THIS->getIntersection(); |
| 9285 |
|
| if (c) RETVAL = new Coordinate(*c); |
| 9286 |
|
| else XSRETURN_UNDEF; |
| 9287 |
|
| #line 9288 "Geos_xsgen.cc" |
| 9288 |
|
| { |
| 9289 |
|
| SV * RETVALSV; |
| 9290 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 9291 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9292 |
1 |
| ST(0) = RETVALSV; |
| 9293 |
|
| } |
| 9294 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 9295 |
1 |
| XSRETURN(1); |
| 9296 |
1 |
| }); } |
| 9297 |
|
| |
| 9298 |
|
| |
| 9299 |
|
| |
| 9300 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SegmentIntersectionDetector_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9301 |
|
| { |
| 9302 |
0 |
| dVAR; dXSARGS; |
| 9303 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9304 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9305 |
|
| { |
| 9306 |
|
| int RETVAL; |
| 9307 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9308 |
|
| #line 33 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 9309 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9310 |
|
| #line 9311 "Geos_xsgen.cc" |
| 9311 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9312 |
0 |
| ST(0) = TARG; |
| 9313 |
|
| } |
| 9314 |
0 |
| XSRETURN(1); |
| 9315 |
0 |
| }); } |
| 9316 |
|
| |
| 9317 |
|
| |
| 9318 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SegmentIntersectionDetector.xsi' */ |
| 9319 |
|
| |
| 9320 |
|
| |
| 9321 |
|
| /* INCLUDE: Including 'xsi/noding/SingleInteriorIntersectionFinder.xsi' from 'Geos.xs' */ |
| 9322 |
|
| |
| 9323 |
|
| |
| 9324 |
|
| |
| 9325 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9326 |
|
| { |
| 9327 |
1 |
| dVAR; dXSARGS; |
| 9328 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 9329 |
0 |
| croak_xs_usage(cv, "_____unused17, liObj"); |
| 9330 |
|
| { |
| 9331 |
1 |
| Sv RETVAL; |
| 9332 |
1 |
▶ | SV* liObj = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* liObj = ST(1) |
1 |
0 |
1 |
|
| 9333 |
|
| ; |
| 9334 |
|
| #line 5 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 9335 |
|
| auto& li = xs::in<LineIntersector&>(liObj); |
| 9336 |
|
| Sv wrapped = xs::out<>(new SingleInteriorIntersectionFinder(li)); |
| 9337 |
|
| wrapped.payload_attach(SvRV(liObj), &payload_marker); |
| 9338 |
|
| RETVAL = wrapped; |
| 9339 |
|
| #line 9340 "Geos_xsgen.cc" |
| 9340 |
|
| { |
| 9341 |
|
| SV * RETVALSV; |
| 9342 |
1 |
| RETVALSV = NULL; |
| 9343 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9344 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 9345 |
0 |
| else switch (RETVAL.type()) { |
| 9346 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9347 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9348 |
0 |
| case SVt_PVCV: |
| 9349 |
|
| case SVt_PVIO: |
| 9350 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9351 |
0 |
| break; |
| 9352 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9353 |
|
| } |
| 9354 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9355 |
1 |
| ST(0) = RETVALSV; |
| 9356 |
|
| } |
| 9357 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9358 |
1 |
| XSRETURN(1); |
| 9359 |
1 |
| }); } |
| 9360 |
|
| |
| 9361 |
|
| |
| 9362 |
|
| |
| 9363 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_hasIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_hasIntersection) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9364 |
|
| { |
| 9365 |
0 |
| dVAR; dXSARGS; |
| 9366 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 9367 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9368 |
|
| { |
| 9369 |
|
| bool RETVAL; |
| 9370 |
0 |
▶ | SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 9371 |
|
| ; |
| 9372 |
|
| #line 12 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 9373 |
|
| RETVAL = THIS->hasIntersection(); |
| 9374 |
|
| #line 9375 "Geos_xsgen.cc" |
| 9375 |
0 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
0 |
0 |
|
| 9376 |
|
| } |
| 9377 |
0 |
| XSRETURN(1); |
| 9378 |
0 |
| }); } |
| 9379 |
|
| |
| 9380 |
|
| |
| 9381 |
|
| |
| 9382 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getInteriorIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getInteriorIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9383 |
|
| { |
| 9384 |
1 |
| dVAR; dXSARGS; |
| 9385 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9386 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9387 |
|
| { |
| 9388 |
|
| Coordinate * RETVAL; |
| 9389 |
1 |
▶ | SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9390 |
|
| ; |
| 9391 |
|
| #line 15 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 9392 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 9393 |
|
| RETVAL = new Coordinate(THIS->getInteriorIntersection()); |
| 9394 |
|
| #line 9395 "Geos_xsgen.cc" |
| 9395 |
|
| { |
| 9396 |
|
| SV * RETVALSV; |
| 9397 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 9398 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9399 |
1 |
| ST(0) = RETVALSV; |
| 9400 |
|
| } |
| 9401 |
1 |
| } |
| 9402 |
1 |
| XSRETURN(1); |
| 9403 |
1 |
| }); } |
| 9404 |
|
| |
| 9405 |
|
| |
| 9406 |
|
| |
| 9407 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getIntersectionSegments) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getIntersectionSegments) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9408 |
|
| { |
| 9409 |
1 |
| dVAR; dXSARGS; |
| 9410 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9411 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9412 |
|
| { |
| 9413 |
1 |
| xs::Array RETVAL; |
| 9414 |
1 |
▶ | SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SingleInteriorIntersectionFinder* THIS = xs::in<SingleInteriorIntersectionFinder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9415 |
|
| ; |
| 9416 |
|
| #line 19 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 9417 |
|
| auto& vector = THIS->getIntersectionSegments(); |
| 9418 |
|
| auto r = xs::Array::create(vector.size()); |
| 9419 |
|
| for(auto& c: vector) { |
| 9420 |
|
| auto copy = xs::out<Coordinate*>(new Coordinate(c)); |
| 9421 |
|
| r.push(copy); |
| 9422 |
|
| } |
| 9423 |
|
| RETVAL = r; |
| 9424 |
|
| #line 9425 "Geos_xsgen.cc" |
| 9425 |
|
| { |
| 9426 |
|
| SV * RETVALSV; |
| 9427 |
1 |
| RETVALSV = NULL; |
| 9428 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9429 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 9430 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9431 |
1 |
| ST(0) = RETVALSV; |
| 9432 |
|
| } |
| 9433 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9434 |
1 |
| XSRETURN(1); |
| 9435 |
1 |
| }); } |
| 9436 |
|
| |
| 9437 |
|
| |
| 9438 |
|
| |
| 9439 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9440 |
|
| { |
| 9441 |
0 |
| dVAR; dXSARGS; |
| 9442 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9443 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9444 |
|
| { |
| 9445 |
|
| int RETVAL; |
| 9446 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9447 |
|
| #line 29 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 9448 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9449 |
|
| #line 9450 "Geos_xsgen.cc" |
| 9450 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9451 |
0 |
| ST(0) = TARG; |
| 9452 |
|
| } |
| 9453 |
0 |
| XSRETURN(1); |
| 9454 |
0 |
| }); } |
| 9455 |
|
| |
| 9456 |
|
| |
| 9457 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SingleInteriorIntersectionFinder.xsi' */ |
| 9458 |
|
| |
| 9459 |
|
| |
| 9460 |
|
| /* INCLUDE: Including 'xsi/noding/IntersectionAdder.xsi' from 'Geos.xs' */ |
| 9461 |
|
| |
| 9462 |
|
| |
| 9463 |
|
| |
| 9464 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 9465 |
|
| { |
| 9466 |
2 |
| dVAR; dXSARGS; |
| 9467 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 9468 |
0 |
| croak_xs_usage(cv, "_____unused18, liObj"); |
| 9469 |
|
| { |
| 9470 |
2 |
| Sv RETVAL; |
| 9471 |
2 |
▶ | SV* liObj = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* liObj = ST(1) |
2 |
0 |
2 |
|
| 9472 |
|
| ; |
| 9473 |
|
| #line 5 "./xsi/noding/IntersectionAdder.xsi" |
| 9474 |
|
| LineIntersector& li = xs::in<LineIntersector&>(liObj); |
| 9475 |
|
| Object wrapped = xs::out<>(new IntersectionAdder(li)); |
| 9476 |
|
| wrapped.payload_attach(SvRV(liObj), &payload_marker); |
| 9477 |
|
| RETVAL = wrapped.ref(); |
| 9478 |
|
| #line 9479 "Geos_xsgen.cc" |
| 9479 |
|
| { |
| 9480 |
|
| SV * RETVALSV; |
| 9481 |
2 |
| RETVALSV = NULL; |
| 9482 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 9483 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 9484 |
0 |
| else switch (RETVAL.type()) { |
| 9485 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9486 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9487 |
0 |
| case SVt_PVCV: |
| 9488 |
|
| case SVt_PVIO: |
| 9489 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9490 |
0 |
| break; |
| 9491 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9492 |
|
| } |
| 9493 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 9494 |
2 |
| ST(0) = RETVALSV; |
| 9495 |
|
| } |
| 9496 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 9497 |
2 |
| XSRETURN(1); |
| 9498 |
2 |
| }); } |
| 9499 |
|
| |
| 9500 |
|
| |
| 9501 |
|
| |
| 9502 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_getLineIntersector) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_getLineIntersector) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9503 |
|
| { |
| 9504 |
1 |
| dVAR; dXSARGS; |
| 9505 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9506 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9507 |
|
| { |
| 9508 |
1 |
| Sv RETVAL; |
| 9509 |
1 |
▶ | IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9510 |
|
| ; |
| 9511 |
|
| #line 12 "./xsi/noding/IntersectionAdder.xsi" |
| 9512 |
|
| (void)THIS; |
| 9513 |
|
| Object me{ST(0)}; |
| 9514 |
|
| auto payload = me.payload(&payload_marker); |
| 9515 |
|
| Object li{payload.obj}; |
| 9516 |
|
| RETVAL = li.ref(); |
| 9517 |
|
| #line 9518 "Geos_xsgen.cc" |
| 9518 |
|
| { |
| 9519 |
|
| SV * RETVALSV; |
| 9520 |
1 |
| RETVALSV = NULL; |
| 9521 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9522 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 9523 |
0 |
| else switch (RETVAL.type()) { |
| 9524 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9525 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9526 |
0 |
| case SVt_PVCV: |
| 9527 |
|
| case SVt_PVIO: |
| 9528 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9529 |
0 |
| break; |
| 9530 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9531 |
|
| } |
| 9532 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9533 |
1 |
| ST(0) = RETVALSV; |
| 9534 |
|
| } |
| 9535 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9536 |
1 |
| XSRETURN(1); |
| 9537 |
1 |
| }); } |
| 9538 |
|
| |
| 9539 |
|
| |
| 9540 |
|
| |
| 9541 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9542 |
|
| { |
| 9543 |
1 |
| dVAR; dXSARGS; |
| 9544 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9545 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9546 |
|
| { |
| 9547 |
|
| bool RETVAL; |
| 9548 |
1 |
▶ | IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9549 |
|
| ; |
| 9550 |
|
| #line 19 "./xsi/noding/IntersectionAdder.xsi" |
| 9551 |
|
| RETVAL = THIS->hasIntersection(); |
| 9552 |
|
| #line 9553 "Geos_xsgen.cc" |
| 9553 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 9554 |
|
| } |
| 9555 |
1 |
| XSRETURN(1); |
| 9556 |
1 |
| }); } |
| 9557 |
|
| |
| 9558 |
|
| |
| 9559 |
|
| |
| 9560 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasProperIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasProperIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9561 |
|
| { |
| 9562 |
1 |
| dVAR; dXSARGS; |
| 9563 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9564 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9565 |
|
| { |
| 9566 |
|
| bool RETVAL; |
| 9567 |
1 |
▶ | IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9568 |
|
| ; |
| 9569 |
|
| #line 21 "./xsi/noding/IntersectionAdder.xsi" |
| 9570 |
|
| RETVAL = THIS->hasProperIntersection(); |
| 9571 |
|
| #line 9572 "Geos_xsgen.cc" |
| 9572 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 9573 |
|
| } |
| 9574 |
1 |
| XSRETURN(1); |
| 9575 |
1 |
| }); } |
| 9576 |
|
| |
| 9577 |
|
| |
| 9578 |
|
| |
| 9579 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasProperInteriorIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasProperInteriorIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9580 |
|
| { |
| 9581 |
1 |
| dVAR; dXSARGS; |
| 9582 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9583 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9584 |
|
| { |
| 9585 |
|
| bool RETVAL; |
| 9586 |
1 |
▶ | IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9587 |
|
| ; |
| 9588 |
|
| #line 23 "./xsi/noding/IntersectionAdder.xsi" |
| 9589 |
|
| RETVAL = THIS->hasProperInteriorIntersection(); |
| 9590 |
|
| #line 9591 "Geos_xsgen.cc" |
| 9591 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 9592 |
|
| } |
| 9593 |
1 |
| XSRETURN(1); |
| 9594 |
1 |
| }); } |
| 9595 |
|
| |
| 9596 |
|
| |
| 9597 |
|
| |
| 9598 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasInteriorIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_hasInteriorIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9599 |
|
| { |
| 9600 |
1 |
| dVAR; dXSARGS; |
| 9601 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9602 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9603 |
|
| { |
| 9604 |
|
| bool RETVAL; |
| 9605 |
1 |
▶ | IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IntersectionAdder* THIS = xs::in<IntersectionAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9606 |
|
| ; |
| 9607 |
|
| #line 25 "./xsi/noding/IntersectionAdder.xsi" |
| 9608 |
|
| RETVAL = THIS->hasInteriorIntersection(); |
| 9609 |
|
| #line 9610 "Geos_xsgen.cc" |
| 9610 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 9611 |
|
| } |
| 9612 |
1 |
| XSRETURN(1); |
| 9613 |
1 |
| }); } |
| 9614 |
|
| |
| 9615 |
|
| |
| 9616 |
|
| |
| 9617 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionAdder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9618 |
|
| { |
| 9619 |
0 |
| dVAR; dXSARGS; |
| 9620 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9621 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9622 |
|
| { |
| 9623 |
|
| int RETVAL; |
| 9624 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9625 |
|
| #line 27 "./xsi/noding/IntersectionAdder.xsi" |
| 9626 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9627 |
|
| #line 9628 "Geos_xsgen.cc" |
| 9628 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9629 |
0 |
| ST(0) = TARG; |
| 9630 |
|
| } |
| 9631 |
0 |
| XSRETURN(1); |
| 9632 |
0 |
| }); } |
| 9633 |
|
| |
| 9634 |
|
| |
| 9635 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/IntersectionAdder.xsi' */ |
| 9636 |
|
| |
| 9637 |
|
| |
| 9638 |
|
| /* INCLUDE: Including 'xsi/noding/IntersectionFinderAdder.xsi' from 'Geos.xs' */ |
| 9639 |
|
| |
| 9640 |
|
| |
| 9641 |
|
| |
| 9642 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9643 |
|
| { |
| 9644 |
1 |
| dVAR; dXSARGS; |
| 9645 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 9646 |
0 |
| croak_xs_usage(cv, "_____unused19, liObj, coords"); |
| 9647 |
|
| { |
| 9648 |
1 |
| Sv RETVAL; |
| 9649 |
1 |
| SV* liObj = ST(1) |
| 9650 |
|
| ; |
| 9651 |
1 |
▶ | Array coords = ST(2); |
Branch: 1 branch
| Branch | True | False | Total |
| Array coords = ST(2); |
1 |
0 |
1 |
|
| 9652 |
1 |
▶ | if (!coords && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!coords && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!coords && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!coords && SvOK(ST(2))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 9653 |
|
| ; |
| 9654 |
|
| #line 5 "./xsi/noding/IntersectionFinderAdder.xsi" |
| 9655 |
|
| LineIntersector& li = xs::in<LineIntersector&>(liObj); |
| 9656 |
|
| auto* payload = new IntersectionFinderAdder_payload{SvRV(liObj), {}}; |
| 9657 |
|
| |
| 9658 |
|
| auto* v = &payload->coords; |
| 9659 |
|
| v->reserve(coords.size()); |
| 9660 |
|
| for(auto it: coords) { |
| 9661 |
|
| Coordinate& c = xs::in<Coordinate&>(it); |
| 9662 |
|
| v->emplace_back(c); |
| 9663 |
|
| } |
| 9664 |
|
| |
| 9665 |
|
| Object wrapped = xs::out<>(new IntersectionFinderAdder(li, *v)); |
| 9666 |
|
| wrapped.payload_attach(payload, &payload_marker_IntersectionFinderAdder); |
| 9667 |
|
| |
| 9668 |
|
| RETVAL = wrapped.ref(); |
| 9669 |
|
| #line 9670 "Geos_xsgen.cc" |
| 9670 |
|
| { |
| 9671 |
|
| SV * RETVALSV; |
| 9672 |
1 |
| RETVALSV = NULL; |
| 9673 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9674 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 9675 |
0 |
| else switch (RETVAL.type()) { |
| 9676 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9677 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9678 |
0 |
| case SVt_PVCV: |
| 9679 |
|
| case SVt_PVIO: |
| 9680 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9681 |
0 |
| break; |
| 9682 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9683 |
|
| } |
| 9684 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9685 |
1 |
| ST(0) = RETVALSV; |
| 9686 |
|
| } |
| 9687 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9688 |
1 |
| XSRETURN(1); |
| 9689 |
1 |
| }); } |
| 9690 |
|
| |
| 9691 |
|
| |
| 9692 |
|
| |
| 9693 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_getInteriorIntersections) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_getInteriorIntersections) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9694 |
|
| { |
| 9695 |
1 |
| dVAR; dXSARGS; |
| 9696 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9697 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9698 |
|
| { |
| 9699 |
1 |
| xs::Array RETVAL; |
| 9700 |
1 |
▶ | IntersectionFinderAdder* THIS = xs::in<IntersectionFinderAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| IntersectionFinderAdder* THIS = xs::in<IntersectionFinderAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| IntersectionFinderAdder* THIS = xs::in<IntersectionFinderAdder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9701 |
|
| ; |
| 9702 |
|
| #line 22 "./xsi/noding/IntersectionFinderAdder.xsi" |
| 9703 |
|
| (void)THIS; |
| 9704 |
|
| Object me{ST(0)}; |
| 9705 |
|
| auto payload = me.payload(&payload_marker_IntersectionFinderAdder); |
| 9706 |
|
| auto* real_payload = static_cast<IntersectionFinderAdder_payload*>(payload.ptr); |
| 9707 |
|
| auto* v = &real_payload->coords; |
| 9708 |
|
| |
| 9709 |
|
| auto result = xs::Array::create(v->size()); |
| 9710 |
|
| for(auto& c: *v) { |
| 9711 |
|
| result.push(xs::out<Coordinate*>(new Coordinate(c))); |
| 9712 |
|
| } |
| 9713 |
|
| RETVAL = result; |
| 9714 |
|
| #line 9715 "Geos_xsgen.cc" |
| 9715 |
|
| { |
| 9716 |
|
| SV * RETVALSV; |
| 9717 |
1 |
| RETVALSV = NULL; |
| 9718 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9719 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 9720 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9721 |
1 |
| ST(0) = RETVALSV; |
| 9722 |
|
| } |
| 9723 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9724 |
1 |
| XSRETURN(1); |
| 9725 |
1 |
| }); } |
| 9726 |
|
| |
| 9727 |
|
| |
| 9728 |
|
| |
| 9729 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IntersectionFinderAdder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9730 |
|
| { |
| 9731 |
0 |
| dVAR; dXSARGS; |
| 9732 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9733 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9734 |
|
| { |
| 9735 |
|
| int RETVAL; |
| 9736 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9737 |
|
| #line 35 "./xsi/noding/IntersectionFinderAdder.xsi" |
| 9738 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9739 |
|
| #line 9740 "Geos_xsgen.cc" |
| 9740 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9741 |
0 |
| ST(0) = TARG; |
| 9742 |
|
| } |
| 9743 |
0 |
| XSRETURN(1); |
| 9744 |
0 |
| }); } |
| 9745 |
|
| |
| 9746 |
|
| |
| 9747 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/IntersectionFinderAdder.xsi' */ |
| 9748 |
|
| |
| 9749 |
|
| |
| 9750 |
|
| /* INCLUDE: Including 'xsi/noding/Noder.xsi' from 'Geos.xs' */ |
| 9751 |
|
| |
| 9752 |
|
| |
| 9753 |
|
| |
| 9754 |
10 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__Noder_computeNodes) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__Noder_computeNodes) { xs::throw_guard(cv, [=]() |
5 |
0 |
5 |
|
| 9755 |
|
| { |
| 9756 |
5 |
| dVAR; dXSARGS; |
| 9757 |
5 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
5 |
5 |
|
| 9758 |
0 |
| croak_xs_usage(cv, "THIS, segStrings"); |
| 9759 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 9760 |
5 |
| SP -= items; |
| 9761 |
|
| { |
| 9762 |
5 |
▶ | Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
5 |
0 |
5 |
| Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
5 |
5 |
|
| 9763 |
|
| ; |
| 9764 |
5 |
▶ | Array segStrings = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array segStrings = ST(1); |
5 |
0 |
5 |
|
| 9765 |
5 |
▶ | if (!segStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!segStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
5 |
5 |
| if (!segStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!segStrings && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
5 |
5 |
|
| 9766 |
|
| ; |
| 9767 |
|
| #line 5 "./xsi/noding/Noder.xsi" |
| 9768 |
|
| auto segments = Noder_payload::vector_t(); |
| 9769 |
|
| segments.reserve(segStrings.size()); |
| 9770 |
|
| |
| 9771 |
|
| for(auto it: segStrings) { |
| 9772 |
|
| SegmentString& ss = xs::in<SegmentString&>(it); |
| 9773 |
|
| segments.push_back(&ss); |
| 9774 |
|
| } |
| 9775 |
|
| |
| 9776 |
|
| auto payload = new Noder_payload(); |
| 9777 |
|
| payload->array_ref = xs::Ref::create(segStrings); |
| 9778 |
|
| payload->segments = std::move(segments); |
| 9779 |
|
| |
| 9780 |
|
| |
| 9781 |
|
| Object self{ST(0)}; |
| 9782 |
|
| self.payload_attach(payload, &payload_marker_Noder); |
| 9783 |
|
| |
| 9784 |
|
| THIS->computeNodes(&payload->segments); |
| 9785 |
|
| #line 9786 "Geos_xsgen.cc" |
| 9786 |
5 |
| PUTBACK; |
| 9787 |
10 |
| return; |
| 9788 |
5 |
| } |
| 9789 |
5 |
| }); } |
| 9790 |
|
| |
| 9791 |
|
| |
| 9792 |
|
| |
| 9793 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__Noder_getNodedSubstrings) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__Noder_getNodedSubstrings) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 9794 |
|
| { |
| 9795 |
6 |
| dVAR; dXSARGS; |
| 9796 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 9797 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9798 |
|
| { |
| 9799 |
6 |
| Sv RETVAL; |
| 9800 |
6 |
▶ | Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| Noder* THIS = xs::in<Noder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 9801 |
|
| ; |
| 9802 |
|
| #line 25 "./xsi/noding/Noder.xsi" |
| 9803 |
|
| auto items = THIS->getNodedSubstrings(); |
| 9804 |
|
| if (!items) XSRETURN_UNDEF; |
| 9805 |
|
| else { |
| 9806 |
|
| xs::Array result = xs::Array::create(items->size()); |
| 9807 |
|
| for(auto it: *items) { |
| 9808 |
|
| result.push(xs::out<SegmentString*>(it)); |
| 9809 |
|
| } |
| 9810 |
|
| delete items; |
| 9811 |
|
| RETVAL = xs::Ref::create(result); |
| 9812 |
|
| } |
| 9813 |
|
| #line 9814 "Geos_xsgen.cc" |
| 9814 |
|
| { |
| 9815 |
|
| SV * RETVALSV; |
| 9816 |
6 |
| RETVALSV = NULL; |
| 9817 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 9818 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 9819 |
0 |
| else switch (RETVAL.type()) { |
| 9820 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9821 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9822 |
0 |
| case SVt_PVCV: |
| 9823 |
|
| case SVt_PVIO: |
| 9824 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9825 |
0 |
| break; |
| 9826 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9827 |
|
| } |
| 9828 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 9829 |
6 |
| ST(0) = RETVALSV; |
| 9830 |
|
| } |
| 9831 |
6 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
|
| 9832 |
6 |
| XSRETURN(1); |
| 9833 |
6 |
| }); } |
| 9834 |
|
| |
| 9835 |
|
| |
| 9836 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/Noder.xsi' */ |
| 9837 |
|
| |
| 9838 |
|
| |
| 9839 |
|
| /* INCLUDE: Including 'xsi/noding/IteratedNoder.xsi' from 'Geos.xs' */ |
| 9840 |
|
| |
| 9841 |
|
| |
| 9842 |
|
| |
| 9843 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 9844 |
|
| { |
| 9845 |
2 |
| dVAR; dXSARGS; |
| 9846 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 9847 |
0 |
| croak_xs_usage(cv, "_____unused20, precisionModel"); |
| 9848 |
|
| { |
| 9849 |
2 |
| Sv RETVAL; |
| 9850 |
2 |
▶ | SV* precisionModel = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* precisionModel = ST(1) |
2 |
0 |
2 |
|
| 9851 |
|
| ; |
| 9852 |
|
| #line 5 "./xsi/noding/IteratedNoder.xsi" |
| 9853 |
|
| PrecisionModel& pm = xs::in<PrecisionModel&>(precisionModel); |
| 9854 |
|
| Object wrapped = xs::out<IteratedNoder*>(new IteratedNoder(&pm)); |
| 9855 |
|
| wrapped.payload_attach(precisionModel, &payload_marker); |
| 9856 |
|
| RETVAL = wrapped.ref(); |
| 9857 |
|
| #line 9858 "Geos_xsgen.cc" |
| 9858 |
|
| { |
| 9859 |
|
| SV * RETVALSV; |
| 9860 |
2 |
| RETVALSV = NULL; |
| 9861 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 9862 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 9863 |
0 |
| else switch (RETVAL.type()) { |
| 9864 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9865 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9866 |
0 |
| case SVt_PVCV: |
| 9867 |
|
| case SVt_PVIO: |
| 9868 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9869 |
0 |
| break; |
| 9870 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9871 |
|
| } |
| 9872 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 9873 |
2 |
| ST(0) = RETVALSV; |
| 9874 |
|
| } |
| 9875 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 9876 |
2 |
| XSRETURN(1); |
| 9877 |
2 |
| }); } |
| 9878 |
|
| |
| 9879 |
|
| |
| 9880 |
|
| |
| 9881 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_setMaximumIterations) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_setMaximumIterations) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9882 |
|
| { |
| 9883 |
1 |
| dVAR; dXSARGS; |
| 9884 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 9885 |
0 |
| croak_xs_usage(cv, "THIS, n"); |
| 9886 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 9887 |
1 |
| SP -= items; |
| 9888 |
|
| { |
| 9889 |
1 |
▶ | IteratedNoder* THIS = xs::in<IteratedNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| IteratedNoder* THIS = xs::in<IteratedNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9890 |
|
| ; |
| 9891 |
1 |
| int n = (int)SvIV(ST(1)) |
| 9892 |
|
| ; |
| 9893 |
|
| #line 11 "./xsi/noding/IteratedNoder.xsi" |
| 9894 |
|
| THIS->setMaximumIterations(n); |
| 9895 |
|
| #line 9896 "Geos_xsgen.cc" |
| 9896 |
1 |
| PUTBACK; |
| 9897 |
1 |
| return; |
| 9898 |
|
| } |
| 9899 |
1 |
| }); } |
| 9900 |
|
| |
| 9901 |
|
| |
| 9902 |
|
| |
| 9903 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__IteratedNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 9904 |
|
| { |
| 9905 |
0 |
| dVAR; dXSARGS; |
| 9906 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 9907 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 9908 |
|
| { |
| 9909 |
|
| int RETVAL; |
| 9910 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 9911 |
|
| #line 13 "./xsi/noding/IteratedNoder.xsi" |
| 9912 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 9913 |
|
| #line 9914 "Geos_xsgen.cc" |
| 9914 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 9915 |
0 |
| ST(0) = TARG; |
| 9916 |
|
| } |
| 9917 |
0 |
| XSRETURN(1); |
| 9918 |
0 |
| }); } |
| 9919 |
|
| |
| 9920 |
|
| |
| 9921 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/IteratedNoder.xsi' */ |
| 9922 |
|
| |
| 9923 |
|
| |
| 9924 |
|
| /* INCLUDE: Including 'xsi/noding/ScaledNoder.xsi' from 'Geos.xs' */ |
| 9925 |
|
| |
| 9926 |
|
| |
| 9927 |
|
| |
| 9928 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9929 |
|
| { |
| 9930 |
1 |
| dVAR; dXSARGS; |
| 9931 |
1 |
▶ | if (items < 3 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 3 || items > 5) |
1 |
0 |
1 |
| if (items < 3 || items > 5) |
0 |
1 |
1 |
|
| 9932 |
0 |
| croak_xs_usage(cv, "_____unused21, noder, nScaleFactor, nOffsetX= 0.0, nOffsetY= 0.0"); |
| 9933 |
|
| { |
| 9934 |
1 |
| Sv RETVAL; |
| 9935 |
1 |
| SV* noder = ST(1) |
| 9936 |
|
| ; |
| 9937 |
1 |
▶ | double nScaleFactor = (double)SvNV(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| double nScaleFactor = (double)SvNV(ST(2)) |
1 |
0 |
1 |
|
| 9938 |
|
| ; |
| 9939 |
|
| double nOffsetX; |
| 9940 |
|
| double nOffsetY; |
| 9941 |
|
| |
| 9942 |
1 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
0 |
1 |
1 |
|
| 9943 |
0 |
| nOffsetX = 0.0; |
| 9944 |
|
| else { |
| 9945 |
1 |
▶ | nOffsetX = (double)SvNV(ST(3)) |
Branch: 1 branch
| Branch | True | False | Total |
| nOffsetX = (double)SvNV(ST(3)) |
1 |
0 |
1 |
|
| 9946 |
|
| ; |
| 9947 |
|
| } |
| 9948 |
|
| |
| 9949 |
1 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
0 |
1 |
1 |
|
| 9950 |
0 |
| nOffsetY = 0.0; |
| 9951 |
|
| else { |
| 9952 |
1 |
▶ | nOffsetY = (double)SvNV(ST(4)) |
Branch: 1 branch
| Branch | True | False | Total |
| nOffsetY = (double)SvNV(ST(4)) |
1 |
0 |
1 |
|
| 9953 |
|
| ; |
| 9954 |
|
| } |
| 9955 |
|
| #line 5 "./xsi/noding/ScaledNoder.xsi" |
| 9956 |
|
| Noder& n = xs::in<Noder&>(noder); |
| 9957 |
|
| Object wrapped = xs::out<>(new ScaledNoder(n, nScaleFactor, nOffsetX, nOffsetY)); |
| 9958 |
|
| wrapped.payload_attach(SvRV(noder), &payload_marker); |
| 9959 |
|
| RETVAL = wrapped.ref(); |
| 9960 |
|
| #line 9961 "Geos_xsgen.cc" |
| 9961 |
|
| { |
| 9962 |
|
| SV * RETVALSV; |
| 9963 |
1 |
| RETVALSV = NULL; |
| 9964 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 9965 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 9966 |
0 |
| else switch (RETVAL.type()) { |
| 9967 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9968 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 9969 |
0 |
| case SVt_PVCV: |
| 9970 |
|
| case SVt_PVIO: |
| 9971 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 9972 |
0 |
| break; |
| 9973 |
0 |
| default: throw "unknown type of Sv to return"; |
| 9974 |
|
| } |
| 9975 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 9976 |
1 |
| ST(0) = RETVALSV; |
| 9977 |
|
| } |
| 9978 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 9979 |
1 |
| XSRETURN(1); |
| 9980 |
1 |
| }); } |
| 9981 |
|
| |
| 9982 |
|
| |
| 9983 |
|
| |
| 9984 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_isIntegerPrecision) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_isIntegerPrecision) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 9985 |
|
| { |
| 9986 |
1 |
| dVAR; dXSARGS; |
| 9987 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 9988 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 9989 |
|
| { |
| 9990 |
|
| bool RETVAL; |
| 9991 |
1 |
▶ | ScaledNoder* THIS = xs::in<ScaledNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| ScaledNoder* THIS = xs::in<ScaledNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 9992 |
|
| ; |
| 9993 |
|
| #line 11 "./xsi/noding/ScaledNoder.xsi" |
| 9994 |
|
| RETVAL = THIS->isIntegerPrecision(); |
| 9995 |
|
| #line 9996 "Geos_xsgen.cc" |
| 9996 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 9997 |
|
| } |
| 9998 |
1 |
| XSRETURN(1); |
| 9999 |
1 |
| }); } |
| 10000 |
|
| |
| 10001 |
|
| |
| 10002 |
|
| |
| 10003 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__ScaledNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 10004 |
|
| { |
| 10005 |
0 |
| dVAR; dXSARGS; |
| 10006 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 10007 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 10008 |
|
| { |
| 10009 |
|
| int RETVAL; |
| 10010 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 10011 |
|
| #line 13 "./xsi/noding/ScaledNoder.xsi" |
| 10012 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 10013 |
|
| #line 10014 "Geos_xsgen.cc" |
| 10014 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 10015 |
0 |
| ST(0) = TARG; |
| 10016 |
|
| } |
| 10017 |
0 |
| XSRETURN(1); |
| 10018 |
0 |
| }); } |
| 10019 |
|
| |
| 10020 |
|
| |
| 10021 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/ScaledNoder.xsi' */ |
| 10022 |
|
| |
| 10023 |
|
| |
| 10024 |
|
| /* INCLUDE: Including 'xsi/noding/SinglePassNoder.xsi' from 'Geos.xs' */ |
| 10025 |
|
| |
| 10026 |
|
| |
| 10027 |
|
| |
| 10028 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SinglePassNoder_setSegmentIntersector) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SinglePassNoder_setSegmentIntersector) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 10029 |
|
| { |
| 10030 |
0 |
| dVAR; dXSARGS; |
| 10031 |
0 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
0 |
0 |
0 |
| if (items < 1 || items > 2) |
0 |
0 |
0 |
|
| 10032 |
0 |
| croak_xs_usage(cv, "THIS, newSegInt= NULL"); |
| 10033 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10034 |
0 |
| SP -= items; |
| 10035 |
|
| { |
| 10036 |
0 |
▶ | SinglePassNoder* THIS = xs::in<SinglePassNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SinglePassNoder* THIS = xs::in<SinglePassNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
| SinglePassNoder* THIS = xs::in<SinglePassNoder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
0 |
0 |
|
| 10037 |
|
| ; |
| 10038 |
|
| SV * newSegInt; |
| 10039 |
|
| |
| 10040 |
0 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
0 |
0 |
0 |
|
| 10041 |
0 |
| newSegInt = NULL; |
| 10042 |
|
| else { |
| 10043 |
0 |
| newSegInt = ST(1) |
| 10044 |
|
| ; |
| 10045 |
|
| } |
| 10046 |
|
| #line 5 "./xsi/noding/SinglePassNoder.xsi" |
| 10047 |
|
| Object self{ST(0)}; |
| 10048 |
|
| |
| 10049 |
|
| SegmentIntersector* si = newSegInt ? xs::in<SegmentIntersector*>(newSegInt) : NULL; |
| 10050 |
|
| if (si) { |
| 10051 |
|
| self.payload_attach(SvRV(newSegInt), &payload_marker); |
| 10052 |
|
| } |
| 10053 |
|
| else if (self.payload_exists(&payload_marker)) { |
| 10054 |
|
| self.payload_detach(&payload_marker); |
| 10055 |
|
| } |
| 10056 |
|
| |
| 10057 |
|
| THIS->setSegmentIntersector(si); |
| 10058 |
|
| #line 10059 "Geos_xsgen.cc" |
| 10059 |
0 |
| PUTBACK; |
| 10060 |
0 |
| return; |
| 10061 |
0 |
| } |
| 10062 |
0 |
| }); } |
| 10063 |
|
| |
| 10064 |
|
| |
| 10065 |
|
| |
| 10066 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SinglePassNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SinglePassNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 10067 |
|
| { |
| 10068 |
0 |
| dVAR; dXSARGS; |
| 10069 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 10070 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 10071 |
|
| { |
| 10072 |
|
| int RETVAL; |
| 10073 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 10074 |
|
| #line 19 "./xsi/noding/SinglePassNoder.xsi" |
| 10075 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 10076 |
|
| #line 10077 "Geos_xsgen.cc" |
| 10077 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 10078 |
0 |
| ST(0) = TARG; |
| 10079 |
|
| } |
| 10080 |
0 |
| XSRETURN(1); |
| 10081 |
0 |
| }); } |
| 10082 |
|
| |
| 10083 |
|
| |
| 10084 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SinglePassNoder.xsi' */ |
| 10085 |
|
| |
| 10086 |
|
| |
| 10087 |
|
| /* INCLUDE: Including 'xsi/noding/SimpleNoder.xsi' from 'Geos.xs' */ |
| 10088 |
|
| |
| 10089 |
|
| |
| 10090 |
|
| |
| 10091 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SimpleNoder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SimpleNoder_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10092 |
|
| { |
| 10093 |
1 |
| dVAR; dXSARGS; |
| 10094 |
1 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
1 |
0 |
1 |
| if (items < 1 || items > 2) |
0 |
1 |
1 |
|
| 10095 |
0 |
| croak_xs_usage(cv, "_____unused22, newSegInt= NULL"); |
| 10096 |
|
| { |
| 10097 |
1 |
| Sv RETVAL; |
| 10098 |
|
| SV * newSegInt; |
| 10099 |
|
| |
| 10100 |
1 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
0 |
1 |
1 |
|
| 10101 |
0 |
| newSegInt = NULL; |
| 10102 |
|
| else { |
| 10103 |
1 |
| newSegInt = ST(1) |
| 10104 |
|
| ; |
| 10105 |
|
| } |
| 10106 |
|
| #line 5 "./xsi/noding/SimpleNoder.xsi" |
| 10107 |
|
| SegmentIntersector* si = newSegInt ? xs::in<SegmentIntersector*>(newSegInt) : NULL; |
| 10108 |
|
| Object self{xs::out<SimpleNoder*>(new SimpleNoder(si))}; |
| 10109 |
|
| if (si) { |
| 10110 |
|
| self.payload_attach(SvRV(newSegInt), &payload_marker); |
| 10111 |
|
| } |
| 10112 |
|
| RETVAL = self.ref(); |
| 10113 |
|
| #line 10114 "Geos_xsgen.cc" |
| 10114 |
|
| { |
| 10115 |
|
| SV * RETVALSV; |
| 10116 |
1 |
| RETVALSV = NULL; |
| 10117 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 10118 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 10119 |
0 |
| else switch (RETVAL.type()) { |
| 10120 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10121 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10122 |
0 |
| case SVt_PVCV: |
| 10123 |
|
| case SVt_PVIO: |
| 10124 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 10125 |
0 |
| break; |
| 10126 |
0 |
| default: throw "unknown type of Sv to return"; |
| 10127 |
|
| } |
| 10128 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10129 |
1 |
| ST(0) = RETVALSV; |
| 10130 |
|
| } |
| 10131 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 10132 |
1 |
| XSRETURN(1); |
| 10133 |
1 |
| }); } |
| 10134 |
|
| |
| 10135 |
|
| |
| 10136 |
|
| |
| 10137 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SimpleNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SimpleNoder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 10138 |
|
| { |
| 10139 |
0 |
| dVAR; dXSARGS; |
| 10140 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 10141 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 10142 |
|
| { |
| 10143 |
|
| int RETVAL; |
| 10144 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 10145 |
|
| #line 14 "./xsi/noding/SimpleNoder.xsi" |
| 10146 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 10147 |
|
| #line 10148 "Geos_xsgen.cc" |
| 10148 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 10149 |
0 |
| ST(0) = TARG; |
| 10150 |
|
| } |
| 10151 |
0 |
| XSRETURN(1); |
| 10152 |
0 |
| }); } |
| 10153 |
|
| |
| 10154 |
|
| |
| 10155 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SimpleNoder.xsi' */ |
| 10156 |
|
| |
| 10157 |
|
| |
| 10158 |
|
| /* INCLUDE: Including 'xsi/noding/SimpleSnapRounder.xsi' from 'Geos.xs' */ |
| 10159 |
|
| |
| 10160 |
|
| |
| 10161 |
|
| |
| 10162 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10163 |
|
| { |
| 10164 |
2 |
| dVAR; dXSARGS; |
| 10165 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 10166 |
0 |
| croak_xs_usage(cv, "_____unused23, precisionModel"); |
| 10167 |
|
| { |
| 10168 |
2 |
| Sv RETVAL; |
| 10169 |
2 |
▶ | SV* precisionModel = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* precisionModel = ST(1) |
2 |
0 |
2 |
|
| 10170 |
|
| ; |
| 10171 |
|
| #line 5 "./xsi/noding/SimpleSnapRounder.xsi" |
| 10172 |
|
| auto& pm = xs::in<PrecisionModel&>(precisionModel); |
| 10173 |
|
| Object wrapped = xs::out<SimpleSnapRounder*>(new SimpleSnapRounder(pm)); |
| 10174 |
|
| wrapped.payload_attach(precisionModel, &payload_marker); |
| 10175 |
|
| RETVAL = wrapped.ref(); |
| 10176 |
|
| #line 10177 "Geos_xsgen.cc" |
| 10177 |
|
| { |
| 10178 |
|
| SV * RETVALSV; |
| 10179 |
2 |
| RETVALSV = NULL; |
| 10180 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 10181 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 10182 |
0 |
| else switch (RETVAL.type()) { |
| 10183 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10184 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10185 |
0 |
| case SVt_PVCV: |
| 10186 |
|
| case SVt_PVIO: |
| 10187 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 10188 |
0 |
| break; |
| 10189 |
0 |
| default: throw "unknown type of Sv to return"; |
| 10190 |
|
| } |
| 10191 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 10192 |
2 |
| ST(0) = RETVALSV; |
| 10193 |
|
| } |
| 10194 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 10195 |
2 |
| XSRETURN(1); |
| 10196 |
2 |
| }); } |
| 10197 |
|
| |
| 10198 |
|
| |
| 10199 |
|
| |
| 10200 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_computeVertexSnaps) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_computeVertexSnaps) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10201 |
|
| { |
| 10202 |
2 |
| dVAR; dXSARGS; |
| 10203 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 10204 |
0 |
| croak_xs_usage(cv, "THIS, edges"); |
| 10205 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10206 |
2 |
| SP -= items; |
| 10207 |
|
| { |
| 10208 |
2 |
▶ | SimpleSnapRounder* THIS = xs::in<SimpleSnapRounder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SimpleSnapRounder* THIS = xs::in<SimpleSnapRounder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| SimpleSnapRounder* THIS = xs::in<SimpleSnapRounder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 10209 |
|
| ; |
| 10210 |
2 |
▶ | Array edges = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array edges = ST(1); |
2 |
0 |
2 |
|
| 10211 |
2 |
▶ | if (!edges && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!edges && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!edges && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!edges && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 10212 |
|
| ; |
| 10213 |
|
| #line 12 "./xsi/noding/SimpleSnapRounder.xsi" |
| 10214 |
|
| std::vector<SegmentString *> v; |
| 10215 |
|
| v.reserve(edges.size()); |
| 10216 |
|
| |
| 10217 |
|
| for(auto it: edges) { |
| 10218 |
|
| auto& ss = xs::in<SegmentString&>(it); |
| 10219 |
|
| v.push_back(&ss); |
| 10220 |
|
| } |
| 10221 |
|
| THIS->computeVertexSnaps(v); |
| 10222 |
|
| #line 10223 "Geos_xsgen.cc" |
| 10223 |
2 |
| PUTBACK; |
| 10224 |
4 |
| return; |
| 10225 |
2 |
| } |
| 10226 |
2 |
| }); } |
| 10227 |
|
| |
| 10228 |
|
| |
| 10229 |
|
| |
| 10230 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Noding__SimpleSnapRounder_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 10231 |
|
| { |
| 10232 |
0 |
| dVAR; dXSARGS; |
| 10233 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 10234 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 10235 |
|
| { |
| 10236 |
|
| int RETVAL; |
| 10237 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 10238 |
|
| #line 23 "./xsi/noding/SimpleSnapRounder.xsi" |
| 10239 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 10240 |
|
| #line 10241 "Geos_xsgen.cc" |
| 10241 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 10242 |
0 |
| ST(0) = TARG; |
| 10243 |
|
| } |
| 10244 |
0 |
| XSRETURN(1); |
| 10245 |
0 |
| }); } |
| 10246 |
|
| |
| 10247 |
|
| |
| 10248 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/noding/SimpleSnapRounder.xsi' */ |
| 10249 |
|
| |
| 10250 |
|
| |
| 10251 |
|
| /* INCLUDE: Including 'xsi/index/MonotoneChain.xsi' from 'Geos.xs' */ |
| 10252 |
|
| |
| 10253 |
|
| |
| 10254 |
|
| |
| 10255 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10256 |
|
| { |
| 10257 |
2 |
| dVAR; dXSARGS; |
| 10258 |
2 |
▶ | if (items != 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 4) |
0 |
2 |
2 |
|
| 10259 |
0 |
| croak_xs_usage(cv, "_____unused24, pts, start, end"); |
| 10260 |
|
| { |
| 10261 |
2 |
| Sv RETVAL; |
| 10262 |
2 |
▶ | Array pts = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array pts = ST(1); |
2 |
0 |
2 |
|
| 10263 |
2 |
▶ | if (!pts && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!pts && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!pts && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!pts && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 10264 |
|
| ; |
| 10265 |
2 |
▶ | std::size_t start = xs::in<std::size_t>(ST(2)); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t start = xs::in<std::size_t>(ST(2)); |
2 |
0 |
2 |
|
| 10266 |
|
| ; |
| 10267 |
2 |
▶ | std::size_t end = xs::in<std::size_t>(ST(3)); |
Branch: 2 branches
| Branch | True | False | Total |
| std::size_t end = xs::in<std::size_t>(ST(3)); |
2 |
0 |
2 |
| std::size_t end = xs::in<std::size_t>(ST(3)); |
2 |
0 |
2 |
|
| 10268 |
|
| ; |
| 10269 |
|
| #line 5 "./xsi/index/MonotoneChain.xsi" |
| 10270 |
|
| auto seq = Helper::convert_coords(pts); |
| 10271 |
|
| auto seq_ptr = seq.clone(); |
| 10272 |
|
| auto payload = new MonotoneChain_payload(); |
| 10273 |
|
| payload->seq.reset(seq_ptr); |
| 10274 |
|
| |
| 10275 |
|
| Object wrapped = xs::out<>(new MonotoneChain(*seq_ptr, start, end, NULL)); |
| 10276 |
|
| wrapped.payload_attach(payload, &payload_marker_MonotoneChain); |
| 10277 |
|
| |
| 10278 |
|
| RETVAL = wrapped.ref(); |
| 10279 |
|
| #line 10280 "Geos_xsgen.cc" |
| 10280 |
|
| { |
| 10281 |
|
| SV * RETVALSV; |
| 10282 |
2 |
| RETVALSV = NULL; |
| 10283 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 10284 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 10285 |
0 |
| else switch (RETVAL.type()) { |
| 10286 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10287 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10288 |
0 |
| case SVt_PVCV: |
| 10289 |
|
| case SVt_PVIO: |
| 10290 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 10291 |
0 |
| break; |
| 10292 |
0 |
| default: throw "unknown type of Sv to return"; |
| 10293 |
|
| } |
| 10294 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 10295 |
2 |
| ST(0) = RETVALSV; |
| 10296 |
|
| } |
| 10297 |
2 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 10298 |
2 |
| XSRETURN(1); |
| 10299 |
2 |
| }); } |
| 10300 |
|
| |
| 10301 |
|
| |
| 10302 |
|
| |
| 10303 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getChains) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getChains) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10304 |
|
| { |
| 10305 |
1 |
| dVAR; dXSARGS; |
| 10306 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10307 |
0 |
| croak_xs_usage(cv, "pts"); |
| 10308 |
|
| { |
| 10309 |
1 |
| Array RETVAL; |
| 10310 |
1 |
▶ | Array pts = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array pts = ST(0); |
1 |
0 |
1 |
|
| 10311 |
1 |
▶ | if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!pts && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 10312 |
|
| ; |
| 10313 |
|
| #line 17 "./xsi/index/MonotoneChain.xsi" |
| 10314 |
|
| auto seq = Helper::convert_coords(pts); |
| 10315 |
|
| std::vector<MonotoneChain*> v; |
| 10316 |
|
| MonotoneChainBuilder::getChains(&seq, NULL, v); |
| 10317 |
|
| |
| 10318 |
|
| Array result = Array::create(v.size()); |
| 10319 |
|
| for(auto mc: v) { |
| 10320 |
|
| result.push(xs::out<MonotoneChain*>(mc)); |
| 10321 |
|
| } |
| 10322 |
|
| RETVAL = result; |
| 10323 |
|
| #line 10324 "Geos_xsgen.cc" |
| 10324 |
|
| { |
| 10325 |
|
| SV * RETVALSV; |
| 10326 |
1 |
| RETVALSV = NULL; |
| 10327 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 10328 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 10329 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10330 |
1 |
| ST(0) = RETVALSV; |
| 10331 |
|
| } |
| 10332 |
1 |
▶ | } |
Branch: 5 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 10333 |
1 |
| XSRETURN(1); |
| 10334 |
1 |
| }); } |
| 10335 |
|
| |
| 10336 |
|
| |
| 10337 |
|
| |
| 10338 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getEnvelope) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getEnvelope) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10339 |
|
| { |
| 10340 |
1 |
| dVAR; dXSARGS; |
| 10341 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10342 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10343 |
|
| { |
| 10344 |
|
| Envelope * RETVAL; |
| 10345 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10346 |
|
| ; |
| 10347 |
|
| #line 29 "./xsi/index/MonotoneChain.xsi" |
| 10348 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 10349 |
|
| RETVAL = new Envelope(THIS->getEnvelope()); |
| 10350 |
|
| #line 10351 "Geos_xsgen.cc" |
| 10351 |
|
| { |
| 10352 |
|
| SV * RETVALSV; |
| 10353 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 10354 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10355 |
1 |
| ST(0) = RETVALSV; |
| 10356 |
|
| } |
| 10357 |
1 |
| } |
| 10358 |
1 |
| XSRETURN(1); |
| 10359 |
1 |
| }); } |
| 10360 |
|
| |
| 10361 |
|
| |
| 10362 |
|
| |
| 10363 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getStartIndex) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getStartIndex) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10364 |
|
| { |
| 10365 |
1 |
| dVAR; dXSARGS; |
| 10366 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10367 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10368 |
|
| { |
| 10369 |
|
| size_t RETVAL; |
| 10370 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10371 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10372 |
|
| ; |
| 10373 |
|
| #line 32 "./xsi/index/MonotoneChain.xsi" |
| 10374 |
|
| RETVAL = THIS->getStartIndex(); |
| 10375 |
|
| #line 10376 "Geos_xsgen.cc" |
| 10376 |
1 |
▶ | TARGu((UV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGu((UV)RETVAL, 1); |
0 |
1 |
1 |
|
| 10377 |
1 |
| ST(0) = TARG; |
| 10378 |
|
| } |
| 10379 |
1 |
| XSRETURN(1); |
| 10380 |
1 |
| }); } |
| 10381 |
|
| |
| 10382 |
|
| |
| 10383 |
|
| |
| 10384 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getEndIndex) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getEndIndex) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10385 |
|
| { |
| 10386 |
1 |
| dVAR; dXSARGS; |
| 10387 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10388 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10389 |
|
| { |
| 10390 |
|
| size_t RETVAL; |
| 10391 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10392 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10393 |
|
| ; |
| 10394 |
|
| #line 34 "./xsi/index/MonotoneChain.xsi" |
| 10395 |
|
| RETVAL = THIS->getEndIndex(); |
| 10396 |
|
| #line 10397 "Geos_xsgen.cc" |
| 10397 |
1 |
▶ | TARGu((UV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGu((UV)RETVAL, 1); |
0 |
1 |
1 |
|
| 10398 |
1 |
| ST(0) = TARG; |
| 10399 |
|
| } |
| 10400 |
1 |
| XSRETURN(1); |
| 10401 |
1 |
| }); } |
| 10402 |
|
| |
| 10403 |
|
| |
| 10404 |
|
| |
| 10405 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getLineSegment) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getLineSegment) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10406 |
|
| { |
| 10407 |
2 |
| dVAR; dXSARGS; |
| 10408 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 10409 |
0 |
| croak_xs_usage(cv, "THIS, index"); |
| 10410 |
|
| { |
| 10411 |
|
| LineSegment * RETVAL; |
| 10412 |
2 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 10413 |
|
| ; |
| 10414 |
2 |
▶ | std::size_t index = xs::in<std::size_t>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| std::size_t index = xs::in<std::size_t>(ST(1)); |
2 |
0 |
2 |
|
| 10415 |
|
| ; |
| 10416 |
|
| #line 37 "./xsi/index/MonotoneChain.xsi" |
| 10417 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 10418 |
|
| LineSegment ls; |
| 10419 |
|
| THIS->getLineSegment(index, ls); |
| 10420 |
|
| RETVAL = new LineSegment(ls); |
| 10421 |
|
| #line 10422 "Geos_xsgen.cc" |
| 10422 |
|
| { |
| 10423 |
|
| SV * RETVALSV; |
| 10424 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 10425 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 10426 |
2 |
| ST(0) = RETVALSV; |
| 10427 |
|
| } |
| 10428 |
2 |
| } |
| 10429 |
2 |
| XSRETURN(1); |
| 10430 |
2 |
| }); } |
| 10431 |
|
| |
| 10432 |
|
| |
| 10433 |
|
| |
| 10434 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getCoordinates) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getCoordinates) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10435 |
|
| { |
| 10436 |
1 |
| dVAR; dXSARGS; |
| 10437 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10438 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10439 |
|
| { |
| 10440 |
1 |
| Array RETVAL; |
| 10441 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10442 |
|
| ; |
| 10443 |
|
| #line 43 "./xsi/index/MonotoneChain.xsi" |
| 10444 |
|
| auto smart_ptr = THIS->getCoordinates(); |
| 10445 |
|
| RETVAL = Helper::convert_copy(smart_ptr.get()); |
| 10446 |
|
| #line 10447 "Geos_xsgen.cc" |
| 10447 |
|
| { |
| 10448 |
|
| SV * RETVALSV; |
| 10449 |
1 |
| RETVALSV = NULL; |
| 10450 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 10451 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 10452 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10453 |
1 |
| ST(0) = RETVALSV; |
| 10454 |
|
| } |
| 10455 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 10456 |
1 |
| XSRETURN(1); |
| 10457 |
1 |
| }); } |
| 10458 |
|
| |
| 10459 |
|
| |
| 10460 |
|
| |
| 10461 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_computeOverlaps) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_computeOverlaps) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10462 |
|
| { |
| 10463 |
1 |
| dVAR; dXSARGS; |
| 10464 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 10465 |
0 |
| croak_xs_usage(cv, "THIS, mc, mco"); |
| 10466 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10467 |
1 |
| SP -= items; |
| 10468 |
|
| { |
| 10469 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10470 |
|
| ; |
| 10471 |
1 |
| MonotoneChain & mc = xs::in<MonotoneChain &>(ST(1)); |
| 10472 |
|
| ; |
| 10473 |
1 |
| MonotoneChainOverlapAction & mco = xs::in<MonotoneChainOverlapAction &>(ST(2)); |
| 10474 |
|
| ; |
| 10475 |
|
| #line 48 "./xsi/index/MonotoneChain.xsi" |
| 10476 |
|
| THIS->computeOverlaps(&mc, &mco); |
| 10477 |
|
| #line 10478 "Geos_xsgen.cc" |
| 10478 |
1 |
| PUTBACK; |
| 10479 |
1 |
| return; |
| 10480 |
|
| } |
| 10481 |
1 |
| }); } |
| 10482 |
|
| |
| 10483 |
|
| |
| 10484 |
|
| |
| 10485 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_setId) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_setId) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10486 |
|
| { |
| 10487 |
1 |
| dVAR; dXSARGS; |
| 10488 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 10489 |
0 |
| croak_xs_usage(cv, "THIS, nId"); |
| 10490 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10491 |
1 |
| SP -= items; |
| 10492 |
|
| { |
| 10493 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10494 |
|
| ; |
| 10495 |
1 |
| int nId = (int)SvIV(ST(1)) |
| 10496 |
|
| ; |
| 10497 |
|
| #line 51 "./xsi/index/MonotoneChain.xsi" |
| 10498 |
|
| THIS->setId(nId); |
| 10499 |
|
| #line 10500 "Geos_xsgen.cc" |
| 10500 |
1 |
| PUTBACK; |
| 10501 |
1 |
| return; |
| 10502 |
|
| } |
| 10503 |
1 |
| }); } |
| 10504 |
|
| |
| 10505 |
|
| |
| 10506 |
|
| |
| 10507 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getId) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChain_getId) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10508 |
|
| { |
| 10509 |
1 |
| dVAR; dXSARGS; |
| 10510 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10511 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10512 |
|
| { |
| 10513 |
|
| int RETVAL; |
| 10514 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10515 |
1 |
▶ | MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| MonotoneChain* THIS = xs::in<MonotoneChain *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10516 |
|
| ; |
| 10517 |
|
| #line 53 "./xsi/index/MonotoneChain.xsi" |
| 10518 |
|
| RETVAL = THIS->getId(); |
| 10519 |
|
| #line 10520 "Geos_xsgen.cc" |
| 10520 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 10521 |
1 |
| ST(0) = TARG; |
| 10522 |
|
| } |
| 10523 |
1 |
| XSRETURN(1); |
| 10524 |
1 |
| }); } |
| 10525 |
|
| |
| 10526 |
|
| |
| 10527 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/index/MonotoneChain.xsi' */ |
| 10528 |
|
| |
| 10529 |
|
| |
| 10530 |
|
| /* INCLUDE: Including 'xsi/index/MonotoneChainOverlapAction.xsi' from 'Geos.xs' */ |
| 10531 |
|
| |
| 10532 |
|
| |
| 10533 |
|
| |
| 10534 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10535 |
|
| { |
| 10536 |
1 |
| dVAR; dXSARGS; |
| 10537 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10538 |
0 |
| croak_xs_usage(cv, "_____unused25"); |
| 10539 |
|
| { |
| 10540 |
|
| MonotoneChainOverlapAction * RETVAL; |
| 10541 |
|
| #line 4 "./xsi/index/MonotoneChainOverlapAction.xsi" |
| 10542 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 10543 |
|
| RETVAL = new MonotoneChainOverlapAction(); |
| 10544 |
|
| #line 10545 "Geos_xsgen.cc" |
| 10545 |
|
| { |
| 10546 |
|
| SV * RETVALSV; |
| 10547 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 10548 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10549 |
1 |
| ST(0) = RETVALSV; |
| 10550 |
|
| } |
| 10551 |
1 |
| } |
| 10552 |
1 |
| XSRETURN(1); |
| 10553 |
1 |
| }); } |
| 10554 |
|
| |
| 10555 |
|
| |
| 10556 |
|
| |
| 10557 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_overlap) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_overlap) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10558 |
|
| { |
| 10559 |
2 |
| dVAR; dXSARGS; |
| 10560 |
2 |
▶ | if (items < 3 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 3 || items > 5) |
2 |
0 |
2 |
| if (items < 3 || items > 5) |
0 |
2 |
2 |
|
| 10561 |
0 |
| croak_xs_usage(cv, "THIS, arg1, arg2, arg3= NULL, arg4= NULL"); |
| 10562 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10563 |
2 |
| SP -= items; |
| 10564 |
|
| { |
| 10565 |
2 |
▶ | MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 10566 |
|
| ; |
| 10567 |
2 |
▶ | Object arg1 = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Object arg1 = ST(1); |
2 |
0 |
2 |
|
| 10568 |
2 |
▶ | if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!arg1 && SvOK(ST(1))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
|
| 10569 |
|
| ; |
| 10570 |
2 |
| SV* arg2 = ST(2) |
| 10571 |
|
| ; |
| 10572 |
|
| SV* arg3; |
| 10573 |
|
| SV* arg4; |
| 10574 |
|
| |
| 10575 |
2 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
1 |
1 |
2 |
|
| 10576 |
1 |
| arg3 = NULL; |
| 10577 |
|
| else { |
| 10578 |
1 |
| arg3 = ST(3) |
| 10579 |
|
| ; |
| 10580 |
|
| } |
| 10581 |
|
| |
| 10582 |
2 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
1 |
1 |
2 |
|
| 10583 |
1 |
| arg4 = NULL; |
| 10584 |
|
| else { |
| 10585 |
1 |
| arg4 = ST(4) |
| 10586 |
|
| ; |
| 10587 |
|
| } |
| 10588 |
|
| #line 7 "./xsi/index/MonotoneChainOverlapAction.xsi" |
| 10589 |
|
| if (arg1.stash().name() == "Geo::Geos::LineSegment") { |
| 10590 |
|
| auto& ls1 = xs::in<LineSegment&>(arg1); |
| 10591 |
|
| auto& ls2 = xs::in<LineSegment&>(arg2); |
| 10592 |
|
| THIS->overlap(ls1, ls2); |
| 10593 |
|
| } |
| 10594 |
|
| else { |
| 10595 |
|
| if(!arg2) throw("undef not allowed"); |
| 10596 |
|
| if(!arg4) throw("undef not allowed"); |
| 10597 |
|
| auto& mc1 = xs::in<MonotoneChain&>(arg1); |
| 10598 |
|
| auto& mc2 = xs::in<MonotoneChain&>(arg3); |
| 10599 |
|
| std::size_t start1 = SvUV(arg2); |
| 10600 |
|
| std::size_t start2 = SvUV(arg4); |
| 10601 |
|
| THIS->overlap(mc1, start1, mc2, start2); |
| 10602 |
|
| } |
| 10603 |
|
| #line 10604 "Geos_xsgen.cc" |
| 10604 |
2 |
| PUTBACK; |
| 10605 |
4 |
| return; |
| 10606 |
2 |
| } |
| 10607 |
2 |
| }); } |
| 10608 |
|
| |
| 10609 |
|
| |
| 10610 |
|
| |
| 10611 |
8 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_tempEnv1) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__MonotoneChainOverlapAction_tempEnv1) { xs::throw_guard(cv, [=]() |
4 |
0 |
4 |
|
| 10612 |
|
| { |
| 10613 |
4 |
| dVAR; dXSARGS; |
| 10614 |
4 |
| dXSI32; |
| 10615 |
4 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
4 |
0 |
4 |
| if (items < 1 || items > 2) |
0 |
4 |
4 |
|
| 10616 |
0 |
| croak_xs_usage(cv, "THIS, newval= NULL"); |
| 10617 |
|
| { |
| 10618 |
|
| Envelope * RETVAL; |
| 10619 |
4 |
▶ | MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
4 |
0 |
4 |
| MonotoneChainOverlapAction* THIS = xs::in<MonotoneChainOverlapAction *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
4 |
4 |
|
| 10620 |
|
| ; |
| 10621 |
|
| SV* newval; |
| 10622 |
|
| |
| 10623 |
4 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
4 |
0 |
4 |
|
| 10624 |
4 |
| newval = NULL; |
| 10625 |
|
| else { |
| 10626 |
0 |
| newval = ST(1) |
| 10627 |
|
| ; |
| 10628 |
|
| } |
| 10629 |
|
| #line 24 "./xsi/index/MonotoneChainOverlapAction.xsi" |
| 10630 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 10631 |
|
| Envelope* val; |
| 10632 |
|
| switch (ix) { |
| 10633 |
|
| case 0: val = &THIS->tempEnv1; break; |
| 10634 |
|
| default: val = &THIS->tempEnv2; break; |
| 10635 |
|
| } |
| 10636 |
|
| if (newval) { |
| 10637 |
|
| auto e = xs::in<Envelope*>(newval); |
| 10638 |
|
| *val = *e; |
| 10639 |
|
| } |
| 10640 |
|
| RETVAL = new Envelope(*val); |
| 10641 |
|
| #line 10642 "Geos_xsgen.cc" |
| 10642 |
|
| { |
| 10643 |
|
| SV * RETVALSV; |
| 10644 |
4 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
4 |
0 |
4 |
|
| 10645 |
4 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
4 |
0 |
4 |
|
| 10646 |
4 |
| ST(0) = RETVALSV; |
| 10647 |
|
| } |
| 10648 |
4 |
| } |
| 10649 |
4 |
| XSRETURN(1); |
| 10650 |
4 |
| }); } |
| 10651 |
|
| |
| 10652 |
|
| |
| 10653 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/index/MonotoneChainOverlapAction.xsi' */ |
| 10654 |
|
| |
| 10655 |
|
| |
| 10656 |
|
| /* INCLUDE: Including 'xsi/index/SpatialIndex.xsi' from 'Geos.xs' */ |
| 10657 |
|
| |
| 10658 |
|
| |
| 10659 |
|
| |
| 10660 |
14 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_query) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_query) { xs::throw_guard(cv, [=]() |
7 |
0 |
7 |
|
| 10661 |
|
| { |
| 10662 |
7 |
| dVAR; dXSARGS; |
| 10663 |
7 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
7 |
0 |
7 |
| if (items < 2 || items > 3) |
0 |
7 |
7 |
|
| 10664 |
0 |
| croak_xs_usage(cv, "THIS, env, arg= NULL"); |
| 10665 |
|
| { |
| 10666 |
7 |
| Array RETVAL; |
| 10667 |
7 |
▶ | SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
7 |
0 |
7 |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
7 |
7 |
|
| 10668 |
|
| ; |
| 10669 |
7 |
▶ | Envelope& env = xs::in<Envelope&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope& env = xs::in<Envelope&>(ST(1)); |
7 |
0 |
7 |
|
| 10670 |
|
| ; |
| 10671 |
|
| SV* arg; |
| 10672 |
|
| |
| 10673 |
7 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
5 |
2 |
7 |
|
| 10674 |
5 |
| arg = NULL; |
| 10675 |
|
| else { |
| 10676 |
2 |
| arg = ST(2) |
| 10677 |
|
| ; |
| 10678 |
|
| } |
| 10679 |
|
| #line 5 "./xsi/index/SpatialIndex.xsi" |
| 10680 |
|
| Object me {ST(0)}; |
| 10681 |
|
| auto payload = me.payload(&payload_marker_SVs_map); |
| 10682 |
|
| auto real_payload = static_cast<SVs_map_payload*>(payload.ptr); |
| 10683 |
|
| |
| 10684 |
|
| if (!arg) { |
| 10685 |
|
| std::vector<void *> v; |
| 10686 |
|
| THIS->query(&env, v); |
| 10687 |
|
| RETVAL = Helper::wrap_inc_SVs(&v, real_payload->map); |
| 10688 |
|
| } |
| 10689 |
|
| else { |
| 10690 |
|
| Sub visitor {arg}; |
| 10691 |
|
| if (!visitor) throw "Unsupported argument"; |
| 10692 |
|
| SubItemVisitor v{visitor, real_payload->map}; |
| 10693 |
|
| THIS->query(&env, v); |
| 10694 |
|
| XSRETURN_UNDEF; |
| 10695 |
|
| } |
| 10696 |
|
| #line 10697 "Geos_xsgen.cc" |
| 10697 |
|
| { |
| 10698 |
|
| SV * RETVALSV; |
| 10699 |
5 |
| RETVALSV = NULL; |
| 10700 |
5 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
5 |
5 |
|
| 10701 |
5 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
5 |
0 |
5 |
|
| 10702 |
5 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
5 |
0 |
5 |
|
| 10703 |
5 |
| ST(0) = RETVALSV; |
| 10704 |
|
| } |
| 10705 |
9 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
5 |
2 |
7 |
| } |
5 |
2 |
7 |
|
| 10706 |
5 |
| XSRETURN(1); |
| 10707 |
7 |
| }); } |
| 10708 |
|
| |
| 10709 |
|
| |
| 10710 |
|
| |
| 10711 |
32 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_insert) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_insert) { xs::throw_guard(cv, [=]() |
16 |
0 |
16 |
|
| 10712 |
|
| { |
| 10713 |
16 |
| dVAR; dXSARGS; |
| 10714 |
16 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
16 |
16 |
|
| 10715 |
0 |
| croak_xs_usage(cv, "THIS, env, item"); |
| 10716 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 10717 |
16 |
| SP -= items; |
| 10718 |
|
| { |
| 10719 |
16 |
▶ | SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
16 |
0 |
16 |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
16 |
16 |
|
| 10720 |
|
| ; |
| 10721 |
16 |
▶ | Envelope& env = xs::in<Envelope&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope& env = xs::in<Envelope&>(ST(1)); |
16 |
0 |
16 |
|
| 10722 |
|
| ; |
| 10723 |
16 |
▶ | SV* item = ST(2) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* item = ST(2) |
16 |
0 |
16 |
|
| 10724 |
|
| ; |
| 10725 |
|
| #line 24 "./xsi/index/SpatialIndex.xsi" |
| 10726 |
|
| Object me{ST(0)}; |
| 10727 |
|
| |
| 10728 |
|
| auto payload = me.payload(&payload_marker_SVs_map); |
| 10729 |
|
| auto real_payload = static_cast<SVs_map_payload*>(payload.ptr); |
| 10730 |
|
| SV* value = Helper::store_sv(item, real_payload->map); |
| 10731 |
|
| THIS->insert(&env, value); |
| 10732 |
|
| #line 10733 "Geos_xsgen.cc" |
| 10733 |
16 |
| PUTBACK; |
| 10734 |
32 |
| return; |
| 10735 |
16 |
| } |
| 10736 |
16 |
| }); } |
| 10737 |
|
| |
| 10738 |
|
| |
| 10739 |
|
| |
| 10740 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_remove) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__SpatialIndex_remove) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 10741 |
|
| { |
| 10742 |
3 |
| dVAR; dXSARGS; |
| 10743 |
3 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
3 |
3 |
|
| 10744 |
0 |
| croak_xs_usage(cv, "THIS, env, item"); |
| 10745 |
|
| { |
| 10746 |
|
| bool RETVAL; |
| 10747 |
3 |
▶ | SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
3 |
0 |
3 |
| SpatialIndex* THIS = xs::in<SpatialIndex *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
3 |
3 |
|
| 10748 |
|
| ; |
| 10749 |
3 |
▶ | Envelope& env = xs::in<Envelope&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Envelope& env = xs::in<Envelope&>(ST(1)); |
3 |
0 |
3 |
|
| 10750 |
|
| ; |
| 10751 |
3 |
▶ | SV * item = ST(2) |
Branch: 1 branch
| Branch | True | False | Total |
| SV * item = ST(2) |
3 |
0 |
3 |
|
| 10752 |
|
| ; |
| 10753 |
|
| #line 33 "./xsi/index/SpatialIndex.xsi" |
| 10754 |
|
| Object me{ST(0)}; |
| 10755 |
|
| auto payload = me.payload(&payload_marker_SVs_map); |
| 10756 |
|
| auto real_payload = static_cast<SVs_map_payload*>(payload.ptr); |
| 10757 |
|
| |
| 10758 |
|
| SV* value = hv_delete_ent(real_payload->map, item, 0, 0); |
| 10759 |
|
| if (!value) throw "value is n/a in hash"; |
| 10760 |
|
| |
| 10761 |
|
| RETVAL = THIS->remove(&env, value); |
| 10762 |
|
| #line 10763 "Geos_xsgen.cc" |
| 10763 |
3 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
3 |
0 |
3 |
|
| 10764 |
3 |
| } |
| 10765 |
3 |
| XSRETURN(1); |
| 10766 |
3 |
| }); } |
| 10767 |
|
| |
| 10768 |
|
| |
| 10769 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/index/SpatialIndex.xsi' */ |
| 10770 |
|
| |
| 10771 |
|
| |
| 10772 |
|
| /* INCLUDE: Including 'xsi/index/Quadtree.xsi' from 'Geos.xs' */ |
| 10773 |
|
| |
| 10774 |
|
| |
| 10775 |
|
| |
| 10776 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__Quadtree_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__Quadtree_new) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 10777 |
|
| { |
| 10778 |
6 |
| dVAR; dXSARGS; |
| 10779 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 10780 |
0 |
| croak_xs_usage(cv, "_____unused26"); |
| 10781 |
|
| { |
| 10782 |
6 |
| Sv RETVAL; |
| 10783 |
|
| #line 5 "./xsi/index/Quadtree.xsi" |
| 10784 |
|
| Object wrapped = xs::out<quadtree::Quadtree*>(new quadtree::Quadtree()); |
| 10785 |
|
| auto payload = new SVs_map_payload(); |
| 10786 |
|
| wrapped.payload_attach(payload, &payload_marker_SVs_map); |
| 10787 |
|
| |
| 10788 |
|
| RETVAL = wrapped.ref(); |
| 10789 |
|
| #line 10790 "Geos_xsgen.cc" |
| 10790 |
|
| { |
| 10791 |
|
| SV * RETVALSV; |
| 10792 |
6 |
| RETVALSV = NULL; |
| 10793 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 10794 |
6 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
6 |
0 |
6 |
|
| 10795 |
0 |
| else switch (RETVAL.type()) { |
| 10796 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10797 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10798 |
0 |
| case SVt_PVCV: |
| 10799 |
|
| case SVt_PVIO: |
| 10800 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 10801 |
0 |
| break; |
| 10802 |
0 |
| default: throw "unknown type of Sv to return"; |
| 10803 |
|
| } |
| 10804 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 10805 |
6 |
| ST(0) = RETVALSV; |
| 10806 |
|
| } |
| 10807 |
6 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
| } |
6 |
0 |
6 |
|
| 10808 |
6 |
| XSRETURN(1); |
| 10809 |
6 |
| }); } |
| 10810 |
|
| |
| 10811 |
|
| |
| 10812 |
|
| |
| 10813 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__Quadtree_depth) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__Quadtree_depth) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10814 |
|
| { |
| 10815 |
1 |
| dVAR; dXSARGS; |
| 10816 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10817 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10818 |
|
| { |
| 10819 |
|
| int RETVAL; |
| 10820 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10821 |
1 |
▶ | quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10822 |
|
| ; |
| 10823 |
|
| #line 12 "./xsi/index/Quadtree.xsi" |
| 10824 |
|
| RETVAL = THIS->depth(); |
| 10825 |
|
| #line 10826 "Geos_xsgen.cc" |
| 10826 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 10827 |
1 |
| ST(0) = TARG; |
| 10828 |
|
| } |
| 10829 |
1 |
| XSRETURN(1); |
| 10830 |
1 |
| }); } |
| 10831 |
|
| |
| 10832 |
|
| |
| 10833 |
|
| |
| 10834 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__Quadtree_size) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__Quadtree_size) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10835 |
|
| { |
| 10836 |
1 |
| dVAR; dXSARGS; |
| 10837 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10838 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10839 |
|
| { |
| 10840 |
|
| int RETVAL; |
| 10841 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10842 |
1 |
▶ | quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 10843 |
|
| ; |
| 10844 |
|
| #line 14 "./xsi/index/Quadtree.xsi" |
| 10845 |
|
| RETVAL = THIS->size(); |
| 10846 |
|
| #line 10847 "Geos_xsgen.cc" |
| 10847 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 10848 |
1 |
| ST(0) = TARG; |
| 10849 |
|
| } |
| 10850 |
1 |
| XSRETURN(1); |
| 10851 |
1 |
| }); } |
| 10852 |
|
| |
| 10853 |
|
| |
| 10854 |
|
| |
| 10855 |
12 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__Quadtree_queryAll) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__Quadtree_queryAll) { xs::throw_guard(cv, [=]() |
6 |
0 |
6 |
|
| 10856 |
|
| { |
| 10857 |
6 |
| dVAR; dXSARGS; |
| 10858 |
6 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
6 |
6 |
|
| 10859 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 10860 |
|
| { |
| 10861 |
6 |
| Array RETVAL; |
| 10862 |
6 |
▶ | quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
6 |
0 |
6 |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
6 |
6 |
|
| 10863 |
|
| ; |
| 10864 |
|
| #line 17 "./xsi/index/Quadtree.xsi" |
| 10865 |
|
| Object me{ST(0)}; |
| 10866 |
|
| auto payload = me.payload(&payload_marker_SVs_map); |
| 10867 |
|
| auto real_payload = static_cast<SVs_map_payload*>(payload.ptr); |
| 10868 |
|
| |
| 10869 |
|
| std::unique_ptr<std::vector<void*>> holder {THIS->queryAll()}; |
| 10870 |
|
| RETVAL = Helper::wrap_inc_SVs(holder.get(), real_payload->map); |
| 10871 |
|
| #line 10872 "Geos_xsgen.cc" |
| 10872 |
|
| { |
| 10873 |
|
| SV * RETVALSV; |
| 10874 |
6 |
| RETVALSV = NULL; |
| 10875 |
6 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
6 |
6 |
|
| 10876 |
6 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
6 |
0 |
6 |
|
| 10877 |
6 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
6 |
0 |
6 |
|
| 10878 |
6 |
| ST(0) = RETVALSV; |
| 10879 |
|
| } |
| 10880 |
6 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
6 |
0 |
6 |
| } |
6 |
0 |
6 |
| } |
6 |
0 |
6 |
|
| 10881 |
6 |
| XSRETURN(1); |
| 10882 |
6 |
| }); } |
| 10883 |
|
| |
| 10884 |
|
| |
| 10885 |
|
| |
| 10886 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__Quadtree_toString) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__Quadtree_toString) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10887 |
|
| { |
| 10888 |
2 |
| dVAR; dXSARGS; |
| 10889 |
2 |
▶ | if (items < 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 1) |
0 |
2 |
2 |
|
| 10890 |
0 |
| croak_xs_usage(cv, "THIS, ..."); |
| 10891 |
|
| { |
| 10892 |
2 |
| std::string RETVAL; |
| 10893 |
2 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
1 |
1 |
2 |
| dXSTARG; |
1 |
0 |
1 |
|
| 10894 |
2 |
▶ | quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| quadtree::Quadtree* THIS = xs::in<quadtree::Quadtree *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 10895 |
|
| ; |
| 10896 |
|
| #line 25 "./xsi/index/Quadtree.xsi" |
| 10897 |
|
| RETVAL = THIS->toString(); |
| 10898 |
|
| #line 10899 "Geos_xsgen.cc" |
| 10899 |
2 |
▶ | sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); |
2 |
0 |
2 |
|
| 10900 |
2 |
| ST(0) = TARG; |
| 10901 |
2 |
| } |
| 10902 |
2 |
| XSRETURN(1); |
| 10903 |
2 |
| }); } |
| 10904 |
|
| |
| 10905 |
|
| |
| 10906 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/index/Quadtree.xsi' */ |
| 10907 |
|
| |
| 10908 |
|
| |
| 10909 |
|
| /* INCLUDE: Including 'xsi/index/STRtree.xsi' from 'Geos.xs' */ |
| 10910 |
|
| |
| 10911 |
|
| |
| 10912 |
|
| |
| 10913 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Index__STRtree_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Index__STRtree_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 10914 |
|
| { |
| 10915 |
2 |
| dVAR; dXSARGS; |
| 10916 |
2 |
▶ | if (items < 1 || items > 2) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 1 || items > 2) |
2 |
0 |
2 |
| if (items < 1 || items > 2) |
0 |
2 |
2 |
|
| 10917 |
0 |
| croak_xs_usage(cv, "_____unused27, nodeCapacity= 10"); |
| 10918 |
|
| { |
| 10919 |
2 |
| Sv RETVAL; |
| 10920 |
|
| std::size_t nodeCapacity; |
| 10921 |
|
| |
| 10922 |
2 |
▶ | if (items < 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 2) |
2 |
0 |
2 |
|
| 10923 |
2 |
| nodeCapacity = 10; |
| 10924 |
|
| else { |
| 10925 |
0 |
▶ | nodeCapacity = xs::in<std::size_t>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| nodeCapacity = xs::in<std::size_t>(ST(1)); |
0 |
0 |
0 |
|
| 10926 |
|
| ; |
| 10927 |
|
| } |
| 10928 |
|
| #line 5 "./xsi/index/STRtree.xsi" |
| 10929 |
|
| Object wrapped = xs::out<strtree::STRtree*>(new strtree::STRtree(nodeCapacity)); |
| 10930 |
|
| auto payload = new SVs_map_payload(); |
| 10931 |
|
| wrapped.payload_attach(payload, &payload_marker_SVs_map); |
| 10932 |
|
| |
| 10933 |
|
| RETVAL = wrapped.ref(); |
| 10934 |
|
| #line 10935 "Geos_xsgen.cc" |
| 10935 |
|
| { |
| 10936 |
|
| SV * RETVALSV; |
| 10937 |
2 |
| RETVALSV = NULL; |
| 10938 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 10939 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 10940 |
0 |
| else switch (RETVAL.type()) { |
| 10941 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10942 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 10943 |
0 |
| case SVt_PVCV: |
| 10944 |
|
| case SVt_PVIO: |
| 10945 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 10946 |
0 |
| break; |
| 10947 |
0 |
| default: throw "unknown type of Sv to return"; |
| 10948 |
|
| } |
| 10949 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 10950 |
2 |
| ST(0) = RETVALSV; |
| 10951 |
|
| } |
| 10952 |
2 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 10953 |
2 |
| XSRETURN(1); |
| 10954 |
2 |
| }); } |
| 10955 |
|
| |
| 10956 |
|
| |
| 10957 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/index/STRtree.xsi' */ |
| 10958 |
|
| |
| 10959 |
|
| |
| 10960 |
|
| /* INCLUDE: Including 'xsi/precision.xsi' from 'Geos.xs' */ |
| 10961 |
|
| |
| 10962 |
|
| |
| 10963 |
|
| |
| 10964 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_signExpBits) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_signExpBits) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10965 |
|
| { |
| 10966 |
1 |
| dVAR; dXSARGS; |
| 10967 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 10968 |
0 |
| croak_xs_usage(cv, "num"); |
| 10969 |
|
| { |
| 10970 |
|
| int64 RETVAL; |
| 10971 |
1 |
▶ | int64 num = xs::in<int64>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| int64 num = xs::in<int64>(ST(0)); |
1 |
0 |
1 |
|
| 10972 |
|
| ; |
| 10973 |
|
| #line 5 "./xsi/precision.xsi" |
| 10974 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 10975 |
|
| RETVAL = CommonBits::signExpBits(num); |
| 10976 |
|
| #line 10977 "Geos_xsgen.cc" |
| 10977 |
|
| { |
| 10978 |
|
| SV * RETVALSV; |
| 10979 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 10980 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 10981 |
1 |
| ST(0) = RETVALSV; |
| 10982 |
|
| } |
| 10983 |
1 |
| } |
| 10984 |
1 |
| XSRETURN(1); |
| 10985 |
1 |
| }); } |
| 10986 |
|
| |
| 10987 |
|
| |
| 10988 |
|
| |
| 10989 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_numCommonMostSigMantissaBits) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_numCommonMostSigMantissaBits) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 10990 |
|
| { |
| 10991 |
1 |
| dVAR; dXSARGS; |
| 10992 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 10993 |
0 |
| croak_xs_usage(cv, "num1, num2"); |
| 10994 |
|
| { |
| 10995 |
|
| int RETVAL; |
| 10996 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 10997 |
1 |
| int64 num1 = xs::in<int64>(ST(0)); |
| 10998 |
|
| ; |
| 10999 |
1 |
| int64 num2 = xs::in<int64>(ST(1)); |
| 11000 |
|
| ; |
| 11001 |
|
| #line 9 "./xsi/precision.xsi" |
| 11002 |
|
| RETVAL = CommonBits::numCommonMostSigMantissaBits(num1, num2); |
| 11003 |
|
| #line 11004 "Geos_xsgen.cc" |
| 11004 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 11005 |
1 |
| ST(0) = TARG; |
| 11006 |
|
| } |
| 11007 |
1 |
| XSRETURN(1); |
| 11008 |
1 |
| }); } |
| 11009 |
|
| |
| 11010 |
|
| |
| 11011 |
|
| |
| 11012 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_zeroLowerBits) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_zeroLowerBits) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11013 |
|
| { |
| 11014 |
1 |
| dVAR; dXSARGS; |
| 11015 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11016 |
0 |
| croak_xs_usage(cv, "bits, nBits"); |
| 11017 |
|
| { |
| 11018 |
|
| int64 RETVAL; |
| 11019 |
1 |
▶ | int64 bits = xs::in<int64>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| int64 bits = xs::in<int64>(ST(0)); |
1 |
0 |
1 |
|
| 11020 |
|
| ; |
| 11021 |
1 |
▶ | int nBits = (int)SvIV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| int nBits = (int)SvIV(ST(1)) |
1 |
0 |
1 |
|
| 11022 |
|
| ; |
| 11023 |
|
| #line 13 "./xsi/precision.xsi" |
| 11024 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 11025 |
|
| RETVAL = CommonBits::zeroLowerBits(bits, nBits); |
| 11026 |
|
| #line 11027 "Geos_xsgen.cc" |
| 11027 |
|
| { |
| 11028 |
|
| SV * RETVALSV; |
| 11029 |
1 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
1 |
0 |
1 |
|
| 11030 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11031 |
1 |
| ST(0) = RETVALSV; |
| 11032 |
|
| } |
| 11033 |
1 |
| } |
| 11034 |
1 |
| XSRETURN(1); |
| 11035 |
1 |
| }); } |
| 11036 |
|
| |
| 11037 |
|
| |
| 11038 |
|
| |
| 11039 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_getBit) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_getBit) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11040 |
|
| { |
| 11041 |
1 |
| dVAR; dXSARGS; |
| 11042 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11043 |
0 |
| croak_xs_usage(cv, "bits, i"); |
| 11044 |
|
| { |
| 11045 |
|
| int RETVAL; |
| 11046 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 11047 |
1 |
| int64 bits = xs::in<int64>(ST(0)); |
| 11048 |
|
| ; |
| 11049 |
1 |
| int i = (int)SvIV(ST(1)) |
| 11050 |
|
| ; |
| 11051 |
|
| #line 17 "./xsi/precision.xsi" |
| 11052 |
|
| RETVAL = CommonBits::getBit (bits, i); |
| 11053 |
|
| #line 11054 "Geos_xsgen.cc" |
| 11054 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 11055 |
1 |
| ST(0) = TARG; |
| 11056 |
|
| } |
| 11057 |
1 |
| XSRETURN(1); |
| 11058 |
1 |
| }); } |
| 11059 |
|
| |
| 11060 |
|
| |
| 11061 |
|
| |
| 11062 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_commonIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_commonIntersection) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11063 |
|
| { |
| 11064 |
2 |
| dVAR; dXSARGS; |
| 11065 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 11066 |
0 |
| croak_xs_usage(cv, "g0, g1, nReturnToOriginalPrecision= false"); |
| 11067 |
|
| { |
| 11068 |
2 |
| Sv RETVAL; |
| 11069 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11070 |
|
| ; |
| 11071 |
2 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 11072 |
|
| ; |
| 11073 |
|
| bool nReturnToOriginalPrecision; |
| 11074 |
|
| |
| 11075 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 11076 |
1 |
| nReturnToOriginalPrecision = false; |
| 11077 |
|
| else { |
| 11078 |
1 |
▶ | nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
1 |
0 |
1 |
|
| 11079 |
|
| ; |
| 11080 |
|
| } |
| 11081 |
|
| #line 21 "./xsi/precision.xsi" |
| 11082 |
|
| RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).intersection(&g0, &g1)); |
| 11083 |
|
| #line 11084 "Geos_xsgen.cc" |
| 11084 |
|
| { |
| 11085 |
|
| SV * RETVALSV; |
| 11086 |
2 |
| RETVALSV = NULL; |
| 11087 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 11088 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 11089 |
0 |
| else switch (RETVAL.type()) { |
| 11090 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11091 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11092 |
0 |
| case SVt_PVCV: |
| 11093 |
|
| case SVt_PVIO: |
| 11094 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11095 |
0 |
| break; |
| 11096 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11097 |
|
| } |
| 11098 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11099 |
2 |
| ST(0) = RETVALSV; |
| 11100 |
|
| } |
| 11101 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
|
| 11102 |
2 |
| XSRETURN(1); |
| 11103 |
2 |
| }); } |
| 11104 |
|
| |
| 11105 |
|
| |
| 11106 |
|
| |
| 11107 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_commonUnion) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_commonUnion) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11108 |
|
| { |
| 11109 |
2 |
| dVAR; dXSARGS; |
| 11110 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 11111 |
0 |
| croak_xs_usage(cv, "g0, g1, nReturnToOriginalPrecision= false"); |
| 11112 |
|
| { |
| 11113 |
2 |
| Sv RETVAL; |
| 11114 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11115 |
|
| ; |
| 11116 |
2 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 11117 |
|
| ; |
| 11118 |
|
| bool nReturnToOriginalPrecision; |
| 11119 |
|
| |
| 11120 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 11121 |
1 |
| nReturnToOriginalPrecision = false; |
| 11122 |
|
| else { |
| 11123 |
1 |
▶ | nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
1 |
0 |
1 |
|
| 11124 |
|
| ; |
| 11125 |
|
| } |
| 11126 |
|
| #line 25 "./xsi/precision.xsi" |
| 11127 |
|
| RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).Union(&g0, &g1)); |
| 11128 |
|
| #line 11129 "Geos_xsgen.cc" |
| 11129 |
|
| { |
| 11130 |
|
| SV * RETVALSV; |
| 11131 |
2 |
| RETVALSV = NULL; |
| 11132 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 11133 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 11134 |
0 |
| else switch (RETVAL.type()) { |
| 11135 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11136 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11137 |
0 |
| case SVt_PVCV: |
| 11138 |
|
| case SVt_PVIO: |
| 11139 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11140 |
0 |
| break; |
| 11141 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11142 |
|
| } |
| 11143 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11144 |
2 |
| ST(0) = RETVALSV; |
| 11145 |
|
| } |
| 11146 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
|
| 11147 |
2 |
| XSRETURN(1); |
| 11148 |
2 |
| }); } |
| 11149 |
|
| |
| 11150 |
|
| |
| 11151 |
|
| |
| 11152 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_commonDifference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_commonDifference) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11153 |
|
| { |
| 11154 |
2 |
| dVAR; dXSARGS; |
| 11155 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 11156 |
0 |
| croak_xs_usage(cv, "g0, g1, nReturnToOriginalPrecision= false"); |
| 11157 |
|
| { |
| 11158 |
2 |
| Sv RETVAL; |
| 11159 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11160 |
|
| ; |
| 11161 |
2 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 11162 |
|
| ; |
| 11163 |
|
| bool nReturnToOriginalPrecision; |
| 11164 |
|
| |
| 11165 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 11166 |
1 |
| nReturnToOriginalPrecision = false; |
| 11167 |
|
| else { |
| 11168 |
1 |
▶ | nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
1 |
0 |
1 |
|
| 11169 |
|
| ; |
| 11170 |
|
| } |
| 11171 |
|
| #line 29 "./xsi/precision.xsi" |
| 11172 |
|
| RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).difference(&g0, &g1)); |
| 11173 |
|
| #line 11174 "Geos_xsgen.cc" |
| 11174 |
|
| { |
| 11175 |
|
| SV * RETVALSV; |
| 11176 |
2 |
| RETVALSV = NULL; |
| 11177 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 11178 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 11179 |
0 |
| else switch (RETVAL.type()) { |
| 11180 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11181 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11182 |
0 |
| case SVt_PVCV: |
| 11183 |
|
| case SVt_PVIO: |
| 11184 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11185 |
0 |
| break; |
| 11186 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11187 |
|
| } |
| 11188 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11189 |
2 |
| ST(0) = RETVALSV; |
| 11190 |
|
| } |
| 11191 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
|
| 11192 |
2 |
| XSRETURN(1); |
| 11193 |
2 |
| }); } |
| 11194 |
|
| |
| 11195 |
|
| |
| 11196 |
|
| |
| 11197 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_commonSymDifference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_commonSymDifference) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11198 |
|
| { |
| 11199 |
2 |
| dVAR; dXSARGS; |
| 11200 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 11201 |
0 |
| croak_xs_usage(cv, "g0, g1, nReturnToOriginalPrecision= false"); |
| 11202 |
|
| { |
| 11203 |
2 |
| Sv RETVAL; |
| 11204 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11205 |
|
| ; |
| 11206 |
2 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 11207 |
|
| ; |
| 11208 |
|
| bool nReturnToOriginalPrecision; |
| 11209 |
|
| |
| 11210 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 11211 |
1 |
| nReturnToOriginalPrecision = false; |
| 11212 |
|
| else { |
| 11213 |
1 |
▶ | nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
1 |
0 |
1 |
|
| 11214 |
|
| ; |
| 11215 |
|
| } |
| 11216 |
|
| #line 33 "./xsi/precision.xsi" |
| 11217 |
|
| RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).symDifference(&g0, &g1)); |
| 11218 |
|
| #line 11219 "Geos_xsgen.cc" |
| 11219 |
|
| { |
| 11220 |
|
| SV * RETVALSV; |
| 11221 |
2 |
| RETVALSV = NULL; |
| 11222 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 11223 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 11224 |
0 |
| else switch (RETVAL.type()) { |
| 11225 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11226 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11227 |
0 |
| case SVt_PVCV: |
| 11228 |
|
| case SVt_PVIO: |
| 11229 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11230 |
0 |
| break; |
| 11231 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11232 |
|
| } |
| 11233 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11234 |
2 |
| ST(0) = RETVALSV; |
| 11235 |
|
| } |
| 11236 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
|
| 11237 |
2 |
| XSRETURN(1); |
| 11238 |
2 |
| }); } |
| 11239 |
|
| |
| 11240 |
|
| |
| 11241 |
|
| |
| 11242 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_commonBuffer) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_commonBuffer) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11243 |
|
| { |
| 11244 |
2 |
| dVAR; dXSARGS; |
| 11245 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 11246 |
0 |
| croak_xs_usage(cv, "g0, distance, nReturnToOriginalPrecision= false"); |
| 11247 |
|
| { |
| 11248 |
2 |
| Sv RETVAL; |
| 11249 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11250 |
|
| ; |
| 11251 |
2 |
▶ | double distance = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| double distance = (double)SvNV(ST(1)) |
2 |
0 |
2 |
|
| 11252 |
|
| ; |
| 11253 |
|
| bool nReturnToOriginalPrecision; |
| 11254 |
|
| |
| 11255 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 11256 |
1 |
| nReturnToOriginalPrecision = false; |
| 11257 |
|
| else { |
| 11258 |
1 |
▶ | nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
Branch: 1 branch
| Branch | True | False | Total |
| nReturnToOriginalPrecision = (bool)SvTRUE(ST(2)) |
1 |
0 |
1 |
|
| 11259 |
|
| ; |
| 11260 |
|
| } |
| 11261 |
|
| #line 37 "./xsi/precision.xsi" |
| 11262 |
|
| RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).buffer(&g0, distance)); |
| 11263 |
|
| #line 11264 "Geos_xsgen.cc" |
| 11264 |
|
| { |
| 11265 |
|
| SV * RETVALSV; |
| 11266 |
2 |
| RETVALSV = NULL; |
| 11267 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 11268 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 11269 |
0 |
| else switch (RETVAL.type()) { |
| 11270 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11271 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11272 |
0 |
| case SVt_PVCV: |
| 11273 |
|
| case SVt_PVIO: |
| 11274 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11275 |
0 |
| break; |
| 11276 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11277 |
|
| } |
| 11278 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11279 |
2 |
| ST(0) = RETVALSV; |
| 11280 |
|
| } |
| 11281 |
2 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
|
| 11282 |
2 |
| XSRETURN(1); |
| 11283 |
2 |
| }); } |
| 11284 |
|
| |
| 11285 |
|
| |
| 11286 |
|
| |
| 11287 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_enhancedIntersection) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_enhancedIntersection) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11288 |
|
| { |
| 11289 |
1 |
| dVAR; dXSARGS; |
| 11290 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11291 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11292 |
|
| { |
| 11293 |
1 |
| Sv RETVAL; |
| 11294 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11295 |
|
| ; |
| 11296 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11297 |
|
| ; |
| 11298 |
|
| #line 41 "./xsi/precision.xsi" |
| 11299 |
|
| RETVAL = Helper::uplift(EnhancedPrecisionOp().intersection(&g0, &g1)); |
| 11300 |
|
| #line 11301 "Geos_xsgen.cc" |
| 11301 |
|
| { |
| 11302 |
|
| SV * RETVALSV; |
| 11303 |
1 |
| RETVALSV = NULL; |
| 11304 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11305 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11306 |
0 |
| else switch (RETVAL.type()) { |
| 11307 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11308 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11309 |
0 |
| case SVt_PVCV: |
| 11310 |
|
| case SVt_PVIO: |
| 11311 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11312 |
0 |
| break; |
| 11313 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11314 |
|
| } |
| 11315 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11316 |
1 |
| ST(0) = RETVALSV; |
| 11317 |
|
| } |
| 11318 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11319 |
1 |
| XSRETURN(1); |
| 11320 |
1 |
| }); } |
| 11321 |
|
| |
| 11322 |
|
| |
| 11323 |
|
| |
| 11324 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_enhancedUnion) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_enhancedUnion) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11325 |
|
| { |
| 11326 |
1 |
| dVAR; dXSARGS; |
| 11327 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11328 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11329 |
|
| { |
| 11330 |
1 |
| Sv RETVAL; |
| 11331 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11332 |
|
| ; |
| 11333 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11334 |
|
| ; |
| 11335 |
|
| #line 45 "./xsi/precision.xsi" |
| 11336 |
|
| RETVAL = Helper::uplift(EnhancedPrecisionOp().Union(&g0, &g1)); |
| 11337 |
|
| #line 11338 "Geos_xsgen.cc" |
| 11338 |
|
| { |
| 11339 |
|
| SV * RETVALSV; |
| 11340 |
1 |
| RETVALSV = NULL; |
| 11341 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11342 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11343 |
0 |
| else switch (RETVAL.type()) { |
| 11344 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11345 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11346 |
0 |
| case SVt_PVCV: |
| 11347 |
|
| case SVt_PVIO: |
| 11348 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11349 |
0 |
| break; |
| 11350 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11351 |
|
| } |
| 11352 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11353 |
1 |
| ST(0) = RETVALSV; |
| 11354 |
|
| } |
| 11355 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11356 |
1 |
| XSRETURN(1); |
| 11357 |
1 |
| }); } |
| 11358 |
|
| |
| 11359 |
|
| |
| 11360 |
|
| |
| 11361 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_enhancedDifference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_enhancedDifference) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11362 |
|
| { |
| 11363 |
1 |
| dVAR; dXSARGS; |
| 11364 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11365 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11366 |
|
| { |
| 11367 |
1 |
| Sv RETVAL; |
| 11368 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11369 |
|
| ; |
| 11370 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11371 |
|
| ; |
| 11372 |
|
| #line 49 "./xsi/precision.xsi" |
| 11373 |
|
| RETVAL = Helper::uplift(EnhancedPrecisionOp().difference(&g0, &g1)); |
| 11374 |
|
| #line 11375 "Geos_xsgen.cc" |
| 11375 |
|
| { |
| 11376 |
|
| SV * RETVALSV; |
| 11377 |
1 |
| RETVALSV = NULL; |
| 11378 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11379 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11380 |
0 |
| else switch (RETVAL.type()) { |
| 11381 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11382 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11383 |
0 |
| case SVt_PVCV: |
| 11384 |
|
| case SVt_PVIO: |
| 11385 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11386 |
0 |
| break; |
| 11387 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11388 |
|
| } |
| 11389 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11390 |
1 |
| ST(0) = RETVALSV; |
| 11391 |
|
| } |
| 11392 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11393 |
1 |
| XSRETURN(1); |
| 11394 |
1 |
| }); } |
| 11395 |
|
| |
| 11396 |
|
| |
| 11397 |
|
| |
| 11398 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_enhancedSymDifference) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_enhancedSymDifference) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11399 |
|
| { |
| 11400 |
1 |
| dVAR; dXSARGS; |
| 11401 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11402 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11403 |
|
| { |
| 11404 |
1 |
| Sv RETVAL; |
| 11405 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11406 |
|
| ; |
| 11407 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11408 |
|
| ; |
| 11409 |
|
| #line 53 "./xsi/precision.xsi" |
| 11410 |
|
| RETVAL = Helper::uplift(EnhancedPrecisionOp().symDifference(&g0, &g1)); |
| 11411 |
|
| #line 11412 "Geos_xsgen.cc" |
| 11412 |
|
| { |
| 11413 |
|
| SV * RETVALSV; |
| 11414 |
1 |
| RETVALSV = NULL; |
| 11415 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11416 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11417 |
0 |
| else switch (RETVAL.type()) { |
| 11418 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11419 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11420 |
0 |
| case SVt_PVCV: |
| 11421 |
|
| case SVt_PVIO: |
| 11422 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11423 |
0 |
| break; |
| 11424 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11425 |
|
| } |
| 11426 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11427 |
1 |
| ST(0) = RETVALSV; |
| 11428 |
|
| } |
| 11429 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11430 |
1 |
| XSRETURN(1); |
| 11431 |
1 |
| }); } |
| 11432 |
|
| |
| 11433 |
|
| |
| 11434 |
|
| |
| 11435 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_enhancedBuffer) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_enhancedBuffer) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11436 |
|
| { |
| 11437 |
1 |
| dVAR; dXSARGS; |
| 11438 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11439 |
0 |
| croak_xs_usage(cv, "g, distance"); |
| 11440 |
|
| { |
| 11441 |
1 |
| Sv RETVAL; |
| 11442 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11443 |
|
| ; |
| 11444 |
1 |
▶ | double distance = (double)SvNV(ST(1)) |
Branch: 2 branches
| Branch | True | False | Total |
| double distance = (double)SvNV(ST(1)) |
1 |
0 |
1 |
| double distance = (double)SvNV(ST(1)) |
1 |
0 |
1 |
|
| 11445 |
|
| ; |
| 11446 |
|
| #line 57 "./xsi/precision.xsi" |
| 11447 |
|
| RETVAL = Helper::uplift(EnhancedPrecisionOp().buffer(&g, distance)); |
| 11448 |
|
| #line 11449 "Geos_xsgen.cc" |
| 11449 |
|
| { |
| 11450 |
|
| SV * RETVALSV; |
| 11451 |
1 |
| RETVALSV = NULL; |
| 11452 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11453 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11454 |
0 |
| else switch (RETVAL.type()) { |
| 11455 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11456 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11457 |
0 |
| case SVt_PVCV: |
| 11458 |
|
| case SVt_PVIO: |
| 11459 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11460 |
0 |
| break; |
| 11461 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11462 |
|
| } |
| 11463 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11464 |
1 |
| ST(0) = RETVALSV; |
| 11465 |
|
| } |
| 11466 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11467 |
1 |
| XSRETURN(1); |
| 11468 |
1 |
| }); } |
| 11469 |
|
| |
| 11470 |
|
| |
| 11471 |
|
| |
| 11472 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision_removeCommonBits) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision_removeCommonBits) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 11473 |
|
| { |
| 11474 |
2 |
| dVAR; dXSARGS; |
| 11475 |
2 |
| dXSI32; |
| 11476 |
2 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
2 |
2 |
|
| 11477 |
0 |
| croak_xs_usage(cv, "target, sources"); |
| 11478 |
|
| { |
| 11479 |
|
| Coordinate * RETVAL; |
| 11480 |
2 |
▶ | Geometry& target = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& target = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 11481 |
|
| ; |
| 11482 |
2 |
▶ | Array sources = ST(1); |
Branch: 1 branch
| Branch | True | False | Total |
| Array sources = ST(1); |
2 |
0 |
2 |
|
| 11483 |
2 |
▶ | if (!sources && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!sources && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
| if (!sources && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!sources && SvOK(ST(1))) throw "arg is not a 'Array' reference" |
0 |
2 |
2 |
|
| 11484 |
|
| ; |
| 11485 |
|
| #line 61 "./xsi/precision.xsi" |
| 11486 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 11487 |
|
| CommonBitsRemover cbr; |
| 11488 |
|
| for(const auto& it: sources) { |
| 11489 |
|
| cbr.add(&xs::in<Geometry&>(it)); |
| 11490 |
|
| } |
| 11491 |
|
| |
| 11492 |
|
| switch (ix) { |
| 11493 |
|
| case 0: cbr.removeCommonBits(&target); break; |
| 11494 |
|
| default: cbr.addCommonBits(&target); break; |
| 11495 |
|
| } |
| 11496 |
|
| RETVAL = new Coordinate(cbr.getCommonCoordinate()); |
| 11497 |
|
| #line 11498 "Geos_xsgen.cc" |
| 11498 |
|
| { |
| 11499 |
|
| SV * RETVALSV; |
| 11500 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 11501 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 11502 |
2 |
| ST(0) = RETVALSV; |
| 11503 |
|
| } |
| 11504 |
2 |
| } |
| 11505 |
2 |
| XSRETURN(1); |
| 11506 |
2 |
| }); } |
| 11507 |
|
| |
| 11508 |
|
| |
| 11509 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/precision.xsi' */ |
| 11510 |
|
| |
| 11511 |
|
| |
| 11512 |
|
| /* INCLUDE: Including 'xsi/precision/GeometryPrecisionReducer.xsi' from 'Geos.xs' */ |
| 11513 |
|
| |
| 11514 |
|
| |
| 11515 |
|
| |
| 11516 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11517 |
|
| { |
| 11518 |
1 |
| dVAR; dXSARGS; |
| 11519 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11520 |
0 |
| croak_xs_usage(cv, "_____unused28, arg0"); |
| 11521 |
|
| { |
| 11522 |
1 |
| Sv RETVAL; |
| 11523 |
1 |
▶ | SV* arg0 = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* arg0 = ST(1) |
1 |
0 |
1 |
|
| 11524 |
|
| ; |
| 11525 |
|
| #line 5 "./xsi/precision/GeometryPrecisionReducer.xsi" |
| 11526 |
|
| GeometryPrecisionReducer* self; |
| 11527 |
|
| Object arg{arg0}; |
| 11528 |
|
| if (arg.stash().name() == "Geo::Geos::PrecisionModel") { |
| 11529 |
|
| PrecisionModel& pm = xs::in<PrecisionModel&>(arg); |
| 11530 |
|
| self = new GeometryPrecisionReducer(pm); |
| 11531 |
|
| } |
| 11532 |
|
| else { |
| 11533 |
|
| GeometryFactory& gf = xs::in<GeometryFactory&>(arg); |
| 11534 |
|
| self = new GeometryPrecisionReducer(gf); |
| 11535 |
|
| } |
| 11536 |
|
| Object wrapped = xs::out<GeometryPrecisionReducer*>(self); |
| 11537 |
|
| wrapped.payload_attach(SvRV(arg0), &payload_marker); |
| 11538 |
|
| RETVAL = wrapped.ref(); |
| 11539 |
|
| #line 11540 "Geos_xsgen.cc" |
| 11540 |
|
| { |
| 11541 |
|
| SV * RETVALSV; |
| 11542 |
1 |
| RETVALSV = NULL; |
| 11543 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11544 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11545 |
0 |
| else switch (RETVAL.type()) { |
| 11546 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11547 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11548 |
0 |
| case SVt_PVCV: |
| 11549 |
|
| case SVt_PVIO: |
| 11550 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11551 |
0 |
| break; |
| 11552 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11553 |
|
| } |
| 11554 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11555 |
1 |
| ST(0) = RETVALSV; |
| 11556 |
|
| } |
| 11557 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11558 |
1 |
| XSRETURN(1); |
| 11559 |
1 |
| }); } |
| 11560 |
|
| |
| 11561 |
|
| |
| 11562 |
|
| |
| 11563 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_setRemoveCollapsedComponents) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_setRemoveCollapsedComponents) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11564 |
|
| { |
| 11565 |
1 |
| dVAR; dXSARGS; |
| 11566 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11567 |
0 |
| croak_xs_usage(cv, "THIS, remove"); |
| 11568 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 11569 |
1 |
| SP -= items; |
| 11570 |
|
| { |
| 11571 |
1 |
▶ | GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11572 |
|
| ; |
| 11573 |
1 |
| bool remove = (bool)SvTRUE(ST(1)) |
| 11574 |
|
| ; |
| 11575 |
|
| #line 20 "./xsi/precision/GeometryPrecisionReducer.xsi" |
| 11576 |
|
| THIS->setRemoveCollapsedComponents(remove); |
| 11577 |
|
| #line 11578 "Geos_xsgen.cc" |
| 11578 |
1 |
| PUTBACK; |
| 11579 |
1 |
| return; |
| 11580 |
|
| } |
| 11581 |
1 |
| }); } |
| 11582 |
|
| |
| 11583 |
|
| |
| 11584 |
|
| |
| 11585 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_setPointwise) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_setPointwise) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11586 |
|
| { |
| 11587 |
1 |
| dVAR; dXSARGS; |
| 11588 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11589 |
0 |
| croak_xs_usage(cv, "THIS, pointwise"); |
| 11590 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 11591 |
1 |
| SP -= items; |
| 11592 |
|
| { |
| 11593 |
1 |
▶ | GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11594 |
|
| ; |
| 11595 |
1 |
| bool pointwise = (bool)SvTRUE(ST(1)) |
| 11596 |
|
| ; |
| 11597 |
|
| #line 22 "./xsi/precision/GeometryPrecisionReducer.xsi" |
| 11598 |
|
| THIS->setPointwise(pointwise); |
| 11599 |
|
| #line 11600 "Geos_xsgen.cc" |
| 11600 |
1 |
| PUTBACK; |
| 11601 |
1 |
| return; |
| 11602 |
|
| } |
| 11603 |
1 |
| }); } |
| 11604 |
|
| |
| 11605 |
|
| |
| 11606 |
|
| |
| 11607 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_reduce) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_reduce) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11608 |
|
| { |
| 11609 |
1 |
| dVAR; dXSARGS; |
| 11610 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11611 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 11612 |
|
| { |
| 11613 |
1 |
| Sv RETVAL; |
| 11614 |
1 |
▶ | GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| GeometryPrecisionReducer* THIS = xs::in<GeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11615 |
|
| ; |
| 11616 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11617 |
|
| ; |
| 11618 |
|
| #line 25 "./xsi/precision/GeometryPrecisionReducer.xsi" |
| 11619 |
|
| auto ptr = THIS->reduce(g); |
| 11620 |
|
| RETVAL = Helper::uplift(ptr.release()); |
| 11621 |
|
| #line 11622 "Geos_xsgen.cc" |
| 11622 |
|
| { |
| 11623 |
|
| SV * RETVALSV; |
| 11624 |
1 |
| RETVALSV = NULL; |
| 11625 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11626 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11627 |
0 |
| else switch (RETVAL.type()) { |
| 11628 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11629 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11630 |
0 |
| case SVt_PVCV: |
| 11631 |
|
| case SVt_PVIO: |
| 11632 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11633 |
0 |
| break; |
| 11634 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11635 |
|
| } |
| 11636 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11637 |
1 |
| ST(0) = RETVALSV; |
| 11638 |
|
| } |
| 11639 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11640 |
1 |
| XSRETURN(1); |
| 11641 |
1 |
| }); } |
| 11642 |
|
| |
| 11643 |
|
| |
| 11644 |
|
| |
| 11645 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__GeometryPrecisionReducer_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 11646 |
|
| { |
| 11647 |
0 |
| dVAR; dXSARGS; |
| 11648 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 11649 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 11650 |
|
| { |
| 11651 |
|
| int RETVAL; |
| 11652 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 11653 |
|
| #line 29 "./xsi/precision/GeometryPrecisionReducer.xsi" |
| 11654 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 11655 |
|
| #line 11656 "Geos_xsgen.cc" |
| 11656 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 11657 |
0 |
| ST(0) = TARG; |
| 11658 |
|
| } |
| 11659 |
0 |
| XSRETURN(1); |
| 11660 |
0 |
| }); } |
| 11661 |
|
| |
| 11662 |
|
| |
| 11663 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/precision/GeometryPrecisionReducer.xsi' */ |
| 11664 |
|
| |
| 11665 |
|
| |
| 11666 |
|
| /* INCLUDE: Including 'xsi/precision/SimpleGeometryPrecisionReducer.xsi' from 'Geos.xs' */ |
| 11667 |
|
| |
| 11668 |
|
| |
| 11669 |
|
| |
| 11670 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11671 |
|
| { |
| 11672 |
1 |
| dVAR; dXSARGS; |
| 11673 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11674 |
0 |
| croak_xs_usage(cv, "_____unused29, arg"); |
| 11675 |
|
| { |
| 11676 |
1 |
| Sv RETVAL; |
| 11677 |
1 |
▶ | SV* arg = ST(1) |
Branch: 1 branch
| Branch | True | False | Total |
| SV* arg = ST(1) |
1 |
0 |
1 |
|
| 11678 |
|
| ; |
| 11679 |
|
| #line 5 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11680 |
|
| PrecisionModel& pm = xs::in<PrecisionModel&>(arg); |
| 11681 |
|
| auto self = new SimpleGeometryPrecisionReducer(&pm); |
| 11682 |
|
| Object wrapped = xs::out<SimpleGeometryPrecisionReducer*>(self); |
| 11683 |
|
| wrapped.payload_attach(SvRV(arg), &payload_marker); |
| 11684 |
|
| RETVAL = wrapped.ref(); |
| 11685 |
|
| #line 11686 "Geos_xsgen.cc" |
| 11686 |
|
| { |
| 11687 |
|
| SV * RETVALSV; |
| 11688 |
1 |
| RETVALSV = NULL; |
| 11689 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11690 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11691 |
0 |
| else switch (RETVAL.type()) { |
| 11692 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11693 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11694 |
0 |
| case SVt_PVCV: |
| 11695 |
|
| case SVt_PVIO: |
| 11696 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11697 |
0 |
| break; |
| 11698 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11699 |
|
| } |
| 11700 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11701 |
1 |
| ST(0) = RETVALSV; |
| 11702 |
|
| } |
| 11703 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11704 |
1 |
| XSRETURN(1); |
| 11705 |
1 |
| }); } |
| 11706 |
|
| |
| 11707 |
|
| |
| 11708 |
|
| |
| 11709 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getPrecisionModel) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getPrecisionModel) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11710 |
|
| { |
| 11711 |
1 |
| dVAR; dXSARGS; |
| 11712 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 11713 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 11714 |
|
| { |
| 11715 |
1 |
| Sv RETVAL; |
| 11716 |
1 |
▶ | SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11717 |
|
| ; |
| 11718 |
|
| #line 13 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11719 |
|
| (void)THIS; |
| 11720 |
|
| Object me{ST(0)}; |
| 11721 |
|
| auto payload = me.payload(&payload_marker); |
| 11722 |
|
| Object obj { payload.obj }; |
| 11723 |
|
| RETVAL = obj.ref(); |
| 11724 |
|
| #line 11725 "Geos_xsgen.cc" |
| 11725 |
|
| { |
| 11726 |
|
| SV * RETVALSV; |
| 11727 |
1 |
| RETVALSV = NULL; |
| 11728 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11729 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11730 |
0 |
| else switch (RETVAL.type()) { |
| 11731 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11732 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11733 |
0 |
| case SVt_PVCV: |
| 11734 |
|
| case SVt_PVIO: |
| 11735 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11736 |
0 |
| break; |
| 11737 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11738 |
|
| } |
| 11739 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11740 |
1 |
| ST(0) = RETVALSV; |
| 11741 |
|
| } |
| 11742 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11743 |
1 |
| XSRETURN(1); |
| 11744 |
1 |
| }); } |
| 11745 |
|
| |
| 11746 |
|
| |
| 11747 |
|
| |
| 11748 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_setRemoveCollapsedComponents) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_setRemoveCollapsedComponents) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11749 |
|
| { |
| 11750 |
1 |
| dVAR; dXSARGS; |
| 11751 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11752 |
0 |
| croak_xs_usage(cv, "THIS, nRemoveCollapsed"); |
| 11753 |
|
| PERL_UNUSED_VAR(ax); /* -Wall */ |
| 11754 |
1 |
| SP -= items; |
| 11755 |
|
| { |
| 11756 |
1 |
▶ | SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11757 |
|
| ; |
| 11758 |
1 |
| bool nRemoveCollapsed = (bool)SvTRUE(ST(1)) |
| 11759 |
|
| ; |
| 11760 |
|
| #line 20 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11761 |
|
| THIS->setRemoveCollapsedComponents(nRemoveCollapsed); |
| 11762 |
|
| #line 11763 "Geos_xsgen.cc" |
| 11763 |
1 |
| PUTBACK; |
| 11764 |
1 |
| return; |
| 11765 |
|
| } |
| 11766 |
1 |
| }); } |
| 11767 |
|
| |
| 11768 |
|
| |
| 11769 |
|
| |
| 11770 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getRemoveCollapsed) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getRemoveCollapsed) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11771 |
|
| { |
| 11772 |
1 |
| dVAR; dXSARGS; |
| 11773 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 11774 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 11775 |
|
| { |
| 11776 |
|
| bool RETVAL; |
| 11777 |
1 |
▶ | SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 1 branch
| Branch | True | False | Total |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11778 |
|
| ; |
| 11779 |
|
| #line 22 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11780 |
|
| RETVAL = THIS->getRemoveCollapsed(); |
| 11781 |
|
| #line 11782 "Geos_xsgen.cc" |
| 11782 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 11783 |
|
| } |
| 11784 |
1 |
| XSRETURN(1); |
| 11785 |
1 |
| }); } |
| 11786 |
|
| |
| 11787 |
|
| |
| 11788 |
|
| |
| 11789 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_reduce) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_reduce) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11790 |
|
| { |
| 11791 |
1 |
| dVAR; dXSARGS; |
| 11792 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11793 |
0 |
| croak_xs_usage(cv, "THIS, g"); |
| 11794 |
|
| { |
| 11795 |
1 |
| Sv RETVAL; |
| 11796 |
1 |
▶ | SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| SimpleGeometryPrecisionReducer* THIS = xs::in<SimpleGeometryPrecisionReducer *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 11797 |
|
| ; |
| 11798 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(1)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
| Geometry& g = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11799 |
|
| ; |
| 11800 |
|
| #line 25 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11801 |
|
| RETVAL = Helper::uplift(THIS->reduce(&g)); |
| 11802 |
|
| #line 11803 "Geos_xsgen.cc" |
| 11803 |
|
| { |
| 11804 |
|
| SV * RETVALSV; |
| 11805 |
1 |
| RETVALSV = NULL; |
| 11806 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11807 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 11808 |
0 |
| else switch (RETVAL.type()) { |
| 11809 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11810 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11811 |
0 |
| case SVt_PVCV: |
| 11812 |
|
| case SVt_PVIO: |
| 11813 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11814 |
0 |
| break; |
| 11815 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11816 |
|
| } |
| 11817 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11818 |
1 |
| ST(0) = RETVALSV; |
| 11819 |
|
| } |
| 11820 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 11821 |
1 |
| XSRETURN(1); |
| 11822 |
1 |
| }); } |
| 11823 |
|
| |
| 11824 |
|
| |
| 11825 |
|
| |
| 11826 |
0 |
▶ | XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_CLONE_SKIP) { xs::throw_guard(cv, [=]() |
0 |
0 |
0 |
|
| 11827 |
|
| { |
| 11828 |
0 |
| dVAR; dXSARGS; |
| 11829 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 11830 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 11831 |
|
| { |
| 11832 |
|
| int RETVAL; |
| 11833 |
0 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
0 |
0 |
0 |
| dXSTARG; |
0 |
0 |
0 |
|
| 11834 |
|
| #line 28 "./xsi/precision/SimpleGeometryPrecisionReducer.xsi" |
| 11835 |
|
| PERL_UNUSED_VAR(items); RETVAL = 1; |
| 11836 |
|
| #line 11837 "Geos_xsgen.cc" |
| 11837 |
0 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
0 |
0 |
|
| 11838 |
0 |
| ST(0) = TARG; |
| 11839 |
|
| } |
| 11840 |
0 |
| XSRETURN(1); |
| 11841 |
0 |
| }); } |
| 11842 |
|
| |
| 11843 |
|
| |
| 11844 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/precision/SimpleGeometryPrecisionReducer.xsi' */ |
| 11845 |
|
| |
| 11846 |
|
| |
| 11847 |
|
| /* INCLUDE: Including 'xsi/operation.xsi' from 'Geos.xs' */ |
| 11848 |
|
| |
| 11849 |
|
| |
| 11850 |
|
| |
| 11851 |
6 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_buffer) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_buffer) { xs::throw_guard(cv, [=]() |
3 |
0 |
3 |
|
| 11852 |
|
| { |
| 11853 |
3 |
| dVAR; dXSARGS; |
| 11854 |
3 |
▶ | if (items < 2 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 4) |
3 |
0 |
3 |
| if (items < 2 || items > 4) |
0 |
3 |
3 |
|
| 11855 |
0 |
| croak_xs_usage(cv, "g, distance, quadrantSegments= NULL, endCapStyle= NULL"); |
| 11856 |
|
| { |
| 11857 |
3 |
| Sv RETVAL; |
| 11858 |
3 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
3 |
0 |
3 |
|
| 11859 |
|
| ; |
| 11860 |
3 |
▶ | double distance = (double)SvNV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| double distance = (double)SvNV(ST(1)) |
3 |
0 |
3 |
|
| 11861 |
|
| ; |
| 11862 |
|
| SV* quadrantSegments; |
| 11863 |
|
| SV* endCapStyle; |
| 11864 |
|
| |
| 11865 |
3 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
2 |
3 |
|
| 11866 |
1 |
| quadrantSegments = NULL; |
| 11867 |
|
| else { |
| 11868 |
2 |
| quadrantSegments = ST(2) |
| 11869 |
|
| ; |
| 11870 |
|
| } |
| 11871 |
|
| |
| 11872 |
3 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
2 |
1 |
3 |
|
| 11873 |
2 |
| endCapStyle = NULL; |
| 11874 |
|
| else { |
| 11875 |
1 |
| endCapStyle = ST(3) |
| 11876 |
|
| ; |
| 11877 |
|
| } |
| 11878 |
|
| #line 5 "./xsi/operation.xsi" |
| 11879 |
|
| int vQuadrantSegments = quadrantSegments ? SvIV(quadrantSegments) : (int)BufferParameters::DEFAULT_QUADRANT_SEGMENTS; |
| 11880 |
|
| int vEndCapStyle = endCapStyle? SvIV(endCapStyle) : (int)BufferParameters::CAP_ROUND; |
| 11881 |
|
| Geometry* r = BufferOp::bufferOp(&g, distance, vQuadrantSegments, vEndCapStyle); |
| 11882 |
|
| RETVAL = Helper::uplift(r); |
| 11883 |
|
| #line 11884 "Geos_xsgen.cc" |
| 11884 |
|
| { |
| 11885 |
|
| SV * RETVALSV; |
| 11886 |
3 |
| RETVALSV = NULL; |
| 11887 |
3 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
3 |
3 |
|
| 11888 |
3 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
3 |
0 |
3 |
|
| 11889 |
0 |
| else switch (RETVAL.type()) { |
| 11890 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11891 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 11892 |
0 |
| case SVt_PVCV: |
| 11893 |
|
| case SVt_PVIO: |
| 11894 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 11895 |
0 |
| break; |
| 11896 |
0 |
| default: throw "unknown type of Sv to return"; |
| 11897 |
|
| } |
| 11898 |
3 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
3 |
0 |
3 |
|
| 11899 |
3 |
| ST(0) = RETVALSV; |
| 11900 |
|
| } |
| 11901 |
3 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
3 |
0 |
3 |
|
| 11902 |
3 |
| XSRETURN(1); |
| 11903 |
3 |
| }); } |
| 11904 |
|
| |
| 11905 |
|
| |
| 11906 |
|
| |
| 11907 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_distance) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_distance) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11908 |
|
| { |
| 11909 |
1 |
| dVAR; dXSARGS; |
| 11910 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11911 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11912 |
|
| { |
| 11913 |
|
| double RETVAL; |
| 11914 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 11915 |
1 |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
| 11916 |
|
| ; |
| 11917 |
1 |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
| 11918 |
|
| ; |
| 11919 |
|
| #line 12 "./xsi/operation.xsi" |
| 11920 |
|
| RETVAL = DistanceOp::distance(&g0, &g1); |
| 11921 |
|
| #line 11922 "Geos_xsgen.cc" |
| 11922 |
1 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
0 |
1 |
1 |
|
| 11923 |
1 |
| ST(0) = TARG; |
| 11924 |
|
| } |
| 11925 |
1 |
| XSRETURN(1); |
| 11926 |
1 |
| }); } |
| 11927 |
|
| |
| 11928 |
|
| |
| 11929 |
|
| |
| 11930 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_nearestPoints) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_nearestPoints) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11931 |
|
| { |
| 11932 |
1 |
| dVAR; dXSARGS; |
| 11933 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11934 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11935 |
|
| { |
| 11936 |
1 |
| Array RETVAL; |
| 11937 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11938 |
|
| ; |
| 11939 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11940 |
|
| ; |
| 11941 |
|
| #line 16 "./xsi/operation.xsi" |
| 11942 |
|
| Array r; |
| 11943 |
|
| auto seq = DistanceOp::nearestPoints(&g0, &g1); |
| 11944 |
|
| if(seq) { |
| 11945 |
|
| auto seq_ptr = std::unique_ptr<CoordinateSequence>(seq); |
| 11946 |
|
| r = Helper::convert_copy(seq); |
| 11947 |
|
| } |
| 11948 |
|
| RETVAL = r; |
| 11949 |
|
| #line 11950 "Geos_xsgen.cc" |
| 11950 |
|
| { |
| 11951 |
|
| SV * RETVALSV; |
| 11952 |
1 |
| RETVALSV = NULL; |
| 11953 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11954 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 11955 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11956 |
1 |
| ST(0) = RETVALSV; |
| 11957 |
|
| } |
| 11958 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11959 |
1 |
| XSRETURN(1); |
| 11960 |
1 |
| }); } |
| 11961 |
|
| |
| 11962 |
|
| |
| 11963 |
|
| |
| 11964 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_closestPoints) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_closestPoints) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11965 |
|
| { |
| 11966 |
1 |
| dVAR; dXSARGS; |
| 11967 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 11968 |
0 |
| croak_xs_usage(cv, "g0, g1"); |
| 11969 |
|
| { |
| 11970 |
1 |
| Array RETVAL; |
| 11971 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 11972 |
|
| ; |
| 11973 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 11974 |
|
| ; |
| 11975 |
|
| #line 26 "./xsi/operation.xsi" |
| 11976 |
|
| Array r; |
| 11977 |
|
| auto seq = DistanceOp::closestPoints(&g0, &g1); |
| 11978 |
|
| if(seq) { |
| 11979 |
|
| auto seq_ptr = std::unique_ptr<CoordinateSequence>(seq); |
| 11980 |
|
| r = Helper::convert_copy(seq); |
| 11981 |
|
| } |
| 11982 |
|
| RETVAL = r; |
| 11983 |
|
| #line 11984 "Geos_xsgen.cc" |
| 11984 |
|
| { |
| 11985 |
|
| SV * RETVALSV; |
| 11986 |
1 |
| RETVALSV = NULL; |
| 11987 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 11988 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 11989 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 11990 |
1 |
| ST(0) = RETVALSV; |
| 11991 |
|
| } |
| 11992 |
1 |
▶ | } |
Branch: 2 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 11993 |
1 |
| XSRETURN(1); |
| 11994 |
1 |
| }); } |
| 11995 |
|
| |
| 11996 |
|
| |
| 11997 |
|
| |
| 11998 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_overlayOp) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_overlayOp) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 11999 |
|
| { |
| 12000 |
1 |
| dVAR; dXSARGS; |
| 12001 |
1 |
▶ | if (items != 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 3) |
0 |
1 |
1 |
|
| 12002 |
0 |
| croak_xs_usage(cv, "g0, g1, opCode"); |
| 12003 |
|
| { |
| 12004 |
1 |
| Sv RETVAL; |
| 12005 |
1 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 12006 |
|
| ; |
| 12007 |
1 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
1 |
0 |
1 |
|
| 12008 |
|
| ; |
| 12009 |
1 |
▶ | int opCode = (int)SvIV(ST(2)) |
Branch: 2 branches
| Branch | True | False | Total |
| int opCode = (int)SvIV(ST(2)) |
1 |
0 |
1 |
| int opCode = (int)SvIV(ST(2)) |
0 |
1 |
1 |
|
| 12010 |
|
| ; |
| 12011 |
|
| #line 36 "./xsi/operation.xsi" |
| 12012 |
|
| if (opCode > 4) throw "wrong opCode"; |
| 12013 |
|
| OverlayOp::OpCode code = static_cast<OverlayOp::OpCode>(opCode); |
| 12014 |
|
| Geometry* g = OverlayOp::overlayOp(&g0, &g1, code); |
| 12015 |
|
| RETVAL = Helper::uplift(g); |
| 12016 |
|
| #line 12017 "Geos_xsgen.cc" |
| 12017 |
|
| { |
| 12018 |
|
| SV * RETVALSV; |
| 12019 |
1 |
| RETVALSV = NULL; |
| 12020 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12021 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 12022 |
0 |
| else switch (RETVAL.type()) { |
| 12023 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12024 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12025 |
0 |
| case SVt_PVCV: |
| 12026 |
|
| case SVt_PVIO: |
| 12027 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12028 |
0 |
| break; |
| 12029 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12030 |
|
| } |
| 12031 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12032 |
1 |
| ST(0) = RETVALSV; |
| 12033 |
|
| } |
| 12034 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 12035 |
1 |
| XSRETURN(1); |
| 12036 |
1 |
| }); } |
| 12037 |
|
| |
| 12038 |
|
| |
| 12039 |
|
| |
| 12040 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_isValid) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_isValid) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 12041 |
|
| { |
| 12042 |
2 |
| dVAR; dXSARGS; |
| 12043 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 12044 |
0 |
| croak_xs_usage(cv, "obj"); |
| 12045 |
|
| { |
| 12046 |
|
| bool RETVAL; |
| 12047 |
2 |
▶ | Object obj = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Object obj = ST(0); |
2 |
0 |
2 |
|
| 12048 |
2 |
▶ | if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
0 |
0 |
| if (!obj && SvOK(ST(0))) throw "arg is not a blessed reference" |
0 |
2 |
2 |
|
| 12049 |
|
| ; |
| 12050 |
|
| #line 43 "./xsi/operation.xsi" |
| 12051 |
|
| if (obj.stash().name() == "Geo::Geos::Coordinate") { |
| 12052 |
|
| auto& c = xs::in<Coordinate&>(obj); |
| 12053 |
|
| RETVAL = IsValidOp::isValid(c); |
| 12054 |
|
| } |
| 12055 |
|
| else { |
| 12056 |
|
| auto& g = xs::in<Geometry&>(obj); |
| 12057 |
|
| RETVAL = IsValidOp::isValid(g); |
| 12058 |
|
| } |
| 12059 |
|
| #line 12060 "Geos_xsgen.cc" |
| 12060 |
2 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
2 |
0 |
2 |
|
| 12061 |
2 |
| } |
| 12062 |
2 |
| XSRETURN(1); |
| 12063 |
2 |
| }); } |
| 12064 |
|
| |
| 12065 |
|
| |
| 12066 |
|
| |
| 12067 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_relate) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_relate) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 12068 |
|
| { |
| 12069 |
2 |
| dVAR; dXSARGS; |
| 12070 |
2 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
2 |
0 |
2 |
| if (items < 2 || items > 3) |
0 |
2 |
2 |
|
| 12071 |
0 |
| croak_xs_usage(cv, "g0, g1, boundaryNodeRule= NULL"); |
| 12072 |
|
| { |
| 12073 |
|
| IntersectionMatrix * RETVAL; |
| 12074 |
2 |
▶ | Geometry& g0 = xs::in<Geometry&>(ST(0)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g0 = xs::in<Geometry&>(ST(0)); |
2 |
0 |
2 |
|
| 12075 |
|
| ; |
| 12076 |
2 |
▶ | Geometry& g1 = xs::in<Geometry&>(ST(1)); |
Branch: 1 branch
| Branch | True | False | Total |
| Geometry& g1 = xs::in<Geometry&>(ST(1)); |
2 |
0 |
2 |
|
| 12077 |
|
| ; |
| 12078 |
|
| SV* boundaryNodeRule; |
| 12079 |
|
| |
| 12080 |
2 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
1 |
1 |
2 |
|
| 12081 |
1 |
| boundaryNodeRule = NULL; |
| 12082 |
|
| else { |
| 12083 |
1 |
| boundaryNodeRule = ST(2) |
| 12084 |
|
| ; |
| 12085 |
|
| } |
| 12086 |
|
| #line 54 "./xsi/operation.xsi" |
| 12087 |
|
| xs::Sv PROTO; PERL_UNUSED_VAR(PROTO); |
| 12088 |
|
| if (!boundaryNodeRule) RETVAL = RelateOp::relate(&g0, &g1); |
| 12089 |
|
| else { |
| 12090 |
|
| const BoundaryNodeRule* rule; |
| 12091 |
|
| auto rule_id = SvIV(boundaryNodeRule); |
| 12092 |
|
| switch(rule_id) { |
| 12093 |
|
| case 0: rule = &BoundaryNodeRule::getBoundaryRuleMod2(); break; |
| 12094 |
|
| case 1: rule = &BoundaryNodeRule::getBoundaryEndPoint(); break; |
| 12095 |
|
| case 2: rule = &BoundaryNodeRule::getBoundaryMultivalentEndPoint(); break; |
| 12096 |
|
| case 3: rule = &BoundaryNodeRule::getBoundaryMonovalentEndPoint(); break; |
| 12097 |
|
| case 4: rule = &BoundaryNodeRule::getBoundaryOGCSFS(); break; |
| 12098 |
|
| default: throw("Wrong boundaryNodeRule"); |
| 12099 |
|
| } |
| 12100 |
|
| RETVAL = RelateOp::relate(&g0, &g1, *rule); |
| 12101 |
|
| } |
| 12102 |
|
| #line 12103 "Geos_xsgen.cc" |
| 12103 |
|
| { |
| 12104 |
|
| SV * RETVALSV; |
| 12105 |
2 |
▶ | RETVALSV = xs::out(RETVAL, PROTO).detach(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = xs::out(RETVAL, PROTO).detach(); |
2 |
0 |
2 |
|
| 12106 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 12107 |
2 |
| ST(0) = RETVALSV; |
| 12108 |
|
| } |
| 12109 |
2 |
| } |
| 12110 |
2 |
| XSRETURN(1); |
| 12111 |
2 |
| }); } |
| 12112 |
|
| |
| 12113 |
|
| |
| 12114 |
|
| |
| 12115 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_mergeLines) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_mergeLines) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12116 |
|
| { |
| 12117 |
1 |
| dVAR; dXSARGS; |
| 12118 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 12119 |
0 |
| croak_xs_usage(cv, "in"); |
| 12120 |
|
| { |
| 12121 |
1 |
| Array RETVAL; |
| 12122 |
1 |
▶ | Array in = ST(0); |
Branch: 1 branch
| Branch | True | False | Total |
| Array in = ST(0); |
1 |
0 |
1 |
|
| 12123 |
1 |
▶ | if (!in && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
Branch: 3 branches
| Branch | True | False | Total |
| if (!in && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
| if (!in && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
0 |
0 |
| if (!in && SvOK(ST(0))) throw "arg is not a 'Array' reference" |
0 |
1 |
1 |
|
| 12124 |
|
| ; |
| 12125 |
|
| #line 71 "./xsi/operation.xsi" |
| 12126 |
|
| LineMerger lm; |
| 12127 |
|
| |
| 12128 |
|
| for(auto it: in) { |
| 12129 |
|
| lm.add(&xs::in<Geometry&>(it)); |
| 12130 |
|
| } |
| 12131 |
|
| |
| 12132 |
|
| auto v = lm.getMergedLineStrings(); |
| 12133 |
|
| Array out = Array::create(v->size()); |
| 12134 |
|
| for(LineString* it: *v) { |
| 12135 |
|
| auto wrapped = xs::out<LineString*>(it); |
| 12136 |
|
| out.push(wrapped); |
| 12137 |
|
| } |
| 12138 |
|
| RETVAL = out; |
| 12139 |
|
| delete v; |
| 12140 |
|
| #line 12141 "Geos_xsgen.cc" |
| 12141 |
|
| { |
| 12142 |
|
| SV * RETVALSV; |
| 12143 |
1 |
| RETVALSV = NULL; |
| 12144 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12145 |
1 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
1 |
0 |
1 |
|
| 12146 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12147 |
1 |
| ST(0) = RETVALSV; |
| 12148 |
|
| } |
| 12149 |
1 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 12150 |
1 |
| XSRETURN(1); |
| 12151 |
1 |
| }); } |
| 12152 |
|
| |
| 12153 |
|
| |
| 12154 |
|
| |
| 12155 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_isSequenced) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_isSequenced) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12156 |
|
| { |
| 12157 |
1 |
| dVAR; dXSARGS; |
| 12158 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 12159 |
0 |
| croak_xs_usage(cv, "g"); |
| 12160 |
|
| { |
| 12161 |
|
| bool RETVAL; |
| 12162 |
1 |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
| 12163 |
|
| ; |
| 12164 |
|
| #line 88 "./xsi/operation.xsi" |
| 12165 |
|
| RETVAL = LineSequencer::isSequenced(&g); |
| 12166 |
|
| #line 12167 "Geos_xsgen.cc" |
| 12167 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
1 |
0 |
1 |
|
| 12168 |
|
| } |
| 12169 |
1 |
| XSRETURN(1); |
| 12170 |
1 |
| }); } |
| 12171 |
|
| |
| 12172 |
|
| |
| 12173 |
|
| |
| 12174 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Operation_sequence) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Operation_sequence) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12175 |
|
| { |
| 12176 |
1 |
| dVAR; dXSARGS; |
| 12177 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 12178 |
0 |
| croak_xs_usage(cv, "g"); |
| 12179 |
|
| { |
| 12180 |
1 |
| Sv RETVAL; |
| 12181 |
1 |
▶ | Geometry& g = xs::in<Geometry&>(ST(0)); |
Branch: 2 branches
| Branch | True | False | Total |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
| Geometry& g = xs::in<Geometry&>(ST(0)); |
1 |
0 |
1 |
|
| 12182 |
|
| ; |
| 12183 |
|
| #line 92 "./xsi/operation.xsi" |
| 12184 |
|
| RETVAL = Helper::uplift(LineSequencer::sequence(g)); |
| 12185 |
|
| #line 12186 "Geos_xsgen.cc" |
| 12186 |
|
| { |
| 12187 |
|
| SV * RETVALSV; |
| 12188 |
1 |
| RETVALSV = NULL; |
| 12189 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12190 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 12191 |
0 |
| else switch (RETVAL.type()) { |
| 12192 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12193 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12194 |
0 |
| case SVt_PVCV: |
| 12195 |
|
| case SVt_PVIO: |
| 12196 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12197 |
0 |
| break; |
| 12198 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12199 |
|
| } |
| 12200 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12201 |
1 |
| ST(0) = RETVALSV; |
| 12202 |
|
| } |
| 12203 |
1 |
▶ | } |
Branch: 1 branch
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
|
| 12204 |
1 |
| XSRETURN(1); |
| 12205 |
1 |
| }); } |
| 12206 |
|
| |
| 12207 |
|
| |
| 12208 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/operation.xsi' */ |
| 12209 |
|
| |
| 12210 |
|
| |
| 12211 |
|
| /* INCLUDE: Including 'xsi/triangulate/DelaunayTriangulationBuilder.xsi' from 'Geos.xs' */ |
| 12212 |
|
| |
| 12213 |
|
| |
| 12214 |
|
| |
| 12215 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_new) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 12216 |
|
| { |
| 12217 |
2 |
| dVAR; dXSARGS; |
| 12218 |
2 |
▶ | if (items < 3 || items > 4) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 3 || items > 4) |
2 |
0 |
2 |
| if (items < 3 || items > 4) |
0 |
2 |
2 |
|
| 12219 |
0 |
| croak_xs_usage(cv, "_____unused30, geometry_factory, sites, tolerance= NULL"); |
| 12220 |
|
| { |
| 12221 |
2 |
| Sv RETVAL; |
| 12222 |
2 |
| SV* geometry_factory = ST(1) |
| 12223 |
|
| ; |
| 12224 |
2 |
| Sv sites = ST(2) |
| 12225 |
|
| ; |
| 12226 |
|
| SV* tolerance; |
| 12227 |
|
| |
| 12228 |
2 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
1 |
1 |
2 |
|
| 12229 |
1 |
| tolerance = NULL; |
| 12230 |
|
| else { |
| 12231 |
1 |
| tolerance = ST(3) |
| 12232 |
|
| ; |
| 12233 |
|
| } |
| 12234 |
|
| #line 5 "./xsi/triangulate/DelaunayTriangulationBuilder.xsi" |
| 12235 |
|
| auto builder = std::unique_ptr<DelaunayTriangulationBuilder>(new DelaunayTriangulationBuilder()); |
| 12236 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(geometry_factory); |
| 12237 |
|
| |
| 12238 |
|
| if (sites.is_array_ref()) { |
| 12239 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(Helper::convert_copy(*factory, sites, 2)); |
| 12240 |
|
| builder->setSites(*seq); |
| 12241 |
|
| } |
| 12242 |
|
| else { |
| 12243 |
|
| auto& g = xs::in<Geometry&>(sites); |
| 12244 |
|
| builder->setSites(g); |
| 12245 |
|
| } |
| 12246 |
|
| |
| 12247 |
|
| if (tolerance) { |
| 12248 |
|
| builder->setTolerance(Simple(tolerance)); |
| 12249 |
|
| } |
| 12250 |
|
| |
| 12251 |
|
| Object wrapped = xs::out<DelaunayTriangulationBuilder*>(builder.release()); |
| 12252 |
|
| wrapped.payload_attach(SvRV(geometry_factory), &payload_marker); |
| 12253 |
|
| RETVAL = wrapped.ref(); |
| 12254 |
|
| #line 12255 "Geos_xsgen.cc" |
| 12255 |
|
| { |
| 12256 |
|
| SV * RETVALSV; |
| 12257 |
2 |
| RETVALSV = NULL; |
| 12258 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 12259 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 12260 |
0 |
| else switch (RETVAL.type()) { |
| 12261 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12262 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12263 |
0 |
| case SVt_PVCV: |
| 12264 |
|
| case SVt_PVIO: |
| 12265 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12266 |
0 |
| break; |
| 12267 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12268 |
|
| } |
| 12269 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 12270 |
2 |
| ST(0) = RETVALSV; |
| 12271 |
|
| } |
| 12272 |
2 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 12273 |
2 |
| XSRETURN(1); |
| 12274 |
2 |
| }); } |
| 12275 |
|
| |
| 12276 |
|
| |
| 12277 |
|
| |
| 12278 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getEdges) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getEdges) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 12279 |
|
| { |
| 12280 |
2 |
| dVAR; dXSARGS; |
| 12281 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 12282 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 12283 |
|
| { |
| 12284 |
2 |
| Sv RETVAL; |
| 12285 |
2 |
▶ | DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 12286 |
|
| ; |
| 12287 |
|
| #line 27 "./xsi/triangulate/DelaunayTriangulationBuilder.xsi" |
| 12288 |
|
| Object me{ST(0)}; |
| 12289 |
|
| auto payload = me.payload(&payload_marker); |
| 12290 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(payload.obj); |
| 12291 |
|
| auto edges = THIS->getEdges(*factory); |
| 12292 |
|
| RETVAL = Helper::uplift(edges.release()); |
| 12293 |
|
| #line 12294 "Geos_xsgen.cc" |
| 12294 |
|
| { |
| 12295 |
|
| SV * RETVALSV; |
| 12296 |
2 |
| RETVALSV = NULL; |
| 12297 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 12298 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 12299 |
0 |
| else switch (RETVAL.type()) { |
| 12300 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12301 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12302 |
0 |
| case SVt_PVCV: |
| 12303 |
|
| case SVt_PVIO: |
| 12304 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12305 |
0 |
| break; |
| 12306 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12307 |
|
| } |
| 12308 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 12309 |
2 |
| ST(0) = RETVALSV; |
| 12310 |
|
| } |
| 12311 |
2 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 12312 |
2 |
| XSRETURN(1); |
| 12313 |
2 |
| }); } |
| 12314 |
|
| |
| 12315 |
|
| |
| 12316 |
|
| |
| 12317 |
4 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getTriangles) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getTriangles) { xs::throw_guard(cv, [=]() |
2 |
0 |
2 |
|
| 12318 |
|
| { |
| 12319 |
2 |
| dVAR; dXSARGS; |
| 12320 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 12321 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 12322 |
|
| { |
| 12323 |
2 |
| Sv RETVAL; |
| 12324 |
2 |
▶ | DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
2 |
0 |
2 |
| DelaunayTriangulationBuilder* THIS = xs::in<DelaunayTriangulationBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
2 |
2 |
|
| 12325 |
|
| ; |
| 12326 |
|
| #line 35 "./xsi/triangulate/DelaunayTriangulationBuilder.xsi" |
| 12327 |
|
| Object me{ST(0)}; |
| 12328 |
|
| auto payload = me.payload(&payload_marker); |
| 12329 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(payload.obj); |
| 12330 |
|
| auto edges = THIS->getTriangles(*factory); |
| 12331 |
|
| RETVAL = Helper::uplift(edges.release()); |
| 12332 |
|
| #line 12333 "Geos_xsgen.cc" |
| 12333 |
|
| { |
| 12334 |
|
| SV * RETVALSV; |
| 12335 |
2 |
| RETVALSV = NULL; |
| 12336 |
2 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
2 |
2 |
|
| 12337 |
2 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
2 |
0 |
2 |
|
| 12338 |
0 |
| else switch (RETVAL.type()) { |
| 12339 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12340 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12341 |
0 |
| case SVt_PVCV: |
| 12342 |
|
| case SVt_PVIO: |
| 12343 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12344 |
0 |
| break; |
| 12345 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12346 |
|
| } |
| 12347 |
2 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
2 |
0 |
2 |
|
| 12348 |
2 |
| ST(0) = RETVALSV; |
| 12349 |
|
| } |
| 12350 |
2 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
| } |
2 |
0 |
2 |
|
| 12351 |
2 |
| XSRETURN(1); |
| 12352 |
2 |
| }); } |
| 12353 |
|
| |
| 12354 |
|
| |
| 12355 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/triangulate/DelaunayTriangulationBuilder.xsi' */ |
| 12356 |
|
| |
| 12357 |
|
| |
| 12358 |
|
| /* INCLUDE: Including 'xsi/triangulate/VoronoiDiagramBuilder.xsi' from 'Geos.xs' */ |
| 12359 |
|
| |
| 12360 |
|
| |
| 12361 |
|
| |
| 12362 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_new) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_new) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12363 |
|
| { |
| 12364 |
1 |
| dVAR; dXSARGS; |
| 12365 |
1 |
▶ | if (items < 3 || items > 5) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 3 || items > 5) |
1 |
0 |
1 |
| if (items < 3 || items > 5) |
0 |
1 |
1 |
|
| 12366 |
0 |
| croak_xs_usage(cv, "_____unused31, geometry_factory, sites, tolerance= NULL, env= NULL"); |
| 12367 |
|
| { |
| 12368 |
1 |
| Sv RETVAL; |
| 12369 |
1 |
| SV* geometry_factory = ST(1) |
| 12370 |
|
| ; |
| 12371 |
1 |
| Sv sites = ST(2) |
| 12372 |
|
| ; |
| 12373 |
|
| SV* tolerance; |
| 12374 |
|
| SV* env; |
| 12375 |
|
| |
| 12376 |
1 |
▶ | if (items < 4) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 4) |
0 |
1 |
1 |
|
| 12377 |
0 |
| tolerance = NULL; |
| 12378 |
|
| else { |
| 12379 |
1 |
| tolerance = ST(3) |
| 12380 |
|
| ; |
| 12381 |
|
| } |
| 12382 |
|
| |
| 12383 |
1 |
▶ | if (items < 5) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 5) |
0 |
1 |
1 |
|
| 12384 |
0 |
| env = NULL; |
| 12385 |
|
| else { |
| 12386 |
1 |
| env = ST(4) |
| 12387 |
|
| ; |
| 12388 |
|
| } |
| 12389 |
|
| #line 5 "./xsi/triangulate/VoronoiDiagramBuilder.xsi" |
| 12390 |
|
| auto builder = std::unique_ptr<VoronoiDiagramBuilder>(new VoronoiDiagramBuilder()); |
| 12391 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(geometry_factory); |
| 12392 |
|
| |
| 12393 |
|
| if (sites.is_array_ref()) { |
| 12394 |
|
| auto seq = std::unique_ptr<CoordinateSequence>(Helper::convert_copy(*factory, sites, 2)); |
| 12395 |
|
| builder->setSites(*seq); |
| 12396 |
|
| } |
| 12397 |
|
| else { |
| 12398 |
|
| auto& g = xs::in<Geometry&>(sites); |
| 12399 |
|
| builder->setSites(g); |
| 12400 |
|
| } |
| 12401 |
|
| |
| 12402 |
|
| if (tolerance) { |
| 12403 |
|
| builder->setTolerance(Simple(tolerance)); |
| 12404 |
|
| } |
| 12405 |
|
| |
| 12406 |
|
| if (env) { |
| 12407 |
|
| auto envelope = xs::in<Envelope*>(env); |
| 12408 |
|
| builder->setClipEnvelope(envelope); |
| 12409 |
|
| } |
| 12410 |
|
| |
| 12411 |
|
| Object wrapped = xs::out<VoronoiDiagramBuilder*>(builder.release()); |
| 12412 |
|
| wrapped.payload_attach(SvRV(geometry_factory), &payload_marker); |
| 12413 |
|
| RETVAL = wrapped.ref(); |
| 12414 |
|
| #line 12415 "Geos_xsgen.cc" |
| 12415 |
|
| { |
| 12416 |
|
| SV * RETVALSV; |
| 12417 |
1 |
| RETVALSV = NULL; |
| 12418 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12419 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 12420 |
0 |
| else switch (RETVAL.type()) { |
| 12421 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12422 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12423 |
0 |
| case SVt_PVCV: |
| 12424 |
|
| case SVt_PVIO: |
| 12425 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12426 |
0 |
| break; |
| 12427 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12428 |
|
| } |
| 12429 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12430 |
1 |
| ST(0) = RETVALSV; |
| 12431 |
|
| } |
| 12432 |
1 |
▶ | } |
Branch: 4 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 12433 |
1 |
| XSRETURN(1); |
| 12434 |
1 |
| }); } |
| 12435 |
|
| |
| 12436 |
|
| |
| 12437 |
|
| |
| 12438 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagramEdges) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagramEdges) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12439 |
|
| { |
| 12440 |
1 |
| dVAR; dXSARGS; |
| 12441 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 12442 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 12443 |
|
| { |
| 12444 |
1 |
| Sv RETVAL; |
| 12445 |
1 |
▶ | VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 12446 |
|
| ; |
| 12447 |
|
| #line 32 "./xsi/triangulate/VoronoiDiagramBuilder.xsi" |
| 12448 |
|
| Object me{ST(0)}; |
| 12449 |
|
| auto payload = me.payload(&payload_marker); |
| 12450 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(payload.obj); |
| 12451 |
|
| auto edges = THIS->getDiagramEdges(*factory); |
| 12452 |
|
| RETVAL = Helper::uplift(edges.release()); |
| 12453 |
|
| #line 12454 "Geos_xsgen.cc" |
| 12454 |
|
| { |
| 12455 |
|
| SV * RETVALSV; |
| 12456 |
1 |
| RETVALSV = NULL; |
| 12457 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12458 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 12459 |
0 |
| else switch (RETVAL.type()) { |
| 12460 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12461 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12462 |
0 |
| case SVt_PVCV: |
| 12463 |
|
| case SVt_PVIO: |
| 12464 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12465 |
0 |
| break; |
| 12466 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12467 |
|
| } |
| 12468 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12469 |
1 |
| ST(0) = RETVALSV; |
| 12470 |
|
| } |
| 12471 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 12472 |
1 |
| XSRETURN(1); |
| 12473 |
1 |
| }); } |
| 12474 |
|
| |
| 12475 |
|
| |
| 12476 |
|
| |
| 12477 |
2 |
▶ | XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagram) { xs::throw_guard(cv, [=]() |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EUPXS(XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagram) { xs::throw_guard(cv, [=]() |
1 |
0 |
1 |
|
| 12478 |
|
| { |
| 12479 |
1 |
| dVAR; dXSARGS; |
| 12480 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 12481 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 12482 |
|
| { |
| 12483 |
1 |
| Sv RETVAL; |
| 12484 |
1 |
▶ | VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
Branch: 2 branches
| Branch | True | False | Total |
| VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
1 |
0 |
1 |
| VoronoiDiagramBuilder* THIS = xs::in<VoronoiDiagramBuilder *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; |
0 |
1 |
1 |
|
| 12485 |
|
| ; |
| 12486 |
|
| #line 40 "./xsi/triangulate/VoronoiDiagramBuilder.xsi" |
| 12487 |
|
| Object me{ST(0)}; |
| 12488 |
|
| auto payload = me.payload(&payload_marker); |
| 12489 |
|
| GeometryFactory* factory = xs::in<GeometryFactory*>(payload.obj); |
| 12490 |
|
| auto edges = THIS->getDiagram(*factory); |
| 12491 |
|
| RETVAL = Helper::uplift(edges.release()); |
| 12492 |
|
| #line 12493 "Geos_xsgen.cc" |
| 12493 |
|
| { |
| 12494 |
|
| SV * RETVALSV; |
| 12495 |
1 |
| RETVALSV = NULL; |
| 12496 |
1 |
▶ | if (!RETVAL) XSRETURN_UNDEF; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!RETVAL) XSRETURN_UNDEF; |
0 |
1 |
1 |
|
| 12497 |
1 |
▶ | if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
Branch: 2 branches
| Branch | True | False | Total |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
| if (RETVAL.is_scalar()) RETVALSV = RETVAL.detach(); |
1 |
0 |
1 |
|
| 12498 |
0 |
| else switch (RETVAL.type()) { |
| 12499 |
0 |
▶ | case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVAV: XSRETURN(xs::Array(RETVAL.get<AV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12500 |
0 |
▶ | case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
Branch: 2 branches
| Branch | True | False | Total |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
| case SVt_PVHV: XSRETURN(xs::Hash(RETVAL.get<HV>()).push_on_stack(MARK)); |
0 |
0 |
0 |
|
| 12501 |
0 |
| case SVt_PVCV: |
| 12502 |
|
| case SVt_PVIO: |
| 12503 |
0 |
▶ | RETVALSV = newRV_noinc(RETVAL.detach()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = newRV_noinc(RETVAL.detach()); |
0 |
0 |
0 |
|
| 12504 |
0 |
| break; |
| 12505 |
0 |
| default: throw "unknown type of Sv to return"; |
| 12506 |
|
| } |
| 12507 |
1 |
▶ | RETVALSV = sv_2mortal(RETVALSV); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_2mortal(RETVALSV); |
1 |
0 |
1 |
|
| 12508 |
1 |
| ST(0) = RETVALSV; |
| 12509 |
|
| } |
| 12510 |
1 |
▶ | } |
Branch: 3 branches
| Branch | True | False | Total |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
| } |
1 |
0 |
1 |
|
| 12511 |
1 |
| XSRETURN(1); |
| 12512 |
1 |
| }); } |
| 12513 |
|
| |
| 12514 |
|
| |
| 12515 |
|
| /* INCLUDE: Returning to 'Geos.xs' from 'xsi/triangulate/VoronoiDiagramBuilder.xsi' */ |
| 12516 |
|
| |
| 12517 |
|
| #ifdef __cplusplus |
| 12518 |
|
| extern "C" { |
| 12519 |
|
| #endif |
| 12520 |
|
| |
| 12521 |
92 |
▶ | XS_EXTERNAL(boot_Geo__Geos) { xs::throw_guard(cv, [=]() mutable |
Branch: 1 branch
| Branch | True | False | Total |
| XS_EXTERNAL(boot_Geo__Geos) { xs::throw_guard(cv, [=]() mutable |
46 |
0 |
46 |
|
| 12522 |
|
| { |
| 12523 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 12524 |
|
| dVAR; dXSARGS; |
| 12525 |
|
| #else |
| 12526 |
46 |
| dVAR; dXSBOOTARGSXSAPIVERCHK; |
| 12527 |
|
| #endif |
| 12528 |
|
| #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */ |
| 12529 |
|
| char* file = __FILE__; |
| 12530 |
|
| #else |
| 12531 |
46 |
| const char* file = __FILE__; |
| 12532 |
|
| #endif |
| 12533 |
|
| |
| 12534 |
|
| PERL_UNUSED_VAR(file); |
| 12535 |
|
| |
| 12536 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 12537 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 12538 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 12539 |
|
| XS_VERSION_BOOTCHECK; |
| 12540 |
|
| # ifdef XS_APIVERSION_BOOTCHECK |
| 12541 |
|
| XS_APIVERSION_BOOTCHECK; |
| 12542 |
|
| # endif |
| 12543 |
|
| #endif |
| 12544 |
|
| |
| 12545 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::getNull", XS_Geo__Geos__Coordinate_getNull); |
| 12546 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::new", XS_Geo__Geos__Coordinate_new); |
| 12547 |
46 |
| cv = newXS_deffile("Geo::Geos::Coordinate::x", XS_Geo__Geos__Coordinate_x); |
| 12548 |
46 |
| XSANY.any_i32 = 0; |
| 12549 |
46 |
| cv = newXS_deffile("Geo::Geos::Coordinate::y", XS_Geo__Geos__Coordinate_x); |
| 12550 |
46 |
| XSANY.any_i32 = 1; |
| 12551 |
46 |
| cv = newXS_deffile("Geo::Geos::Coordinate::z", XS_Geo__Geos__Coordinate_x); |
| 12552 |
46 |
| XSANY.any_i32 = 2; |
| 12553 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::setNull", XS_Geo__Geos__Coordinate_setNull); |
| 12554 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::isNull", XS_Geo__Geos__Coordinate_isNull); |
| 12555 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::equals", XS_Geo__Geos__Coordinate_equals); |
| 12556 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::equals2D", XS_Geo__Geos__Coordinate_equals2D); |
| 12557 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::equals3D", XS_Geo__Geos__Coordinate_equals3D); |
| 12558 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::compareTo", XS_Geo__Geos__Coordinate_compareTo); |
| 12559 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::eq", XS_Geo__Geos__Coordinate_eq); |
| 12560 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::toString", XS_Geo__Geos__Coordinate_toString); |
| 12561 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::distance", XS_Geo__Geos__Coordinate_distance); |
| 12562 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::hashCode", XS_Geo__Geos__Coordinate_hashCode); |
| 12563 |
46 |
| newXS_deffile("Geo::Geos::Coordinate::CLONE_SKIP", XS_Geo__Geos__Coordinate_CLONE_SKIP); |
| 12564 |
46 |
| newXS_deffile("Geo::Geos::Dimension::toDimensionSymbol", XS_Geo__Geos__Dimension_toDimensionSymbol); |
| 12565 |
46 |
| newXS_deffile("Geo::Geos::Dimension::toDimensionValue", XS_Geo__Geos__Dimension_toDimensionValue); |
| 12566 |
46 |
| newXS_deffile("Geo::Geos::Envelope::new", XS_Geo__Geos__Envelope_new); |
| 12567 |
46 |
| newXS_deffile("Geo::Geos::Envelope::init", XS_Geo__Geos__Envelope_init); |
| 12568 |
46 |
| newXS_deffile("Geo::Geos::Envelope::setToNull", XS_Geo__Geos__Envelope_setToNull); |
| 12569 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getArea", XS_Geo__Geos__Envelope_getArea); |
| 12570 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getMaxY", XS_Geo__Geos__Envelope_getMaxY); |
| 12571 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getMaxX", XS_Geo__Geos__Envelope_getMaxX); |
| 12572 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getMinY", XS_Geo__Geos__Envelope_getMinY); |
| 12573 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getMinX", XS_Geo__Geos__Envelope_getMinX); |
| 12574 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getWidth", XS_Geo__Geos__Envelope_getWidth); |
| 12575 |
46 |
| newXS_deffile("Geo::Geos::Envelope::getHeight", XS_Geo__Geos__Envelope_getHeight); |
| 12576 |
46 |
| newXS_deffile("Geo::Geos::Envelope::isNull", XS_Geo__Geos__Envelope_isNull); |
| 12577 |
46 |
| newXS_deffile("Geo::Geos::Envelope::hashCode", XS_Geo__Geos__Envelope_hashCode); |
| 12578 |
46 |
| newXS_deffile("Geo::Geos::Envelope::toString", XS_Geo__Geos__Envelope_toString); |
| 12579 |
46 |
| newXS_deffile("Geo::Geos::Envelope::eq", XS_Geo__Geos__Envelope_eq); |
| 12580 |
46 |
| newXS_deffile("Geo::Geos::Envelope::centre", XS_Geo__Geos__Envelope_centre); |
| 12581 |
46 |
| newXS_deffile("Geo::Geos::Envelope::contains", XS_Geo__Geos__Envelope_contains); |
| 12582 |
46 |
| newXS_deffile("Geo::Geos::Envelope::covers", XS_Geo__Geos__Envelope_covers); |
| 12583 |
46 |
| newXS_deffile("Geo::Geos::Envelope::intersects", XS_Geo__Geos__Envelope_intersects); |
| 12584 |
46 |
| newXS_deffile("Geo::Geos::Envelope::expandToInclude", XS_Geo__Geos__Envelope_expandToInclude); |
| 12585 |
46 |
| newXS_deffile("Geo::Geos::Envelope::distance", XS_Geo__Geos__Envelope_distance); |
| 12586 |
46 |
| newXS_deffile("Geo::Geos::Envelope::translate", XS_Geo__Geos__Envelope_translate); |
| 12587 |
46 |
| newXS_deffile("Geo::Geos::Envelope::expandBy", XS_Geo__Geos__Envelope_expandBy); |
| 12588 |
46 |
| newXS_deffile("Geo::Geos::Envelope::intersection", XS_Geo__Geos__Envelope_intersection); |
| 12589 |
46 |
| newXS_deffile("Geo::Geos::Envelope::CLONE_SKIP", XS_Geo__Geos__Envelope_CLONE_SKIP); |
| 12590 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::new", XS_Geo__Geos__PrecisionModel_new); |
| 12591 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::getScale", XS_Geo__Geos__PrecisionModel_getScale); |
| 12592 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::getOffsetX", XS_Geo__Geos__PrecisionModel_getOffsetX); |
| 12593 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::getOffsetY", XS_Geo__Geos__PrecisionModel_getOffsetY); |
| 12594 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::isFloating", XS_Geo__Geos__PrecisionModel_isFloating); |
| 12595 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::getMaximumSignificantDigits", XS_Geo__Geos__PrecisionModel_getMaximumSignificantDigits); |
| 12596 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::getType", XS_Geo__Geos__PrecisionModel_getType); |
| 12597 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::makePrecise", XS_Geo__Geos__PrecisionModel_makePrecise); |
| 12598 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::toString", XS_Geo__Geos__PrecisionModel_toString); |
| 12599 |
46 |
| newXS_deffile("Geo::Geos::PrecisionModel::compareTo", XS_Geo__Geos__PrecisionModel_compareTo); |
| 12600 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::new", XS_Geo__Geos__IntersectionMatrix_new); |
| 12601 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::matches", XS_Geo__Geos__IntersectionMatrix_matches); |
| 12602 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::add", XS_Geo__Geos__IntersectionMatrix_add); |
| 12603 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::set", XS_Geo__Geos__IntersectionMatrix_set); |
| 12604 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::setAtLeast", XS_Geo__Geos__IntersectionMatrix_setAtLeast); |
| 12605 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::setAll", XS_Geo__Geos__IntersectionMatrix_setAll); |
| 12606 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::setAtLeastIfValid", XS_Geo__Geos__IntersectionMatrix_setAtLeastIfValid); |
| 12607 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::get", XS_Geo__Geos__IntersectionMatrix_get); |
| 12608 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isDisjoint", XS_Geo__Geos__IntersectionMatrix_isDisjoint); |
| 12609 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isIntersects", XS_Geo__Geos__IntersectionMatrix_isIntersects); |
| 12610 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isWithin", XS_Geo__Geos__IntersectionMatrix_isWithin); |
| 12611 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isContains", XS_Geo__Geos__IntersectionMatrix_isContains); |
| 12612 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isCovers", XS_Geo__Geos__IntersectionMatrix_isCovers); |
| 12613 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isCoveredBy", XS_Geo__Geos__IntersectionMatrix_isCoveredBy); |
| 12614 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isTouches", XS_Geo__Geos__IntersectionMatrix_isTouches); |
| 12615 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isCrosses", XS_Geo__Geos__IntersectionMatrix_isCrosses); |
| 12616 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isEquals", XS_Geo__Geos__IntersectionMatrix_isEquals); |
| 12617 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::isOverlaps", XS_Geo__Geos__IntersectionMatrix_isOverlaps); |
| 12618 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::transpose", XS_Geo__Geos__IntersectionMatrix_transpose); |
| 12619 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::toString", XS_Geo__Geos__IntersectionMatrix_toString); |
| 12620 |
46 |
| newXS_deffile("Geo::Geos::IntersectionMatrix::CLONE_SKIP", XS_Geo__Geos__IntersectionMatrix_CLONE_SKIP); |
| 12621 |
46 |
| newXS_deffile("Geo::Geos::Triangle::new", XS_Geo__Geos__Triangle_new); |
| 12622 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::p0", XS_Geo__Geos__Triangle_p0); |
| 12623 |
46 |
| XSANY.any_i32 = 0; |
| 12624 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::p1", XS_Geo__Geos__Triangle_p0); |
| 12625 |
46 |
| XSANY.any_i32 = 1; |
| 12626 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::p2", XS_Geo__Geos__Triangle_p0); |
| 12627 |
46 |
| XSANY.any_i32 = 2; |
| 12628 |
46 |
| newXS_deffile("Geo::Geos::Triangle::inCentre", XS_Geo__Geos__Triangle_inCentre); |
| 12629 |
46 |
| newXS_deffile("Geo::Geos::Triangle::circumcentre", XS_Geo__Geos__Triangle_circumcentre); |
| 12630 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::isInCircleNonRobust", XS_Geo__Geos__Triangle_isInCircleNonRobust); |
| 12631 |
46 |
| XSANY.any_i32 = 0; |
| 12632 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::isInCircleNormalized", XS_Geo__Geos__Triangle_isInCircleNonRobust); |
| 12633 |
46 |
| XSANY.any_i32 = 1; |
| 12634 |
46 |
| cv = newXS_deffile("Geo::Geos::Triangle::isInCircleRobust", XS_Geo__Geos__Triangle_isInCircleNonRobust); |
| 12635 |
46 |
| XSANY.any_i32 = 2; |
| 12636 |
46 |
| newXS_deffile("Geo::Geos::Triangle::CLONE_SKIP", XS_Geo__Geos__Triangle_CLONE_SKIP); |
| 12637 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::new", XS_Geo__Geos__LineSegment_new); |
| 12638 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::getLength", XS_Geo__Geos__LineSegment_getLength); |
| 12639 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::isHorizontal", XS_Geo__Geos__LineSegment_isHorizontal); |
| 12640 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::isVertical", XS_Geo__Geos__LineSegment_isVertical); |
| 12641 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::setCoordinates", XS_Geo__Geos__LineSegment_setCoordinates); |
| 12642 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::orientationIndex", XS_Geo__Geos__LineSegment_orientationIndex); |
| 12643 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::reverse", XS_Geo__Geos__LineSegment_reverse); |
| 12644 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::normalize", XS_Geo__Geos__LineSegment_normalize); |
| 12645 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::angle", XS_Geo__Geos__LineSegment_angle); |
| 12646 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::midPoint", XS_Geo__Geos__LineSegment_midPoint); |
| 12647 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::distance", XS_Geo__Geos__LineSegment_distance); |
| 12648 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::distancePerpendicular", XS_Geo__Geos__LineSegment_distancePerpendicular); |
| 12649 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::pointAlong", XS_Geo__Geos__LineSegment_pointAlong); |
| 12650 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::pointAlongOffset", XS_Geo__Geos__LineSegment_pointAlongOffset); |
| 12651 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::projectionFactor", XS_Geo__Geos__LineSegment_projectionFactor); |
| 12652 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::segmentFraction", XS_Geo__Geos__LineSegment_segmentFraction); |
| 12653 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::project", XS_Geo__Geos__LineSegment_project); |
| 12654 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::closestPoint", XS_Geo__Geos__LineSegment_closestPoint); |
| 12655 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::compareTo", XS_Geo__Geos__LineSegment_compareTo); |
| 12656 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::equalsTopo", XS_Geo__Geos__LineSegment_equalsTopo); |
| 12657 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::closestPoints", XS_Geo__Geos__LineSegment_closestPoints); |
| 12658 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::intersection", XS_Geo__Geos__LineSegment_intersection); |
| 12659 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::lineIntersection", XS_Geo__Geos__LineSegment_lineIntersection); |
| 12660 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::toGeometry", XS_Geo__Geos__LineSegment_toGeometry); |
| 12661 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::toString", XS_Geo__Geos__LineSegment_toString); |
| 12662 |
46 |
| cv = newXS_deffile("Geo::Geos::LineSegment::p0", XS_Geo__Geos__LineSegment_p0); |
| 12663 |
46 |
| XSANY.any_i32 = 0; |
| 12664 |
46 |
| cv = newXS_deffile("Geo::Geos::LineSegment::p1", XS_Geo__Geos__LineSegment_p0); |
| 12665 |
46 |
| XSANY.any_i32 = 1; |
| 12666 |
46 |
| newXS_deffile("Geo::Geos::LineSegment::CLONE_SKIP", XS_Geo__Geos__LineSegment_CLONE_SKIP); |
| 12667 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::create", XS_Geo__Geos__GeometryFactory_create); |
| 12668 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::getPrecisionModel", XS_Geo__Geos__GeometryFactory_getPrecisionModel); |
| 12669 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::getSRID", XS_Geo__Geos__GeometryFactory_getSRID); |
| 12670 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createGeometryCollection", XS_Geo__Geos__GeometryFactory_createGeometryCollection); |
| 12671 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createPoint", XS_Geo__Geos__GeometryFactory_createPoint); |
| 12672 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createMultiPoint", XS_Geo__Geos__GeometryFactory_createMultiPoint); |
| 12673 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createLineString", XS_Geo__Geos__GeometryFactory_createLineString); |
| 12674 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createMultiLineString", XS_Geo__Geos__GeometryFactory_createMultiLineString); |
| 12675 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createLinearRing", XS_Geo__Geos__GeometryFactory_createLinearRing); |
| 12676 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createPolygon", XS_Geo__Geos__GeometryFactory_createPolygon); |
| 12677 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createMultiPolygon", XS_Geo__Geos__GeometryFactory_createMultiPolygon); |
| 12678 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::toGeometry", XS_Geo__Geos__GeometryFactory_toGeometry); |
| 12679 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::createEmptyGeometry", XS_Geo__Geos__GeometryFactory_createEmptyGeometry); |
| 12680 |
46 |
| newXS_deffile("Geo::Geos::GeometryFactory::CLONE_SKIP", XS_Geo__Geos__GeometryFactory_CLONE_SKIP); |
| 12681 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getSRID", XS_Geo__Geos__Geometry_getSRID); |
| 12682 |
46 |
| newXS_deffile("Geo::Geos::Geometry::setSRID", XS_Geo__Geos__Geometry_setSRID); |
| 12683 |
46 |
| newXS_deffile("Geo::Geos::Geometry::isEmpty", XS_Geo__Geos__Geometry_isEmpty); |
| 12684 |
46 |
| newXS_deffile("Geo::Geos::Geometry::isSimple", XS_Geo__Geos__Geometry_isSimple); |
| 12685 |
46 |
| newXS_deffile("Geo::Geos::Geometry::isRectangle", XS_Geo__Geos__Geometry_isRectangle); |
| 12686 |
46 |
| newXS_deffile("Geo::Geos::Geometry::isValid", XS_Geo__Geos__Geometry_isValid); |
| 12687 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getNumPoints", XS_Geo__Geos__Geometry_getNumPoints); |
| 12688 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getDimension", XS_Geo__Geos__Geometry_getDimension); |
| 12689 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getCoordinateDimension", XS_Geo__Geos__Geometry_getCoordinateDimension); |
| 12690 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getBoundaryDimension", XS_Geo__Geos__Geometry_getBoundaryDimension); |
| 12691 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getNumGeometries", XS_Geo__Geos__Geometry_getNumGeometries); |
| 12692 |
46 |
| newXS_deffile("Geo::Geos::Geometry::reverse", XS_Geo__Geos__Geometry_reverse); |
| 12693 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getGeometryN", XS_Geo__Geos__Geometry_getGeometryN); |
| 12694 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getCoordinate", XS_Geo__Geos__Geometry_getCoordinate); |
| 12695 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getGeometryType", XS_Geo__Geos__Geometry_getGeometryType); |
| 12696 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getGeometryTypeId", XS_Geo__Geos__Geometry_getGeometryTypeId); |
| 12697 |
46 |
| newXS_deffile("Geo::Geos::Geometry::toString", XS_Geo__Geos__Geometry_toString); |
| 12698 |
46 |
| newXS_deffile("Geo::Geos::Geometry::toText", XS_Geo__Geos__Geometry_toText); |
| 12699 |
46 |
| newXS_deffile("Geo::Geos::Geometry::equalsExact", XS_Geo__Geos__Geometry_equalsExact); |
| 12700 |
46 |
| newXS_deffile("Geo::Geos::Geometry::equals", XS_Geo__Geos__Geometry_equals); |
| 12701 |
46 |
| newXS_deffile("Geo::Geos::Geometry::compareTo", XS_Geo__Geos__Geometry_compareTo); |
| 12702 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getBoundary", XS_Geo__Geos__Geometry_getBoundary); |
| 12703 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getArea", XS_Geo__Geos__Geometry_getArea); |
| 12704 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getLength", XS_Geo__Geos__Geometry_getLength); |
| 12705 |
46 |
| newXS_deffile("Geo::Geos::Geometry::distance", XS_Geo__Geos__Geometry_distance); |
| 12706 |
46 |
| newXS_deffile("Geo::Geos::Geometry::isWithinDistance", XS_Geo__Geos__Geometry_isWithinDistance); |
| 12707 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getCentroid", XS_Geo__Geos__Geometry_getCentroid); |
| 12708 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getInteriorPoint", XS_Geo__Geos__Geometry_getInteriorPoint); |
| 12709 |
46 |
| newXS_deffile("Geo::Geos::Geometry::symDifference", XS_Geo__Geos__Geometry_symDifference); |
| 12710 |
46 |
| newXS_deffile("Geo::Geos::Geometry::difference", XS_Geo__Geos__Geometry_difference); |
| 12711 |
46 |
| newXS_deffile("Geo::Geos::Geometry::Union", XS_Geo__Geos__Geometry_Union); |
| 12712 |
46 |
| newXS_deffile("Geo::Geos::Geometry::intersection", XS_Geo__Geos__Geometry_intersection); |
| 12713 |
46 |
| newXS_deffile("Geo::Geos::Geometry::convexHull", XS_Geo__Geos__Geometry_convexHull); |
| 12714 |
46 |
| newXS_deffile("Geo::Geos::Geometry::buffer", XS_Geo__Geos__Geometry_buffer); |
| 12715 |
46 |
| newXS_deffile("Geo::Geos::Geometry::coveredBy", XS_Geo__Geos__Geometry_coveredBy); |
| 12716 |
46 |
| newXS_deffile("Geo::Geos::Geometry::covers", XS_Geo__Geos__Geometry_covers); |
| 12717 |
46 |
| newXS_deffile("Geo::Geos::Geometry::overlaps", XS_Geo__Geos__Geometry_overlaps); |
| 12718 |
46 |
| newXS_deffile("Geo::Geos::Geometry::contains", XS_Geo__Geos__Geometry_contains); |
| 12719 |
46 |
| newXS_deffile("Geo::Geos::Geometry::within", XS_Geo__Geos__Geometry_within); |
| 12720 |
46 |
| newXS_deffile("Geo::Geos::Geometry::crosses", XS_Geo__Geos__Geometry_crosses); |
| 12721 |
46 |
| newXS_deffile("Geo::Geos::Geometry::intersects", XS_Geo__Geos__Geometry_intersects); |
| 12722 |
46 |
| newXS_deffile("Geo::Geos::Geometry::touches", XS_Geo__Geos__Geometry_touches); |
| 12723 |
46 |
| newXS_deffile("Geo::Geos::Geometry::disjoint", XS_Geo__Geos__Geometry_disjoint); |
| 12724 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getEnvelope", XS_Geo__Geos__Geometry_getEnvelope); |
| 12725 |
46 |
| newXS_deffile("Geo::Geos::Geometry::clone", XS_Geo__Geos__Geometry_clone); |
| 12726 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getPrecisionModel", XS_Geo__Geos__Geometry_getPrecisionModel); |
| 12727 |
46 |
| newXS_deffile("Geo::Geos::Geometry::getCoordinates", XS_Geo__Geos__Geometry_getCoordinates); |
| 12728 |
46 |
| newXS_deffile("Geo::Geos::Geometry::relate", XS_Geo__Geos__Geometry_relate); |
| 12729 |
46 |
| newXS_deffile("Geo::Geos::Geometry::normalize", XS_Geo__Geos__Geometry_normalize); |
| 12730 |
46 |
| newXS_deffile("Geo::Geos::Geometry::CLONE_SKIP", XS_Geo__Geos__Geometry_CLONE_SKIP); |
| 12731 |
46 |
| newXS_deffile("Geo::Geos::Geometry::HOOK_CLONE", XS_Geo__Geos__Geometry_HOOK_CLONE); |
| 12732 |
46 |
| newXS_deffile("Geo::Geos::GeometryCollection::CLONE_SKIP", XS_Geo__Geos__GeometryCollection_CLONE_SKIP); |
| 12733 |
46 |
| newXS_deffile("Geo::Geos::Point::getX", XS_Geo__Geos__Point_getX); |
| 12734 |
46 |
| newXS_deffile("Geo::Geos::Point::getY", XS_Geo__Geos__Point_getY); |
| 12735 |
46 |
| newXS_deffile("Geo::Geos::Point::reverse", XS_Geo__Geos__Point_reverse); |
| 12736 |
46 |
| newXS_deffile("Geo::Geos::MultiPoint::CLONE_SKIP", XS_Geo__Geos__MultiPoint_CLONE_SKIP); |
| 12737 |
46 |
| newXS_deffile("Geo::Geos::LineString::getPointN", XS_Geo__Geos__LineString_getPointN); |
| 12738 |
46 |
| newXS_deffile("Geo::Geos::LineString::getStartPoint", XS_Geo__Geos__LineString_getStartPoint); |
| 12739 |
46 |
| newXS_deffile("Geo::Geos::LineString::getEndPoint", XS_Geo__Geos__LineString_getEndPoint); |
| 12740 |
46 |
| newXS_deffile("Geo::Geos::LineString::isClosed", XS_Geo__Geos__LineString_isClosed); |
| 12741 |
46 |
| newXS_deffile("Geo::Geos::LineString::isRing", XS_Geo__Geos__LineString_isRing); |
| 12742 |
46 |
| newXS_deffile("Geo::Geos::MultiLineString::isClosed", XS_Geo__Geos__MultiLineString_isClosed); |
| 12743 |
46 |
| newXS_deffile("Geo::Geos::LinearRing::reverse", XS_Geo__Geos__LinearRing_reverse); |
| 12744 |
46 |
| newXS_deffile("Geo::Geos::Polygon::getExteriorRing", XS_Geo__Geos__Polygon_getExteriorRing); |
| 12745 |
46 |
| newXS_deffile("Geo::Geos::Polygon::getInteriorRingN", XS_Geo__Geos__Polygon_getInteriorRingN); |
| 12746 |
46 |
| newXS_deffile("Geo::Geos::Polygon::getNumInteriorRing", XS_Geo__Geos__Polygon_getNumInteriorRing); |
| 12747 |
46 |
| newXS_deffile("Geo::Geos::Polygon::tesselate", XS_Geo__Geos__Polygon_tesselate); |
| 12748 |
46 |
| newXS_deffile("Geo::Geos::Polygon::CLONE_SKIP", XS_Geo__Geos__Polygon_CLONE_SKIP); |
| 12749 |
46 |
| newXS_deffile("Geo::Geos::MultiPolygon::CLONE_SKIP", XS_Geo__Geos__MultiPolygon_CLONE_SKIP); |
| 12750 |
46 |
| newXS_deffile("Geo::Geos::WKBConstants::CLONE_SKIP", XS_Geo__Geos__WKBConstants_CLONE_SKIP); |
| 12751 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::new", XS_Geo__Geos__WKBWriter_new); |
| 12752 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::getOutputDimension", XS_Geo__Geos__WKBWriter_getOutputDimension); |
| 12753 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::setOutputDimension", XS_Geo__Geos__WKBWriter_setOutputDimension); |
| 12754 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::getByteOrder", XS_Geo__Geos__WKBWriter_getByteOrder); |
| 12755 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::setByteOrder", XS_Geo__Geos__WKBWriter_setByteOrder); |
| 12756 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::getIncludeSRID", XS_Geo__Geos__WKBWriter_getIncludeSRID); |
| 12757 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::setIncludeSRID", XS_Geo__Geos__WKBWriter_setIncludeSRID); |
| 12758 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::write", XS_Geo__Geos__WKBWriter_write); |
| 12759 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::writeHEX", XS_Geo__Geos__WKBWriter_writeHEX); |
| 12760 |
46 |
| newXS_deffile("Geo::Geos::WKBWriter::CLONE_SKIP", XS_Geo__Geos__WKBWriter_CLONE_SKIP); |
| 12761 |
46 |
| newXS_deffile("Geo::Geos::WKBReader::read", XS_Geo__Geos__WKBReader_read); |
| 12762 |
46 |
| newXS_deffile("Geo::Geos::WKBReader::readHEX", XS_Geo__Geos__WKBReader_readHEX); |
| 12763 |
46 |
| newXS_deffile("Geo::Geos::WKTWriter::new", XS_Geo__Geos__WKTWriter_new); |
| 12764 |
46 |
| newXS_deffile("Geo::Geos::WKTWriter::setTrim", XS_Geo__Geos__WKTWriter_setTrim); |
| 12765 |
46 |
| newXS_deffile("Geo::Geos::WKTWriter::setRoundingPrecision", XS_Geo__Geos__WKTWriter_setRoundingPrecision); |
| 12766 |
46 |
| newXS_deffile("Geo::Geos::WKTWriter::write", XS_Geo__Geos__WKTWriter_write); |
| 12767 |
46 |
| newXS_deffile("Geo::Geos::WKTWriter::CLONE_SKIP", XS_Geo__Geos__WKTWriter_CLONE_SKIP); |
| 12768 |
46 |
| newXS_deffile("Geo::Geos::WKTReader::read", XS_Geo__Geos__WKTReader_read); |
| 12769 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::getGeometry", XS_Geo__Geos__Prep__Geometry_getGeometry); |
| 12770 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::contains", XS_Geo__Geos__Prep__Geometry_contains); |
| 12771 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::containsProperly", XS_Geo__Geos__Prep__Geometry_containsProperly); |
| 12772 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::coveredBy", XS_Geo__Geos__Prep__Geometry_coveredBy); |
| 12773 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::covers", XS_Geo__Geos__Prep__Geometry_covers); |
| 12774 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::crosses", XS_Geo__Geos__Prep__Geometry_crosses); |
| 12775 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::disjoint", XS_Geo__Geos__Prep__Geometry_disjoint); |
| 12776 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::intersects", XS_Geo__Geos__Prep__Geometry_intersects); |
| 12777 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::overlaps", XS_Geo__Geos__Prep__Geometry_overlaps); |
| 12778 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::touches", XS_Geo__Geos__Prep__Geometry_touches); |
| 12779 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::within", XS_Geo__Geos__Prep__Geometry_within); |
| 12780 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::toString", XS_Geo__Geos__Prep__Geometry_toString); |
| 12781 |
46 |
| newXS_deffile("Geo::Geos::Prep::Geometry::CLONE_SKIP", XS_Geo__Geos__Prep__Geometry_CLONE_SKIP); |
| 12782 |
46 |
| newXS_deffile("Geo::Geos::Prep::GeometryFactory::prepare", XS_Geo__Geos__Prep__GeometryFactory_prepare); |
| 12783 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::toDegrees", XS_Geo__Geos__Algorithm_toDegrees); |
| 12784 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::toRadians", XS_Geo__Geos__Algorithm_toRadians); |
| 12785 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::angle", XS_Geo__Geos__Algorithm_angle); |
| 12786 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::isAcute", XS_Geo__Geos__Algorithm_isAcute); |
| 12787 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::isObtuse", XS_Geo__Geos__Algorithm_isObtuse); |
| 12788 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::angleBetween", XS_Geo__Geos__Algorithm_angleBetween); |
| 12789 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::angleBetweenOriented", XS_Geo__Geos__Algorithm_angleBetweenOriented); |
| 12790 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::interiorAngle", XS_Geo__Geos__Algorithm_interiorAngle); |
| 12791 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::getTurn", XS_Geo__Geos__Algorithm_getTurn); |
| 12792 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::normalize", XS_Geo__Geos__Algorithm_normalize); |
| 12793 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::normalizePositive", XS_Geo__Geos__Algorithm_normalizePositive); |
| 12794 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::diff", XS_Geo__Geos__Algorithm_diff); |
| 12795 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::centroid", XS_Geo__Geos__Algorithm_centroid); |
| 12796 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::centroidArea", XS_Geo__Geos__Algorithm_centroidArea); |
| 12797 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::centroidLine", XS_Geo__Geos__Algorithm_centroidLine); |
| 12798 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::centroidPoint", XS_Geo__Geos__Algorithm_centroidPoint); |
| 12799 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::isPointInRing", XS_Geo__Geos__Algorithm_isPointInRing); |
| 12800 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::locatePointInRing", XS_Geo__Geos__Algorithm_locatePointInRing); |
| 12801 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::isOnLine", XS_Geo__Geos__Algorithm_isOnLine); |
| 12802 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::isCCW", XS_Geo__Geos__Algorithm_isCCW); |
| 12803 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::computeOrientation", XS_Geo__Geos__Algorithm_computeOrientation); |
| 12804 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::distancePointLine", XS_Geo__Geos__Algorithm_distancePointLine); |
| 12805 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::distancePointLinePerpendicular", XS_Geo__Geos__Algorithm_distancePointLinePerpendicular); |
| 12806 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::distanceLineLine", XS_Geo__Geos__Algorithm_distanceLineLine); |
| 12807 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::signedArea", XS_Geo__Geos__Algorithm_signedArea); |
| 12808 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::length", XS_Geo__Geos__Algorithm_length); |
| 12809 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::orientationIndex", XS_Geo__Geos__Algorithm_orientationIndex); |
| 12810 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::getIntersection", XS_Geo__Geos__Algorithm_getIntersection); |
| 12811 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::convexHull", XS_Geo__Geos__Algorithm_convexHull); |
| 12812 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::interiorPointArea", XS_Geo__Geos__Algorithm_interiorPointArea); |
| 12813 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::interiorPointLine", XS_Geo__Geos__Algorithm_interiorPointLine); |
| 12814 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::interiorPointPoint", XS_Geo__Geos__Algorithm_interiorPointPoint); |
| 12815 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::locate", XS_Geo__Geos__Algorithm_locate); |
| 12816 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::intersects", XS_Geo__Geos__Algorithm_intersects); |
| 12817 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::signOfDet2x2", XS_Geo__Geos__Algorithm_signOfDet2x2); |
| 12818 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::locateIndexedPointInArea", XS_Geo__Geos__Algorithm_locateIndexedPointInArea); |
| 12819 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::locateSimplePointInArea", XS_Geo__Geos__Algorithm_locateSimplePointInArea); |
| 12820 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::HCoordinate::new", XS_Geo__Geos__Algorithm__HCoordinate_new); |
| 12821 |
46 |
| cv = newXS_deffile("Geo::Geos::Algorithm::HCoordinate::w", XS_Geo__Geos__Algorithm__HCoordinate_x); |
| 12822 |
46 |
| XSANY.any_i32 = 2; |
| 12823 |
46 |
| cv = newXS_deffile("Geo::Geos::Algorithm::HCoordinate::x", XS_Geo__Geos__Algorithm__HCoordinate_x); |
| 12824 |
46 |
| XSANY.any_i32 = 0; |
| 12825 |
46 |
| cv = newXS_deffile("Geo::Geos::Algorithm::HCoordinate::y", XS_Geo__Geos__Algorithm__HCoordinate_x); |
| 12826 |
46 |
| XSANY.any_i32 = 1; |
| 12827 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::HCoordinate::getCoordinate", XS_Geo__Geos__Algorithm__HCoordinate_getCoordinate); |
| 12828 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::HCoordinate::intersection", XS_Geo__Geos__Algorithm__HCoordinate_intersection); |
| 12829 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::HCoordinate::toString", XS_Geo__Geos__Algorithm__HCoordinate_toString); |
| 12830 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::HCoordinate::CLONE_SKIP", XS_Geo__Geos__Algorithm__HCoordinate_CLONE_SKIP); |
| 12831 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::new", XS_Geo__Geos__Algorithm__MinimumDiameter_new); |
| 12832 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getMinimumRectangle", XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumRectangle); |
| 12833 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getMinimumDiameter", XS_Geo__Geos__Algorithm__MinimumDiameter_getMinimumDiameter); |
| 12834 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getLength", XS_Geo__Geos__Algorithm__MinimumDiameter_getLength); |
| 12835 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getWidthCoordinate", XS_Geo__Geos__Algorithm__MinimumDiameter_getWidthCoordinate); |
| 12836 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getSupportingSegment", XS_Geo__Geos__Algorithm__MinimumDiameter_getSupportingSegment); |
| 12837 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::getDiameter", XS_Geo__Geos__Algorithm__MinimumDiameter_getDiameter); |
| 12838 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::MinimumDiameter::CLONE_SKIP", XS_Geo__Geos__Algorithm__MinimumDiameter_CLONE_SKIP); |
| 12839 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::new", XS_Geo__Geos__Algorithm__LineIntersector_new); |
| 12840 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::interpolateZ", XS_Geo__Geos__Algorithm__LineIntersector_interpolateZ); |
| 12841 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::computeEdgeDistance", XS_Geo__Geos__Algorithm__LineIntersector_computeEdgeDistance); |
| 12842 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::isSameSignAndNonZero", XS_Geo__Geos__Algorithm__LineIntersector_isSameSignAndNonZero); |
| 12843 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::hasIntersection", XS_Geo__Geos__Algorithm__LineIntersector_hasIntersection); |
| 12844 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::isInteriorIntersection", XS_Geo__Geos__Algorithm__LineIntersector_isInteriorIntersection); |
| 12845 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::setPrecisionModel", XS_Geo__Geos__Algorithm__LineIntersector_setPrecisionModel); |
| 12846 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::computeIntersection", XS_Geo__Geos__Algorithm__LineIntersector_computeIntersection); |
| 12847 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::toString", XS_Geo__Geos__Algorithm__LineIntersector_toString); |
| 12848 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::getIntersectionNum", XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionNum); |
| 12849 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::isProper", XS_Geo__Geos__Algorithm__LineIntersector_isProper); |
| 12850 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::getIndexAlongSegment", XS_Geo__Geos__Algorithm__LineIntersector_getIndexAlongSegment); |
| 12851 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::getEdgeDistance", XS_Geo__Geos__Algorithm__LineIntersector_getEdgeDistance); |
| 12852 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::getIntersectionAlongSegment", XS_Geo__Geos__Algorithm__LineIntersector_getIntersectionAlongSegment); |
| 12853 |
46 |
| newXS_deffile("Geo::Geos::Algorithm::LineIntersector::CLONE_SKIP", XS_Geo__Geos__Algorithm__LineIntersector_CLONE_SKIP); |
| 12854 |
46 |
| newXS_deffile("Geo::Geos::Noding::compareOrientedCoordinateArray", XS_Geo__Geos__Noding_compareOrientedCoordinateArray); |
| 12855 |
46 |
| newXS_deffile("Geo::Geos::Noding::octant", XS_Geo__Geos__Noding_octant); |
| 12856 |
46 |
| newXS_deffile("Geo::Geos::Noding::checkNodingValid", XS_Geo__Geos__Noding_checkNodingValid); |
| 12857 |
46 |
| newXS_deffile("Geo::Geos::Noding::fastCheckNodingValid", XS_Geo__Geos__Noding_fastCheckNodingValid); |
| 12858 |
46 |
| newXS_deffile("Geo::Geos::Noding::compareSegmentPoints", XS_Geo__Geos__Noding_compareSegmentPoints); |
| 12859 |
46 |
| newXS_deffile("Geo::Geos::Noding::extractSegmentStrings", XS_Geo__Geos__Noding_extractSegmentStrings); |
| 12860 |
46 |
| newXS_deffile("Geo::Geos::Noding::intersects", XS_Geo__Geos__Noding_intersects); |
| 12861 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentString::size", XS_Geo__Geos__Noding__SegmentString_size); |
| 12862 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentString::getCoordinate", XS_Geo__Geos__Noding__SegmentString_getCoordinate); |
| 12863 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentString::getCoordinates", XS_Geo__Geos__Noding__SegmentString_getCoordinates); |
| 12864 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentString::isClosed", XS_Geo__Geos__Noding__SegmentString_isClosed); |
| 12865 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentString::toString", XS_Geo__Geos__Noding__SegmentString_toString); |
| 12866 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::isInterior", XS_Geo__Geos__Noding__SegmentNode_isInterior); |
| 12867 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::isEndPoint", XS_Geo__Geos__Noding__SegmentNode_isEndPoint); |
| 12868 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::compareTo", XS_Geo__Geos__Noding__SegmentNode_compareTo); |
| 12869 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::toString", XS_Geo__Geos__Noding__SegmentNode_toString); |
| 12870 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::coord", XS_Geo__Geos__Noding__SegmentNode_coord); |
| 12871 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentNode::segmentIndex", XS_Geo__Geos__Noding__SegmentNode_segmentIndex); |
| 12872 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::new", XS_Geo__Geos__Noding__NodedSegmentString_new); |
| 12873 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::addIntersectionNode", XS_Geo__Geos__Noding__NodedSegmentString_addIntersectionNode); |
| 12874 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::getSegmentOctant", XS_Geo__Geos__Noding__NodedSegmentString_getSegmentOctant); |
| 12875 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::addIntersections", XS_Geo__Geos__Noding__NodedSegmentString_addIntersections); |
| 12876 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::addIntersection", XS_Geo__Geos__Noding__NodedSegmentString_addIntersection); |
| 12877 |
46 |
| newXS_deffile("Geo::Geos::Noding::NodedSegmentString::CLONE_SKIP", XS_Geo__Geos__Noding__NodedSegmentString_CLONE_SKIP); |
| 12878 |
46 |
| newXS_deffile("Geo::Geos::Noding::BasicSegmentString::new", XS_Geo__Geos__Noding__BasicSegmentString_new); |
| 12879 |
46 |
| newXS_deffile("Geo::Geos::Noding::BasicSegmentString::DESTROY", XS_Geo__Geos__Noding__BasicSegmentString_DESTROY); |
| 12880 |
46 |
| newXS_deffile("Geo::Geos::Noding::BasicSegmentString::getSegmentOctant", XS_Geo__Geos__Noding__BasicSegmentString_getSegmentOctant); |
| 12881 |
46 |
| newXS_deffile("Geo::Geos::Noding::BasicSegmentString::CLONE_SKIP", XS_Geo__Geos__Noding__BasicSegmentString_CLONE_SKIP); |
| 12882 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersector::processIntersections", XS_Geo__Geos__Noding__SegmentIntersector_processIntersections); |
| 12883 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersector::isDone", XS_Geo__Geos__Noding__SegmentIntersector_isDone); |
| 12884 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::new", XS_Geo__Geos__Noding__SegmentIntersectionDetector_new); |
| 12885 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::hasIntersection", XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasIntersection); |
| 12886 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::hasProperIntersection", XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasProperIntersection); |
| 12887 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::hasNonProperIntersection", XS_Geo__Geos__Noding__SegmentIntersectionDetector_hasNonProperIntersection); |
| 12888 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::setFindProper", XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindProper); |
| 12889 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::setFindAllIntersectionTypes", XS_Geo__Geos__Noding__SegmentIntersectionDetector_setFindAllIntersectionTypes); |
| 12890 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::getIntersectionSegments", XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersectionSegments); |
| 12891 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::getIntersection", XS_Geo__Geos__Noding__SegmentIntersectionDetector_getIntersection); |
| 12892 |
46 |
| newXS_deffile("Geo::Geos::Noding::SegmentIntersectionDetector::CLONE_SKIP", XS_Geo__Geos__Noding__SegmentIntersectionDetector_CLONE_SKIP); |
| 12893 |
46 |
| newXS_deffile("Geo::Geos::Noding::SingleInteriorIntersectionFinder::new", XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_new); |
| 12894 |
46 |
| newXS_deffile("Geo::Geos::Noding::SingleInteriorIntersectionFinder::hasIntersection", XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_hasIntersection); |
| 12895 |
46 |
| newXS_deffile("Geo::Geos::Noding::SingleInteriorIntersectionFinder::getInteriorIntersection", XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getInteriorIntersection); |
| 12896 |
46 |
| newXS_deffile("Geo::Geos::Noding::SingleInteriorIntersectionFinder::getIntersectionSegments", XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_getIntersectionSegments); |
| 12897 |
46 |
| newXS_deffile("Geo::Geos::Noding::SingleInteriorIntersectionFinder::CLONE_SKIP", XS_Geo__Geos__Noding__SingleInteriorIntersectionFinder_CLONE_SKIP); |
| 12898 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::new", XS_Geo__Geos__Noding__IntersectionAdder_new); |
| 12899 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::getLineIntersector", XS_Geo__Geos__Noding__IntersectionAdder_getLineIntersector); |
| 12900 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::hasIntersection", XS_Geo__Geos__Noding__IntersectionAdder_hasIntersection); |
| 12901 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::hasProperIntersection", XS_Geo__Geos__Noding__IntersectionAdder_hasProperIntersection); |
| 12902 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::hasProperInteriorIntersection", XS_Geo__Geos__Noding__IntersectionAdder_hasProperInteriorIntersection); |
| 12903 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::hasInteriorIntersection", XS_Geo__Geos__Noding__IntersectionAdder_hasInteriorIntersection); |
| 12904 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionAdder::CLONE_SKIP", XS_Geo__Geos__Noding__IntersectionAdder_CLONE_SKIP); |
| 12905 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionFinderAdder::new", XS_Geo__Geos__Noding__IntersectionFinderAdder_new); |
| 12906 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionFinderAdder::getInteriorIntersections", XS_Geo__Geos__Noding__IntersectionFinderAdder_getInteriorIntersections); |
| 12907 |
46 |
| newXS_deffile("Geo::Geos::Noding::IntersectionFinderAdder::CLONE_SKIP", XS_Geo__Geos__Noding__IntersectionFinderAdder_CLONE_SKIP); |
| 12908 |
46 |
| newXS_deffile("Geo::Geos::Noding::Noder::computeNodes", XS_Geo__Geos__Noding__Noder_computeNodes); |
| 12909 |
46 |
| newXS_deffile("Geo::Geos::Noding::Noder::getNodedSubstrings", XS_Geo__Geos__Noding__Noder_getNodedSubstrings); |
| 12910 |
46 |
| newXS_deffile("Geo::Geos::Noding::IteratedNoder::new", XS_Geo__Geos__Noding__IteratedNoder_new); |
| 12911 |
46 |
| newXS_deffile("Geo::Geos::Noding::IteratedNoder::setMaximumIterations", XS_Geo__Geos__Noding__IteratedNoder_setMaximumIterations); |
| 12912 |
46 |
| newXS_deffile("Geo::Geos::Noding::IteratedNoder::CLONE_SKIP", XS_Geo__Geos__Noding__IteratedNoder_CLONE_SKIP); |
| 12913 |
46 |
| newXS_deffile("Geo::Geos::Noding::ScaledNoder::new", XS_Geo__Geos__Noding__ScaledNoder_new); |
| 12914 |
46 |
| newXS_deffile("Geo::Geos::Noding::ScaledNoder::isIntegerPrecision", XS_Geo__Geos__Noding__ScaledNoder_isIntegerPrecision); |
| 12915 |
46 |
| newXS_deffile("Geo::Geos::Noding::ScaledNoder::CLONE_SKIP", XS_Geo__Geos__Noding__ScaledNoder_CLONE_SKIP); |
| 12916 |
46 |
| newXS_deffile("Geo::Geos::Noding::SinglePassNoder::setSegmentIntersector", XS_Geo__Geos__Noding__SinglePassNoder_setSegmentIntersector); |
| 12917 |
46 |
| newXS_deffile("Geo::Geos::Noding::SinglePassNoder::CLONE_SKIP", XS_Geo__Geos__Noding__SinglePassNoder_CLONE_SKIP); |
| 12918 |
46 |
| newXS_deffile("Geo::Geos::Noding::SimpleNoder::new", XS_Geo__Geos__Noding__SimpleNoder_new); |
| 12919 |
46 |
| newXS_deffile("Geo::Geos::Noding::SimpleNoder::CLONE_SKIP", XS_Geo__Geos__Noding__SimpleNoder_CLONE_SKIP); |
| 12920 |
46 |
| newXS_deffile("Geo::Geos::Noding::SimpleSnapRounder::new", XS_Geo__Geos__Noding__SimpleSnapRounder_new); |
| 12921 |
46 |
| newXS_deffile("Geo::Geos::Noding::SimpleSnapRounder::computeVertexSnaps", XS_Geo__Geos__Noding__SimpleSnapRounder_computeVertexSnaps); |
| 12922 |
46 |
| newXS_deffile("Geo::Geos::Noding::SimpleSnapRounder::CLONE_SKIP", XS_Geo__Geos__Noding__SimpleSnapRounder_CLONE_SKIP); |
| 12923 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::new", XS_Geo__Geos__Index__MonotoneChain_new); |
| 12924 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getChains", XS_Geo__Geos__Index__MonotoneChain_getChains); |
| 12925 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getEnvelope", XS_Geo__Geos__Index__MonotoneChain_getEnvelope); |
| 12926 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getStartIndex", XS_Geo__Geos__Index__MonotoneChain_getStartIndex); |
| 12927 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getEndIndex", XS_Geo__Geos__Index__MonotoneChain_getEndIndex); |
| 12928 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getLineSegment", XS_Geo__Geos__Index__MonotoneChain_getLineSegment); |
| 12929 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getCoordinates", XS_Geo__Geos__Index__MonotoneChain_getCoordinates); |
| 12930 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::computeOverlaps", XS_Geo__Geos__Index__MonotoneChain_computeOverlaps); |
| 12931 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::setId", XS_Geo__Geos__Index__MonotoneChain_setId); |
| 12932 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChain::getId", XS_Geo__Geos__Index__MonotoneChain_getId); |
| 12933 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChainOverlapAction::new", XS_Geo__Geos__Index__MonotoneChainOverlapAction_new); |
| 12934 |
46 |
| newXS_deffile("Geo::Geos::Index::MonotoneChainOverlapAction::overlap", XS_Geo__Geos__Index__MonotoneChainOverlapAction_overlap); |
| 12935 |
46 |
| cv = newXS_deffile("Geo::Geos::Index::MonotoneChainOverlapAction::tempEnv1", XS_Geo__Geos__Index__MonotoneChainOverlapAction_tempEnv1); |
| 12936 |
46 |
| XSANY.any_i32 = 0; |
| 12937 |
46 |
| cv = newXS_deffile("Geo::Geos::Index::MonotoneChainOverlapAction::tempEnv2", XS_Geo__Geos__Index__MonotoneChainOverlapAction_tempEnv1); |
| 12938 |
46 |
| XSANY.any_i32 = 1; |
| 12939 |
46 |
| newXS_deffile("Geo::Geos::Index::SpatialIndex::query", XS_Geo__Geos__Index__SpatialIndex_query); |
| 12940 |
46 |
| newXS_deffile("Geo::Geos::Index::SpatialIndex::insert", XS_Geo__Geos__Index__SpatialIndex_insert); |
| 12941 |
46 |
| newXS_deffile("Geo::Geos::Index::SpatialIndex::remove", XS_Geo__Geos__Index__SpatialIndex_remove); |
| 12942 |
46 |
| newXS_deffile("Geo::Geos::Index::Quadtree::new", XS_Geo__Geos__Index__Quadtree_new); |
| 12943 |
46 |
| newXS_deffile("Geo::Geos::Index::Quadtree::depth", XS_Geo__Geos__Index__Quadtree_depth); |
| 12944 |
46 |
| newXS_deffile("Geo::Geos::Index::Quadtree::size", XS_Geo__Geos__Index__Quadtree_size); |
| 12945 |
46 |
| newXS_deffile("Geo::Geos::Index::Quadtree::queryAll", XS_Geo__Geos__Index__Quadtree_queryAll); |
| 12946 |
46 |
| newXS_deffile("Geo::Geos::Index::Quadtree::toString", XS_Geo__Geos__Index__Quadtree_toString); |
| 12947 |
46 |
| newXS_deffile("Geo::Geos::Index::STRtree::new", XS_Geo__Geos__Index__STRtree_new); |
| 12948 |
46 |
| newXS_deffile("Geo::Geos::Precision::signExpBits", XS_Geo__Geos__Precision_signExpBits); |
| 12949 |
46 |
| newXS_deffile("Geo::Geos::Precision::numCommonMostSigMantissaBits", XS_Geo__Geos__Precision_numCommonMostSigMantissaBits); |
| 12950 |
46 |
| newXS_deffile("Geo::Geos::Precision::zeroLowerBits", XS_Geo__Geos__Precision_zeroLowerBits); |
| 12951 |
46 |
| newXS_deffile("Geo::Geos::Precision::getBit", XS_Geo__Geos__Precision_getBit); |
| 12952 |
46 |
| newXS_deffile("Geo::Geos::Precision::commonIntersection", XS_Geo__Geos__Precision_commonIntersection); |
| 12953 |
46 |
| newXS_deffile("Geo::Geos::Precision::commonUnion", XS_Geo__Geos__Precision_commonUnion); |
| 12954 |
46 |
| newXS_deffile("Geo::Geos::Precision::commonDifference", XS_Geo__Geos__Precision_commonDifference); |
| 12955 |
46 |
| newXS_deffile("Geo::Geos::Precision::commonSymDifference", XS_Geo__Geos__Precision_commonSymDifference); |
| 12956 |
46 |
| newXS_deffile("Geo::Geos::Precision::commonBuffer", XS_Geo__Geos__Precision_commonBuffer); |
| 12957 |
46 |
| newXS_deffile("Geo::Geos::Precision::enhancedIntersection", XS_Geo__Geos__Precision_enhancedIntersection); |
| 12958 |
46 |
| newXS_deffile("Geo::Geos::Precision::enhancedUnion", XS_Geo__Geos__Precision_enhancedUnion); |
| 12959 |
46 |
| newXS_deffile("Geo::Geos::Precision::enhancedDifference", XS_Geo__Geos__Precision_enhancedDifference); |
| 12960 |
46 |
| newXS_deffile("Geo::Geos::Precision::enhancedSymDifference", XS_Geo__Geos__Precision_enhancedSymDifference); |
| 12961 |
46 |
| newXS_deffile("Geo::Geos::Precision::enhancedBuffer", XS_Geo__Geos__Precision_enhancedBuffer); |
| 12962 |
46 |
| cv = newXS_deffile("Geo::Geos::Precision::addCommonBits", XS_Geo__Geos__Precision_removeCommonBits); |
| 12963 |
46 |
| XSANY.any_i32 = 1; |
| 12964 |
46 |
| cv = newXS_deffile("Geo::Geos::Precision::removeCommonBits", XS_Geo__Geos__Precision_removeCommonBits); |
| 12965 |
46 |
| XSANY.any_i32 = 0; |
| 12966 |
46 |
| newXS_deffile("Geo::Geos::Precision::GeometryPrecisionReducer::new", XS_Geo__Geos__Precision__GeometryPrecisionReducer_new); |
| 12967 |
46 |
| newXS_deffile("Geo::Geos::Precision::GeometryPrecisionReducer::setRemoveCollapsedComponents", XS_Geo__Geos__Precision__GeometryPrecisionReducer_setRemoveCollapsedComponents); |
| 12968 |
46 |
| newXS_deffile("Geo::Geos::Precision::GeometryPrecisionReducer::setPointwise", XS_Geo__Geos__Precision__GeometryPrecisionReducer_setPointwise); |
| 12969 |
46 |
| newXS_deffile("Geo::Geos::Precision::GeometryPrecisionReducer::reduce", XS_Geo__Geos__Precision__GeometryPrecisionReducer_reduce); |
| 12970 |
46 |
| newXS_deffile("Geo::Geos::Precision::GeometryPrecisionReducer::CLONE_SKIP", XS_Geo__Geos__Precision__GeometryPrecisionReducer_CLONE_SKIP); |
| 12971 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::new", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_new); |
| 12972 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::getPrecisionModel", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getPrecisionModel); |
| 12973 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::setRemoveCollapsedComponents", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_setRemoveCollapsedComponents); |
| 12974 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::getRemoveCollapsed", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_getRemoveCollapsed); |
| 12975 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::reduce", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_reduce); |
| 12976 |
46 |
| newXS_deffile("Geo::Geos::Precision::SimpleGeometryPrecisionReducer::CLONE_SKIP", XS_Geo__Geos__Precision__SimpleGeometryPrecisionReducer_CLONE_SKIP); |
| 12977 |
46 |
| newXS_deffile("Geo::Geos::Operation::buffer", XS_Geo__Geos__Operation_buffer); |
| 12978 |
46 |
| newXS_deffile("Geo::Geos::Operation::distance", XS_Geo__Geos__Operation_distance); |
| 12979 |
46 |
| newXS_deffile("Geo::Geos::Operation::nearestPoints", XS_Geo__Geos__Operation_nearestPoints); |
| 12980 |
46 |
| newXS_deffile("Geo::Geos::Operation::closestPoints", XS_Geo__Geos__Operation_closestPoints); |
| 12981 |
46 |
| newXS_deffile("Geo::Geos::Operation::overlayOp", XS_Geo__Geos__Operation_overlayOp); |
| 12982 |
46 |
| newXS_deffile("Geo::Geos::Operation::isValid", XS_Geo__Geos__Operation_isValid); |
| 12983 |
46 |
| newXS_deffile("Geo::Geos::Operation::relate", XS_Geo__Geos__Operation_relate); |
| 12984 |
46 |
| newXS_deffile("Geo::Geos::Operation::mergeLines", XS_Geo__Geos__Operation_mergeLines); |
| 12985 |
46 |
| newXS_deffile("Geo::Geos::Operation::isSequenced", XS_Geo__Geos__Operation_isSequenced); |
| 12986 |
46 |
| newXS_deffile("Geo::Geos::Operation::sequence", XS_Geo__Geos__Operation_sequence); |
| 12987 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::DelaunayTriangulationBuilder::new", XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_new); |
| 12988 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::DelaunayTriangulationBuilder::getEdges", XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getEdges); |
| 12989 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::DelaunayTriangulationBuilder::getTriangles", XS_Geo__Geos__Triangulate__DelaunayTriangulationBuilder_getTriangles); |
| 12990 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::VoronoiDiagramBuilder::new", XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_new); |
| 12991 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::VoronoiDiagramBuilder::getDiagramEdges", XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagramEdges); |
| 12992 |
46 |
| newXS_deffile("Geo::Geos::Triangulate::VoronoiDiagramBuilder::getDiagram", XS_Geo__Geos__Triangulate__VoronoiDiagramBuilder_getDiagram); |
| 12993 |
|
| |
| 12994 |
|
| /* Initialisation Section */ |
| 12995 |
|
| |
| 12996 |
|
| #line 14 "./xsi/Dimension.xsi" |
| 12997 |
|
| { |
| 12998 |
|
| auto this_stash = Stash("Geo::Geos::Dimension"); |
| 12999 |
|
| xs::exp::create_constants(this_stash, { |
| 13000 |
|
| {"TYPE_DONTCARE", Dimension::DimensionType::DONTCARE}, |
| 13001 |
|
| {"TYPE_True", Dimension::DimensionType::True}, |
| 13002 |
|
| {"TYPE_False", Dimension::DimensionType::False}, |
| 13003 |
|
| {"TYPE_P", Dimension::DimensionType::P}, |
| 13004 |
|
| {"TYPE_L", Dimension::DimensionType::L}, |
| 13005 |
|
| {"TYPE_A", Dimension::DimensionType::A} |
| 13006 |
|
| }); |
| 13007 |
|
| xs::exp::autoexport(this_stash); |
| 13008 |
|
| } |
| 13009 |
|
| |
| 13010 |
|
| #line 42 "./xsi/PrecisionModel.xsi" |
| 13011 |
|
| { |
| 13012 |
|
| auto this_stash = Stash("Geo::Geos::PrecisionModel"); |
| 13013 |
|
| xs::exp::create_constants(this_stash, { |
| 13014 |
|
| {"TYPE_FIXED", PrecisionModel::Type::FIXED}, |
| 13015 |
|
| {"TYPE_FLOATING", PrecisionModel::Type::FLOATING}, |
| 13016 |
|
| {"TYPE_FLOATING_SINGLE", PrecisionModel::Type::FLOATING_SINGLE} |
| 13017 |
|
| }); |
| 13018 |
|
| xs::exp::autoexport(this_stash); |
| 13019 |
|
| } |
| 13020 |
|
| |
| 13021 |
|
| #line 42 "./xsi/Triangle.xsi" |
| 13022 |
|
| { |
| 13023 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Triangle")); |
| 13024 |
|
| } |
| 13025 |
|
| |
| 13026 |
|
| #line 123 "./xsi/GeometryFactory.xsi" |
| 13027 |
|
| { |
| 13028 |
|
| xs::exp::autoexport(Stash("Geo::Geos::GeometryFactory")); |
| 13029 |
|
| } |
| 13030 |
|
| |
| 13031 |
|
| #line 139 "./xsi/Geometry.xsi" |
| 13032 |
|
| { |
| 13033 |
|
| auto this_stash = Stash("Geo::Geos::Geometry"); |
| 13034 |
|
| xs::exp::create_constants(this_stash, { |
| 13035 |
|
| {"TYPE_GEOS_POINT", GeometryTypeId::GEOS_POINT}, |
| 13036 |
|
| {"TYPE_GEOS_LINESTRING", GeometryTypeId::GEOS_LINESTRING}, |
| 13037 |
|
| {"TYPE_GEOS_LINEARRING", GeometryTypeId::GEOS_LINEARRING}, |
| 13038 |
|
| {"TYPE_GEOS_POLYGON", GeometryTypeId::GEOS_POLYGON}, |
| 13039 |
|
| {"TYPE_GEOS_MULTIPOINT", GeometryTypeId::GEOS_MULTIPOINT}, |
| 13040 |
|
| {"TYPE_GEOS_MULTILINESTRING", GeometryTypeId::GEOS_MULTILINESTRING}, |
| 13041 |
|
| {"TYPE_GEOS_MULTIPOLYGON", GeometryTypeId::GEOS_MULTIPOLYGON}, |
| 13042 |
|
| {"TYPE_GEOS_GEOMETRYCOLLECTION", GeometryTypeId::GEOS_GEOMETRYCOLLECTION}, |
| 13043 |
|
| |
| 13044 |
|
| {"TYPE_CAP_ROUND", geos::operation::buffer::BufferParameters::CAP_ROUND}, |
| 13045 |
|
| {"TYPE_CAP_FLAT", geos::operation::buffer::BufferParameters::CAP_FLAT}, |
| 13046 |
|
| {"TYPE_CAP_SQUARE", geos::operation::buffer::BufferParameters::CAP_SQUARE} |
| 13047 |
|
| }); |
| 13048 |
|
| xs::exp::autoexport(this_stash); |
| 13049 |
|
| |
| 13050 |
|
| Stash("Geo::Geos::GeometryCollection").inherit("Geo::Geos::Geometry"); |
| 13051 |
|
| |
| 13052 |
|
| Stash("Geo::Geos::Puntal", GV_ADD).mark_as_loaded("Geo::Geos"); |
| 13053 |
|
| Stash("Geo::Geos::Puntal").inherit("Geo::Geos::Geometry"); |
| 13054 |
|
| |
| 13055 |
|
| Stash("Geo::Geos::Lineal", GV_ADD).mark_as_loaded("Geo::Geos"); |
| 13056 |
|
| Stash("Geo::Geos::Lineal").inherit("Geo::Geos::Geometry"); |
| 13057 |
|
| |
| 13058 |
|
| Stash("Geo::Geos::Polygonal", GV_ADD).mark_as_loaded("Geo::Geos"); |
| 13059 |
|
| Stash("Geo::Geos::Polygonal").inherit("Geo::Geos::Geometry"); |
| 13060 |
|
| } |
| 13061 |
|
| |
| 13062 |
|
| #line 6 "./xsi/GeometryCollection.xsi" |
| 13063 |
|
| { |
| 13064 |
|
| Stash("Geo::Geos::GeometryCollection").inherit("Geo::Geos::Geometry"); |
| 13065 |
|
| } |
| 13066 |
|
| |
| 13067 |
|
| #line 10 "./xsi/Point.xsi" |
| 13068 |
|
| { |
| 13069 |
|
| Stash("Geo::Geos::Point").inherit("Geo::Geos::Puntal"); |
| 13070 |
|
| } |
| 13071 |
|
| |
| 13072 |
|
| #line 6 "./xsi/MultiPoint.xsi" |
| 13073 |
|
| { |
| 13074 |
|
| Stash("Geo::Geos::MultiPoint").inherit("Geo::Geos::Puntal"); |
| 13075 |
|
| Stash("Geo::Geos::MultiPoint").inherit("Geo::Geos::GeometryCollection"); |
| 13076 |
|
| } |
| 13077 |
|
| |
| 13078 |
|
| #line 14 "./xsi/LineString.xsi" |
| 13079 |
|
| { |
| 13080 |
|
| Stash("Geo::Geos::LineString").inherit("Geo::Geos::Lineal"); |
| 13081 |
|
| } |
| 13082 |
|
| |
| 13083 |
|
| #line 6 "./xsi/MultiLineString.xsi" |
| 13084 |
|
| { |
| 13085 |
|
| Stash("Geo::Geos::MultiLineString").inherit("Geo::Geos::Lineal"); |
| 13086 |
|
| Stash("Geo::Geos::MultiLineString").inherit("Geo::Geos::GeometryCollection"); |
| 13087 |
|
| } |
| 13088 |
|
| |
| 13089 |
|
| #line 6 "./xsi/LinearRing.xsi" |
| 13090 |
|
| { |
| 13091 |
|
| Stash("Geo::Geos::LinearRing").inherit("Geo::Geos::LineString"); |
| 13092 |
|
| } |
| 13093 |
|
| |
| 13094 |
|
| #line 23 "./xsi/Polygon.xsi" |
| 13095 |
|
| { |
| 13096 |
|
| Stash("Geo::Geos::Polygon").inherit("Geo::Geos::Polygonal"); |
| 13097 |
|
| } |
| 13098 |
|
| |
| 13099 |
|
| #line 6 "./xsi/MultiPolygon.xsi" |
| 13100 |
|
| { |
| 13101 |
|
| Stash("Geo::Geos::MultiPolygon").inherit("Geo::Geos::Polygonal"); |
| 13102 |
|
| Stash("Geo::Geos::MultiPolygon").inherit("Geo::Geos::GeometryCollection"); |
| 13103 |
|
| } |
| 13104 |
|
| |
| 13105 |
|
| #line 6 "./xsi/WKBConstants.xsi" |
| 13106 |
|
| { |
| 13107 |
|
| auto this_stash = Stash("Geo::Geos::WKBConstants"); |
| 13108 |
|
| xs::exp::create_constants(this_stash, { |
| 13109 |
|
| //{"TYPE_BYTEORDER_BE", WKBConstants::wkbXDR}, |
| 13110 |
|
| //{"TYPE_BYTEORDER_LE", WKBConstants::wkbNDR}, |
| 13111 |
|
| {"TYPE_BYTEORDER_BE", 0}, |
| 13112 |
|
| {"TYPE_BYTEORDER_LE", 1}, |
| 13113 |
|
| |
| 13114 |
|
| {"TYPE_WKB_POINT", WKBConstants::wkbPoint}, |
| 13115 |
|
| {"TYPE_WKB_LINESTRING", WKBConstants::wkbLineString}, |
| 13116 |
|
| {"TYPE_WKB_POLYGON", WKBConstants::wkbPolygon}, |
| 13117 |
|
| {"TYPE_WKB_MULTIPOINT", WKBConstants::wkbMultiPoint}, |
| 13118 |
|
| {"TYPE_WKB_MULTILINESTRING", WKBConstants::wkbMultiLineString}, |
| 13119 |
|
| {"TYPE_WKB_MULTIPOLYGON", WKBConstants::wkbMultiPolygon}, |
| 13120 |
|
| {"TYPE_WKB_GEOMETRYCOLLECTION", WKBConstants::wkbGeometryCollection} |
| 13121 |
|
| }); |
| 13122 |
|
| xs::exp::autoexport(this_stash); |
| 13123 |
|
| } |
| 13124 |
|
| |
| 13125 |
|
| #line 202 "./xsi/algorithm.xsi" |
| 13126 |
|
| { |
| 13127 |
|
| auto this_stash = Stash("Geo::Geos::Algorithm"); |
| 13128 |
|
| xs::exp::create_constants(this_stash, { |
| 13129 |
|
| {"TYPE_TURN_CLOCKWISE", CGAlgorithms::CLOCKWISE}, |
| 13130 |
|
| {"TYPE_TURN_COLLINEAR", CGAlgorithms::COLLINEAR}, |
| 13131 |
|
| {"TYPE_TURN_COUNTERCLOCKWISE", CGAlgorithms::COUNTERCLOCKWISE}, |
| 13132 |
|
| |
| 13133 |
|
| {"TYPE_ORIENT_RIGHT", CGAlgorithms::RIGHT}, |
| 13134 |
|
| {"TYPE_ORIENT_LEFT" , CGAlgorithms::LEFT}, |
| 13135 |
|
| {"TYPE_ORIENT_STRAIGHT", CGAlgorithms::STRAIGHT} |
| 13136 |
|
| }); |
| 13137 |
|
| xs::exp::autoexport(this_stash); |
| 13138 |
|
| } |
| 13139 |
|
| |
| 13140 |
|
| #line 73 "./xsi/algorithm/HCoordinate.xsi" |
| 13141 |
|
| { |
| 13142 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Algorithm::HCoordinate")); |
| 13143 |
|
| } |
| 13144 |
|
| |
| 13145 |
|
| #line 46 "./xsi/algorithm/MinimumDiameter.xsi" |
| 13146 |
|
| { |
| 13147 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Algorithm::MinimumDiameter")); |
| 13148 |
|
| } |
| 13149 |
|
| |
| 13150 |
|
| #line 70 "./xsi/algorithm/LineIntersector.xsi" |
| 13151 |
|
| { |
| 13152 |
|
| auto this_stash = Stash("Geo::Geos::Algorithm::LineIntersector"); |
| 13153 |
|
| xs::exp::create_constants(this_stash, { |
| 13154 |
|
| {"TYPE_NO_INTERSECTION", LineIntersector::NO_INTERSECTION}, |
| 13155 |
|
| {"TYPE_POINT_INTERSECTION", LineIntersector::POINT_INTERSECTION}, |
| 13156 |
|
| {"TYPE_COLLINEAR_INTERSECTION", LineIntersector::COLLINEAR_INTERSECTION} |
| 13157 |
|
| }); |
| 13158 |
|
| xs::exp::autoexport(this_stash); |
| 13159 |
|
| } |
| 13160 |
|
| |
| 13161 |
|
| #line 88 "./xsi/noding.xsi" |
| 13162 |
|
| { |
| 13163 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Noding")); |
| 13164 |
|
| } |
| 13165 |
|
| |
| 13166 |
|
| #line 39 "./xsi/noding/NodedSegmentString.xsi" |
| 13167 |
|
| { |
| 13168 |
|
| Stash("Geo::Geos::Noding::NodedSegmentString").inherit("Geo::Geos::Noding::SegmentString"); |
| 13169 |
|
| } |
| 13170 |
|
| |
| 13171 |
|
| #line 19 "./xsi/noding/BasicSegmentString.xsi" |
| 13172 |
|
| { |
| 13173 |
|
| Stash("Geo::Geos::Noding::BasicSegmentString").inherit("Geo::Geos::Noding::SegmentString"); |
| 13174 |
|
| } |
| 13175 |
|
| |
| 13176 |
|
| #line 35 "./xsi/noding/SegmentIntersectionDetector.xsi" |
| 13177 |
|
| { |
| 13178 |
|
| Stash("Geo::Geos::Noding::SegmentIntersectionDetector").inherit("Geo::Geos::Noding::SegmentIntersector"); |
| 13179 |
|
| } |
| 13180 |
|
| |
| 13181 |
|
| #line 31 "./xsi/noding/SingleInteriorIntersectionFinder.xsi" |
| 13182 |
|
| { |
| 13183 |
|
| Stash("Geo::Geos::Noding::SingleInteriorIntersectionFinder").inherit("Geo::Geos::Noding::SegmentIntersector"); |
| 13184 |
|
| } |
| 13185 |
|
| |
| 13186 |
|
| #line 29 "./xsi/noding/IntersectionAdder.xsi" |
| 13187 |
|
| { |
| 13188 |
|
| Stash("Geo::Geos::Noding::IntersectionAdder").inherit("Geo::Geos::Noding::SegmentIntersector"); |
| 13189 |
|
| } |
| 13190 |
|
| |
| 13191 |
|
| #line 37 "./xsi/noding/IntersectionFinderAdder.xsi" |
| 13192 |
|
| { |
| 13193 |
|
| payload_marker_IntersectionFinderAdder.svt_free = payload_marker_IntersectionFinderAdder_free; |
| 13194 |
|
| Stash("Geo::Geos::Noding::IntersectionFinderAdder").inherit("Geo::Geos::Noding::SegmentIntersector"); |
| 13195 |
|
| } |
| 13196 |
|
| |
| 13197 |
|
| #line 37 "./xsi/noding/Noder.xsi" |
| 13198 |
|
| { |
| 13199 |
|
| payload_marker_Noder.svt_free = payload_marker_Noder_free; |
| 13200 |
|
| } |
| 13201 |
|
| |
| 13202 |
|
| #line 15 "./xsi/noding/IteratedNoder.xsi" |
| 13203 |
|
| { |
| 13204 |
|
| Stash("Geo::Geos::Noding::IteratedNoder").inherit("Geo::Geos::Noding::Noder"); |
| 13205 |
|
| } |
| 13206 |
|
| |
| 13207 |
|
| #line 15 "./xsi/noding/ScaledNoder.xsi" |
| 13208 |
|
| { |
| 13209 |
|
| Stash("Geo::Geos::Noding::ScaledNoder").inherit("Geo::Geos::Noding::Noder"); |
| 13210 |
|
| } |
| 13211 |
|
| |
| 13212 |
|
| #line 21 "./xsi/noding/SinglePassNoder.xsi" |
| 13213 |
|
| { |
| 13214 |
|
| Stash("Geo::Geos::Noding::SinglePassNoder").inherit("Geo::Geos::Noding::Noder"); |
| 13215 |
|
| } |
| 13216 |
|
| |
| 13217 |
|
| #line 16 "./xsi/noding/SimpleNoder.xsi" |
| 13218 |
|
| { |
| 13219 |
|
| Stash("Geo::Geos::Noding::SimpleNoder").inherit("Geo::Geos::Noding::SinglePassNoder"); |
| 13220 |
|
| } |
| 13221 |
|
| |
| 13222 |
|
| #line 25 "./xsi/noding/SimpleSnapRounder.xsi" |
| 13223 |
|
| { |
| 13224 |
|
| Stash("Geo::Geos::Noding::SimpleSnapRounder").inherit("Geo::Geos::Noding::Noder"); |
| 13225 |
|
| } |
| 13226 |
|
| |
| 13227 |
|
| #line 55 "./xsi/index/MonotoneChain.xsi" |
| 13228 |
|
| { |
| 13229 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Index::MonotoneChain")); |
| 13230 |
|
| payload_marker_MonotoneChain.svt_free = payload_marker_MonotoneChain_free; |
| 13231 |
|
| } |
| 13232 |
|
| |
| 13233 |
|
| #line 43 "./xsi/index/SpatialIndex.xsi" |
| 13234 |
|
| { |
| 13235 |
|
| payload_marker_SVs_map.svt_free = payload_marker_SVs_map_free; |
| 13236 |
|
| } |
| 13237 |
|
| |
| 13238 |
|
| #line 27 "./xsi/index/Quadtree.xsi" |
| 13239 |
|
| { |
| 13240 |
|
| Stash("Geo::Geos::Index::Quadtree").inherit("Geo::Geos::Index::SpatialIndex"); |
| 13241 |
|
| } |
| 13242 |
|
| |
| 13243 |
|
| #line 12 "./xsi/index/STRtree.xsi" |
| 13244 |
|
| { |
| 13245 |
|
| Stash("Geo::Geos::Index::STRtree").inherit("Geo::Geos::Index::SpatialIndex"); |
| 13246 |
|
| } |
| 13247 |
|
| |
| 13248 |
|
| #line 73 "./xsi/precision.xsi" |
| 13249 |
|
| { |
| 13250 |
|
| xs::exp::autoexport(Stash("Geo::Geos::Precision")); |
| 13251 |
|
| } |
| 13252 |
|
| |
| 13253 |
|
| #line 95 "./xsi/operation.xsi" |
| 13254 |
|
| { |
| 13255 |
|
| auto this_stash = Stash("Geo::Geos::Operation"); |
| 13256 |
|
| xs::exp::create_constants(this_stash, { |
| 13257 |
|
| {"TYPE_OP_INTERSECTION", OverlayOp::OpCode::opINTERSECTION}, |
| 13258 |
|
| {"TYPE_OP_UNION", OverlayOp::OpCode::opUNION}, |
| 13259 |
|
| {"TYPE_OP_DIFFERENCE", OverlayOp::OpCode::opDIFFERENCE}, |
| 13260 |
|
| {"TYPE_OP_SYMDIFFERENCE", OverlayOp::OpCode::opSYMDIFFERENCE}, |
| 13261 |
|
| |
| 13262 |
|
| {"TYPE_BOUNDARY_NODE_RULE_MOD2", 0}, |
| 13263 |
|
| {"TYPE_BOUNDARY_ENDPOINT", 1}, |
| 13264 |
|
| {"TYPE_BOUNDARY_MULTIVALENT_ENDPOINT", 2}, |
| 13265 |
|
| {"TYPE_BOUNDARY_MONOVALENT_ENDPOINT", 3}, |
| 13266 |
|
| {"TYPE_BOUNDARY_OGCSFS", 4} |
| 13267 |
|
| }); |
| 13268 |
|
| xs::exp::autoexport(this_stash); |
| 13269 |
|
| } |
| 13270 |
|
| |
| 13271 |
|
| #line 13272 "Geos_xsgen.cc" |
| 13272 |
|
| |
| 13273 |
|
| /* End of Initialisation Section */ |
| 13274 |
|
| |
| 13275 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 13276 |
|
| # if PERL_VERSION_GE(5, 9, 0) |
| 13277 |
|
| if (PL_unitcheckav) |
| 13278 |
|
| call_list(PL_scopestack_ix, PL_unitcheckav); |
| 13279 |
|
| # endif |
| 13280 |
|
| XSRETURN_YES; |
| 13281 |
|
| #else |
| 13282 |
46 |
| Perl_xs_boot_epilog(aTHX_ ax); |
| 13283 |
|
| #endif |
| 13284 |
736 |
▶ | }); } |
Branch: 75 branches
| Branch | True | False | Total |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
46 |
0 |
46 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
| }); } |
0 |
0 |
0 |
|
| 13285 |
|
| |
| 13286 |
|
| #ifdef __cplusplus |
| 13287 |
|
| } |
| 13288 |
|
| #endif |