7 m_declaringScopeOffset(0),
15 m_declaringScopeOffset(declaringScopeOffset),
20 for(std::vector<DataElement*>::const_iterator iEl = m_children.begin();
21 iEl != m_children.end(); ++iEl ){
31 m_children.push_back(child);
37 size_t offset = m_declaringScopeOffset;
39 size_t parentOffset = m_parent->offset( topLevelAddress );
40 offset += parentOffset;
50 void* elementAddress =
static_cast< char*
>(
const_cast<void*
>(topLevelAddress)) +
offset( topLevelAddress );
51 return elementAddress;
56 return m_declaringScopeOffset;
60 for(std::vector<DataElement*>::const_iterator iEl = m_children.begin();
61 iEl != m_children.end(); ++iEl ){
void * address(const void *topLevelAddress) const
size_t declaringScopeOffset() const
size_t offset(const void *topLevelAddress) const
DataElement & addChild(size_t declaringScopeOffset, size_toffset)
const DataElement * m_parent