xsi/precision.xsi

filter: Statementstmt 100% 26 / 26 Branchbran 51.0% 48 / 94 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 61.6% 74 / 120 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xsi/MultiLineString.xsi ↑ Summary xsi/Point.xsi »
1 MODULE = Geo::Geos PACKAGE = Geo::Geos::Precision
2 PROTOTYPES: DISABLE
3  
4 int64 signExpBits(int64 num) {
5 1 RETVAL = CommonBits::signExpBits(num);
6 1 ▶}
Branch: 2 branches
BranchTrueFalseTotal
} 1 0 1
} 1 0 1
7  
8 int numCommonMostSigMantissaBits (int64 num1, int64 num2) {
9 1 ▶ RETVAL = CommonBits::numCommonMostSigMantissaBits(num1, num2);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = CommonBits::numCommonMostSigMantissaBits(num1, num2); 0 1 1
10 }
11  
12 int64 zeroLowerBits (int64 bits, int nBits) {
13 1 RETVAL = CommonBits::zeroLowerBits(bits, nBits);
14 1 ▶}
Branch: 2 branches
BranchTrueFalseTotal
} 1 0 1
} 1 0 1
15  
16 int getBit (int64 bits, int i) {
17 1 ▶ RETVAL = CommonBits::getBit (bits, i);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = CommonBits::getBit (bits, i); 0 1 1
18 }
19  
20 Sv commonIntersection (Geometry& g0, Geometry& g1, bool nReturnToOriginalPrecision = false) {
21 2 ▶ RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).intersection(&g0, &g1));
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).intersection(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).intersection(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).intersection(&g0, &g1)); 2 0 2
22 }
23  
24 Sv commonUnion (Geometry& g0, Geometry& g1, bool nReturnToOriginalPrecision = false) {
25 2 ▶ RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).Union(&g0, &g1));
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).Union(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).Union(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).Union(&g0, &g1)); 2 0 2
26 }
27  
28 Sv commonDifference (Geometry& g0, Geometry& g1, bool nReturnToOriginalPrecision = false) {
29 2 ▶ RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).difference(&g0, &g1));
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).difference(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).difference(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).difference(&g0, &g1)); 2 0 2
30 }
31  
32 Sv commonSymDifference (Geometry& g0, Geometry& g1, bool nReturnToOriginalPrecision = false) {
33 2 ▶ RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).symDifference(&g0, &g1));
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).symDifference(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).symDifference(&g0, &g1)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).symDifference(&g0, &g1)); 2 0 2
34 }
35  
36 Sv commonBuffer (Geometry& g0, double distance, bool nReturnToOriginalPrecision = false) {
37 2 ▶ RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).buffer(&g0, distance));
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).buffer(&g0, distance)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).buffer(&g0, distance)); 2 0 2
RETVAL = Helper::uplift(CommonBitsOp(nReturnToOriginalPrecision).buffer(&g0, distance)); 2 0 2
38 }
39  
40 Sv enhancedIntersection (Geometry& g0, Geometry& g1) {
41 1 ▶ RETVAL = Helper::uplift(EnhancedPrecisionOp().intersection(&g0, &g1));
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(EnhancedPrecisionOp().intersection(&g0, &g1)); 1 0 1
RETVAL = Helper::uplift(EnhancedPrecisionOp().intersection(&g0, &g1)); 1 0 1
42 }
43  
44 Sv enhancedUnion (Geometry& g0, Geometry& g1){
45 1 ▶ RETVAL = Helper::uplift(EnhancedPrecisionOp().Union(&g0, &g1));
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(EnhancedPrecisionOp().Union(&g0, &g1)); 1 0 1
RETVAL = Helper::uplift(EnhancedPrecisionOp().Union(&g0, &g1)); 1 0 1
46 }
47  
48 Sv enhancedDifference (Geometry& g0, Geometry& g1){
49 1 ▶ RETVAL = Helper::uplift(EnhancedPrecisionOp().difference(&g0, &g1));
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(EnhancedPrecisionOp().difference(&g0, &g1)); 1 0 1
RETVAL = Helper::uplift(EnhancedPrecisionOp().difference(&g0, &g1)); 1 0 1
50 }
51  
52 Sv enhancedSymDifference (Geometry& g0, Geometry& g1){
53 1 ▶ RETVAL = Helper::uplift(EnhancedPrecisionOp().symDifference(&g0, &g1));
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(EnhancedPrecisionOp().symDifference(&g0, &g1)); 1 0 1
RETVAL = Helper::uplift(EnhancedPrecisionOp().symDifference(&g0, &g1)); 1 0 1
54 }
55  
56 Sv enhancedBuffer (Geometry& g, double distance){
57 1 ▶ RETVAL = Helper::uplift(EnhancedPrecisionOp().buffer(&g, distance));
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = Helper::uplift(EnhancedPrecisionOp().buffer(&g, distance)); 1 0 1
RETVAL = Helper::uplift(EnhancedPrecisionOp().buffer(&g, distance)); 1 0 1
58 }
59  
60 Coordinate* removeCommonBits(Geometry& target, Array sources): ALIAS(addCommonBits=1) {
61 2 CommonBitsRemover cbr;
62 2 ▶ for(const auto& it: sources) {
Branch: 1 branch
BranchTrueFalseTotal
for(const auto& it: sources) { 2 0 2
63 6 ▶ cbr.add(&xs::in<Geometry&>(it));
Branch: 4 branches
BranchTrueFalseTotal
cbr.add(&xs::in<Geometry&>(it)); 2 0 2
cbr.add(&xs::in<Geometry&>(it)); 2 0 2
cbr.add(&xs::in<Geometry&>(it)); 4 0 4
cbr.add(&xs::in<Geometry&>(it)); 4 2 6
64 4 ▶ }
Branch: 2 branches
BranchTrueFalseTotal
} 4 0 4
} 4 0 4
65 4  
66 switch (ix) {
67 2 ▶ case 0: cbr.removeCommonBits(&target); break;
Branch: 1 branch
BranchTrueFalseTotal
case 0: cbr.removeCommonBits(&target); break; 1 1 2
68 1 ▶ default: cbr.addCommonBits(&target); break;
Branch: 1 branch
BranchTrueFalseTotal
default: cbr.addCommonBits(&target); break; 1 0 1
69 1 ▶ }
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
70 RETVAL = new Coordinate(cbr.getCommonCoordinate());
71 2 ▶}
Branch: 4 branches
BranchTrueFalseTotal
} 2 0 2
} 2 0 2
} 2 0 2
} 0 0 0
72  
73 BOOT {
74 46 ▶ xs::exp::autoexport(Stash(__PACKAGE__));
Branch: 2 branches
BranchTrueFalseTotal
xs::exp::autoexport(Stash(__PACKAGE__)); 46 0 46
xs::exp::autoexport(Stash(__PACKAGE__)); 46 0 46
75 }
« xsi/MultiLineString.xsi ↑ Summary xsi/Point.xsi »