-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhandler.inl
executable file
·90 lines (69 loc) · 1.59 KB
/
handler.inl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// handler.inl --
// $Id: handler.inl 1230 2007-03-09 15:58:53Z jcw $
// This is part of Metakit, see http://www.equi4.com/metakit.html
/** @file
* Inlined members of the handler classes
*/
/////////////////////////////////////////////////////////////////////////////
// c4_Handler
d4_inline c4_Handler::c4_Handler (const c4_Property& prop_)
: _property (prop_)
{
}
d4_inline c4_Handler::~c4_Handler ()
{
}
d4_inline void c4_Handler::Define(int, const t4_byte**)
{
}
d4_inline void c4_Handler::FlipBytes()
{
}
d4_inline const c4_Property& c4_Handler::Property() const
{
return _property;
}
d4_inline int c4_Handler::PropId() const
{
return _property.GetId();
}
d4_inline c4_Column* c4_Handler::GetNthMemoCol(int, bool alloc_)
{
return 0;
}
d4_inline bool c4_Handler::IsPersistent() const
{
return false;
}
d4_inline void c4_Handler::Unmapped()
{
}
d4_inline bool c4_Handler::HasSubview(int)
{
return false;
}
/////////////////////////////////////////////////////////////////////////////
// c4_HandlerSeq
d4_inline int c4_HandlerSeq::NumRows() const
{
d4_assert(_numRows >= 0);
return _numRows;
}
d4_inline int c4_HandlerSeq::NumHandlers() const
{
return _handlers.GetSize();
}
d4_inline c4_Handler& c4_HandlerSeq::NthHandler(int index_) const
{
d4_assert(_handlers.GetAt(index_) != 0);
return *(c4_Handler*) _handlers.GetAt(index_);
}
d4_inline const c4_Sequence* c4_HandlerSeq::HandlerContext(int) const
{
return this;
}
d4_inline c4_HandlerSeq& c4_HandlerSeq::Parent() const
{
return *_parent;
}
/////////////////////////////////////////////////////////////////////////////