Term.xsi

filter: Statementstmt 55.5% 5 / 9 Branchbran 27.7% 5 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 37.0% 10 / 27 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Constraint.xsi ↑ Summary Solver.xsi »
1 MODE: INLINE
2  
3 #include <xs.h>
4 #include <kiwi/kiwi.h>
5  
6 namespace xs {
7 template <>
8 struct Typemap<kiwi::Term*> : TypemapObject<kiwi::Term*, kiwi::Term*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
9 static std::string package () { return "Graphics::Layout::Kiwisolver::Term"; }
10 };
11 }
12  
13 MODULE = Graphics::Layout::Kiwisolver PACKAGE = Graphics::Layout::Kiwisolver::Term
14 PROTOTYPES: DISABLE
15  
16 kiwi::Term* kiwi::Term::new( kiwi::Variable* variable, double coefficient = 1.0 ) {
17 0 const kiwi::Variable& v = *variable;
18 0 ▶ RETVAL = new kiwi::Term(v, coefficient);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = new kiwi::Term(v, coefficient); 0 0 0
19 0 }
20 0 ▶ 
Branch: 4 branches
BranchTrueFalseTotal
0 0 0
0 0 0
0 0 0
0 0 0
21 kiwi::Variable* kiwi::Term::variable() {
22 3 RETVAL = &( const_cast<kiwi::Variable&>( THIS->variable() ) );
23 3 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 3 0 3
24  
25 3 double kiwi::Term::coefficient()
26  
27 3 ▶double kiwi::Term::value()
Branch: 1 branch
BranchTrueFalseTotal
double kiwi::Term::value() 2 1 3
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 }
« Constraint.xsi ↑ Summary Solver.xsi »