Solver.xsi

filter: Statementstmt 53.3% 8 / 15 Branchbran 33.3% 6 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 42.4% 14 / 33 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Term.xsi ↑ Summary Kiwisolver_xsgen.cc »
1 MODE: INLINE
2  
3 #include <xs.h>
4 #include <kiwi/kiwi.h>
5  
6 namespace xs {
7 template <>
8 struct Typemap<kiwi::Solver*> : TypemapObject<kiwi::Solver*, kiwi::Solver*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
9 static std::string package () { return "Graphics::Layout::Kiwisolver::Solver"; }
10 };
11 }
12  
13 MODULE = Graphics::Layout::Kiwisolver PACKAGE = Graphics::Layout::Kiwisolver::Solver
14 PROTOTYPES: DISABLE
15  
16 5 kiwi::Solver* kiwi::Solver::new() { RETVAL = new kiwi::Solver(); }
17 5 ▶ 
Branch: 1 branch
BranchTrueFalseTotal
5 0 5
18 5 ▶ 
Branch: 4 branches
BranchTrueFalseTotal
5 0 5
5 0 5
5 0 5
0 0 0
19 void kiwi::Solver::addConstraint( kiwi::Constraint* constraint ) {
20 2497 THIS->addConstraint( *constraint );
21 }
22  
23 void kiwi::Solver::removeConstraint( kiwi::Constraint* constraint ) {
24 0 THIS->removeConstraint(*constraint);
25 }
26  
27 bool kiwi::Solver::hasConstraint( kiwi::Constraint* constraint ) {
28 0 ▶ RETVAL = THIS->hasConstraint(*constraint);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->hasConstraint(*constraint); 0 0 0
29 }
30  
31 void kiwi::Solver::addEditVariable( kiwi::Variable* variable, double strength ) {
32 719 THIS->addEditVariable(*variable, strength);
33 }
34  
35 void kiwi::Solver::removeEditVariable( kiwi::Variable* variable ) {
36 0 THIS->removeEditVariable(*variable);
37 }
38  
39 bool kiwi::Solver::hasEditVariable( kiwi::Variable* variable ) {
40 0 THIS->hasEditVariable(*variable);
41 }
42  
43 void kiwi::Solver::suggestValue( kiwi::Variable* variable, double value ) {
44 619 THIS->suggestValue(*variable, value);
45 }
46  
47 8 void kiwi::Solver::updateVariables()
48  
49 0 void kiwi::Solver::reset()
50  
51 0 void kiwi::Solver::dump()
52  
53 0 ▶std::string kiwi::Solver::dumps()
Branch: 1 branch
BranchTrueFalseTotal
std::string kiwi::Solver::dumps() 0 0 0
54  
55 BOOT {
56 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
57 }
« Term.xsi ↑ Summary Kiwisolver_xsgen.cc »