| 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::Term*> : TypemapObject<kiwi::Term*, kiwi::Term*, ObjectTypePtr, ObjectStorageMG, StaticCast> { |
|
9
|
|
|
|
|
|
|
static std::string package () { return "Intertangle::API::Kiwisolver::Term"; } |
|
10
|
|
|
|
|
|
|
}; |
|
11
|
|
|
|
|
|
|
} |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
MODULE = Intertangle::API::Kiwisolver PACKAGE = Intertangle::API::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
|
0
|
|
|
|
|
RETVAL = new kiwi::Term(v, coefficient); |
|
19
|
0
|
|
|
|
|
|
} |
|
20
|
0
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
kiwi::Variable* kiwi::Term::variable() { |
|
22
|
6
|
|
|
|
|
|
RETVAL = &( const_cast<kiwi::Variable&>( THIS->variable() ) ); |
|
23
|
3
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
3
|
|
|
|
|
|
double kiwi::Term::coefficient() |
|
26
|
|
|
|
|
|
|
|
|
27
|
3
|
50
|
|
|
|
|
double kiwi::Term::value() |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
BOOT { |
|
30
|
8
|
50
|
|
|
|
|
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); |
|
|
|
50
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
} |