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::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
|
2
|
|
|
|
|
|
std::vector<kiwi::Term> terms = THIS->terms(); |
18
|
2
|
50
|
|
|
|
|
size_t n = terms.size(); |
19
|
1
|
|
|
|
|
|
RETVAL = std::vector<kiwi::Term*>(n); |
20
|
1
|
50
|
|
|
|
|
for( int i = 0; i < n; i++ ) { |
21
|
4
|
100
|
|
|
|
|
RETVAL[i] = new kiwi::Term(terms[i]); |
22
|
3
|
50
|
|
|
|
|
} |
|
|
50
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
|
double kiwi::Expression::constant() |
26
|
|
|
|
|
|
|
|
27
|
2
|
50
|
|
|
|
|
double kiwi::Expression::value() |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
BOOT { |
30
|
8
|
50
|
|
|
|
|
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); |
|
|
50
|
|
|
|
|
|
31
|
|
|
|
|
|
|
} |