line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
10
|
|
|
|
|
|
kiwi::Solver* kiwi::Solver::new() { RETVAL = new kiwi::Solver(); } |
17
|
5
|
50
|
|
|
|
|
|
18
|
5
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
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
|
0
|
|
|
|
|
RETVAL = THIS->hasConstraint(*constraint); |
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
|
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
|
0
|
|
|
|
|
std::string kiwi::Solver::dumps() |
|
|
0
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
BOOT { |
56
|
8
|
50
|
|
|
|
|
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); |
|
|
50
|
|
|
|
|
|
57
|
|
|
|
|
|
|
} |