line |
true |
false |
branch |
6
|
1 |
41 |
else if (items == 2) { |
|
1 |
0 |
else if (items == 2) { |
|
1 |
0 |
else if (items == 2) { |
7
|
2 |
39 |
if (!arg1.is_simple()) { |
8
|
1 |
1 |
auto& c = xs::in(arg1); |
9
|
1 |
0 |
RETVAL = new Envelope(c); |
10
|
1 |
0 |
} |
|
1 |
0 |
} |
13
|
0 |
1 |
panda::string_view sw = Simple(arg1); |
14
|
1 |
0 |
std::string str { sw.begin(), sw.end() }; |
|
1 |
0 |
std::string str { sw.begin(), sw.end() }; |
15
|
1 |
0 |
RETVAL = new Envelope(str); |
16
|
1 |
0 |
} |
|
1 |
0 |
} |
19
|
3 |
36 |
auto& c1 = xs::in(arg1); |
20
|
3 |
0 |
auto& c2 = xs::in(arg2); |
21
|
2 |
1 |
RETVAL = new Envelope(c1, c2); |
22
|
2 |
0 |
} |
|
2 |
0 |
} |
24
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
|
36 |
0 |
else throw ("unsupported constructor"); |
28
|
3 |
3 |
if (items == 1) THIS->init(); |
29
|
1 |
2 |
else if (items == 2) { |
33
|
1 |
1 |
else if (items == 3) { |
34
|
1 |
0 |
auto c1 = xs::in(arg1); |
35
|
1 |
0 |
auto c2 = xs::in(arg2); |
36
|
1 |
0 |
THIS->init(c1, c2); |
38
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
|
1 |
0 |
else if (items == 5) THIS->init(Simple(arg1), Simple(arg2), Simple(arg3), Simple(arg4)); |
44
|
2 |
0 |
double Envelope::getArea() |
46
|
1 |
0 |
double Envelope::getMaxY() |
48
|
1 |
0 |
double Envelope::getMaxX() |
50
|
1 |
0 |
double Envelope::getMinY() |
52
|
1 |
0 |
double Envelope::getMinX() |
54
|
1 |
0 |
double Envelope::getWidth() |
56
|
1 |
0 |
double Envelope::getHeight() |
58
|
9 |
0 |
bool Envelope::isNull() |
60
|
1 |
0 |
int Envelope::hashCode () |
62
|
14 |
0 |
std::string Envelope::toString (...) |
|
14 |
0 |
std::string Envelope::toString (...) |
65
|
8 |
0 |
auto other = xs::in(other_arg); |
66
|
8 |
0 |
RETVAL = other ? THIS->equals(other) : false; |
|
8 |
0 |
RETVAL = other ? THIS->equals(other) : false; |
71
|
1 |
0 |
if (!THIS->centre(c)) XSRETURN_UNDEF; |
72
|
1 |
0 |
RETVAL = new Coordinate(c); |
|
0 |
1 |
RETVAL = new Coordinate(c); |
73
|
1 |
0 |
} |
76
|
5 |
2 |
if (!arg2) { |
77
|
5 |
0 |
Object obj {arg1}; |
78
|
0 |
5 |
if(!obj) throw("wrong argument"); |
79
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
3 |
2 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
80
|
3 |
0 |
auto e = xs::in(obj); |
81
|
3 |
0 |
RETVAL = THIS->contains(e); |
84
|
2 |
0 |
auto& c = xs::in(obj); |
85
|
2 |
0 |
RETVAL = THIS->contains(c); |
88
|
2 |
0 |
else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->contains(Simple(arg1), Simple(arg2)); |
92
|
5 |
2 |
if (!arg2) { |
93
|
5 |
0 |
Object obj {arg1}; |
94
|
0 |
5 |
if(!obj) throw("wrong argument"); |
95
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
3 |
2 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
96
|
3 |
0 |
auto e = xs::in(obj); |
97
|
3 |
0 |
RETVAL = THIS->covers(e); |
100
|
2 |
0 |
auto& c = xs::in(obj); |
101
|
2 |
0 |
RETVAL = THIS->covers(c); |
|
2 |
0 |
RETVAL = THIS->covers(c); |
104
|
2 |
0 |
else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = THIS->covers(Simple(arg1), Simple(arg2)); |
108
|
0 |
11 |
if (!maybe_self) throw("wrong argument"); |
109
|
11 |
0 |
auto arg0_stash = maybe_self.stash().name(); |
110
|
11 |
0 |
if (arg0_stash != "Geo::Geos::Envelope") { |
|
4 |
7 |
if (arg0_stash != "Geo::Geos::Envelope") { |
112
|
4 |
0 |
auto& p1 = xs::in(maybe_self); |
113
|
4 |
0 |
auto& p2 = xs::in(arg1); |
114
|
2 |
2 |
if (!arg3) { |
115
|
2 |
0 |
auto& q = xs::in(arg2); |
116
|
2 |
0 |
RETVAL = Envelope::intersects(p1, p2, q); |
119
|
2 |
0 |
auto& q1 = xs::in(arg2); |
120
|
2 |
0 |
auto& q2 = xs::in(arg3); |
121
|
2 |
0 |
RETVAL = Envelope::intersects(p1, p2, q1, q2); |
125
|
7 |
0 |
Envelope& self = xs::in(maybe_self); |
126
|
5 |
2 |
if (!arg2) { |
127
|
5 |
0 |
Object obj {arg1}; |
128
|
0 |
5 |
if(!obj) throw("wrong argument"); |
129
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
5 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
3 |
2 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
130
|
3 |
0 |
auto& e = xs::in(obj); |
131
|
3 |
0 |
RETVAL = self.intersects(&e); |
134
|
2 |
0 |
auto& c = xs::in(obj); |
135
|
2 |
0 |
RETVAL = self.intersects(c); |
138
|
2 |
0 |
else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
|
2 |
0 |
else RETVAL = self.intersects(Simple(arg1), Simple(arg2)); |
143
|
2 |
1 |
if (!arg2) { |
144
|
2 |
0 |
Object obj {arg1}; |
145
|
0 |
2 |
if(!obj) throw("wrong argument"); |
146
|
2 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
2 |
0 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
|
1 |
1 |
if (obj.stash().name() == "Geo::Geos::Envelope") { |
147
|
1 |
0 |
auto& e = xs::in(obj); |
148
|
1 |
0 |
THIS->expandToInclude(&e); |
151
|
1 |
0 |
auto& c = xs::in(obj); |
152
|
1 |
0 |
THIS->expandToInclude(c); |
155
|
1 |
0 |
else THIS->expandToInclude(Simple(arg1), Simple(arg2)); |
|
1 |
0 |
else THIS->expandToInclude(Simple(arg1), Simple(arg2)); |
|
1 |
0 |
else THIS->expandToInclude(Simple(arg1), Simple(arg2)); |
|
1 |
0 |
else THIS->expandToInclude(Simple(arg1), Simple(arg2)); |
158
|
1 |
0 |
double Envelope::distance(Envelope& other) { RETVAL = THIS->distance(&other); } |
166
|
1 |
0 |
if (!THIS->intersection(other, e)) XSRETURN_UNDEF; |
|
1 |
0 |
if (!THIS->intersection(other, e)) XSRETURN_UNDEF; |
167
|
1 |
0 |
RETVAL = new Envelope(e); |
|
0 |
1 |
RETVAL = new Envelope(e); |
168
|
1 |
0 |
} |
|
1 |
0 |
} |