line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODE: INLINE |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
#include |
4
|
|
|
|
|
|
|
#include |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
struct DateRecipe02a { |
7
|
|
|
|
|
|
|
DateRecipe02a() { update() ; } |
8
|
|
|
|
|
|
|
void update() { epoch = std::time(nullptr); } |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
int get_epoch() const { return epoch; } |
11
|
|
|
|
|
|
|
private: |
12
|
|
|
|
|
|
|
std::time_t epoch; |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
namespace xs { |
16
|
|
|
|
|
|
|
template <> |
17
|
|
|
|
|
|
|
struct Typemap : TypemapObject { |
18
|
|
|
|
|
|
|
static std::string package () { return "MyTest::Cookbook::DateRecipe02a"; } |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
struct DateRecipe02b { |
23
|
|
|
|
|
|
|
DateRecipe02b() { update() ; } |
24
|
|
|
|
|
|
|
void update() { epoch = std::time(nullptr); } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
int get_epoch() const { return epoch; } |
27
|
|
|
|
|
|
|
private: |
28
|
|
|
|
|
|
|
std::time_t epoch; |
29
|
|
|
|
|
|
|
}; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
namespace xs { |
32
|
|
|
|
|
|
|
template <> |
33
|
|
|
|
|
|
|
struct Typemap : TypemapObject { |
34
|
|
|
|
|
|
|
static std::string package () { return "MyTest::Cookbook::DateRecipe02b"; } |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
MODULE = MyTest::Cookbook PACKAGE = MyTest::Cookbook::DateRecipe02a |
39
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
DateRecipe02a* DateRecipe02a::new() { RETVAL = new DateRecipe02a(); } |
42
|
0
|
0
|
|
|
|
|
|
43
|
0
|
0
|
|
|
|
|
void DateRecipe02a::update() |
|
|
0
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
std::time_t DateRecipe02a::get_epoch() |
46
|
0
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
BOOT { |
48
|
34
|
50
|
|
|
|
|
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); |
|
|
50
|
|
|
|
|
|
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
0
|
0
|
|
|
|
|
void DateRecipe02a::DESTROY() { |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
MODULE = MyTest::Cookbook PACKAGE = MyTest::Cookbook::DateRecipe02b |
55
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
56
|
|
|
|
|
|
|
|
57
|
0
|
|
|
|
|
|
DateRecipe02b* DateRecipe02b::new() { RETVAL = new DateRecipe02b(); } |
58
|
0
|
0
|
|
|
|
|
|
59
|
0
|
0
|
|
|
|
|
void DateRecipe02b::update() |
|
|
0
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
std::time_t DateRecipe02b::get_epoch() |
62
|
0
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
BOOT { |
64
|
34
|
50
|
|
|
|
|
Stash(__PACKAGE__, GV_ADD).mark_as_loaded(__MODULE__); |
|
|
50
|
|
|
|
|
|
65
|
|
|
|
|
|
|
} |