-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMetaTable.inl
More file actions
54 lines (40 loc) · 957 Bytes
/
Copy pathMetaTable.inl
File metadata and controls
54 lines (40 loc) · 957 Bytes
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
X_NAMESPACE_BEGIN(net)
X_INLINE CompPropType::Enum CompProp::getType(void) const
{
return type_;
}
X_INLINE CompPropFlags CompProp::getFlags(void) const
{
return flags_;
}
X_INLINE int32_t CompProp::getFieldOffset(void) const
{
return fieldOffset_;
}
X_INLINE int32_t CompProp::getNumBits(void) const
{
return numBits_;
}
X_INLINE int32_t CompProp::getSizeOfVar(void) const
{
return sizeOfVar_;
}
X_INLINE int32_t CompProp::getNumElements(void) const
{
X_ASSERT(type_ == CompPropType::Array, "Num Elements only valid for arrays")(type_, numElements_);
return numElements_;
}
// --------------------------------------------------------------------
X_INLINE size_t CompTable::numProps(void) const
{
return props_.size();
}
X_INLINE const CompProp& CompTable::getProp(size_t idx) const
{
return props_[idx];
}
X_INLINE const char* CompTable::getTableName(void) const
{
return pTableName_;
}
X_NAMESPACE_END