Expression.xsi

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 9 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 66.6% 18 / 27 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Variable.xsi ↑ Summary Refcnt.xsi »
1 MODE: INLINE
2  
3 #include <xs.h>
4 #include <kiwi/kiwi.h>
5  
6 namespace xs {
7 template <>
8 struct Typemap<kiwi::Expression*> : TypemapObject<kiwi::Expression*, kiwi::Expression*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
9 static std::string package () { return "Graphics::Layout::Kiwisolver::Expression"; }
10 };
11 }
12  
13 MODULE = Graphics::Layout::Kiwisolver PACKAGE = Graphics::Layout::Kiwisolver::Expression
14 PROTOTYPES: DISABLE
15  
16 std::vector<kiwi::Term*> kiwi::Expression::terms() {
17 1 std::vector<kiwi::Term> terms = THIS->terms();
18 1 ▶ size_t n = terms.size();
Branch: 1 branch
BranchTrueFalseTotal
size_t n = terms.size(); 1 0 1
19 1 RETVAL = std::vector<kiwi::Term*>(n);
20 1 ▶ for( int i = 0; i < n; i++ ) {
Branch: 1 branch
BranchTrueFalseTotal
for( int i = 0; i < n; i++ ) { 1 0 1
21 4 ▶ RETVAL[i] = new kiwi::Term(terms[i]);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL[i] = new kiwi::Term(terms[i]); 3 1 4
22 3 ▶ }
Branch: 3 branches
BranchTrueFalseTotal
} 3 0 3
} 3 0 3
} 0 0 0
23 }
24  
25 1 double kiwi::Expression::constant()
26  
27 2 ▶double kiwi::Expression::value()
Branch: 1 branch
BranchTrueFalseTotal
double kiwi::Expression::value() 0 2 2
28  
29 BOOT {
30 8 ▶ Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__);
Branch: 2 branches
BranchTrueFalseTotal
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); 8 0 8
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); 8 0 8
31 }
« Variable.xsi ↑ Summary Refcnt.xsi »