55 : TM(_TM), tn(_tn), elements_number(1), depth_level(0)
63 return reservedMem ? reservedMem : 1;
unsigned long long GetReservedBytes() const
Return the computed value.
ComputeReservedMemory(const tree_managerConstRef TM, const tree_nodeConstRef tn)
Constructor.
exceptions managed by PandA
static unsigned long long Size(const tree_nodeConstRef &tn)
Return the size of a tree object.
unsigned int elements_number
The number of elements in the top level.
unsigned int depth_level
The current level of {}.
void CheckEnd() override
Check that all the necessary information was present in the initialization string.
void GoUp() override
Ends the initialization of the current aggregated data structure.
Classes specification of the tree_node data structures.
This file collects some utility functions.
Specification of the functor used to compute size of objects starting from C initialization string...
void GoNext() override
Consume an element of an aggregated data structure.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
static tree_nodeConstRef CGetType(const tree_nodeConstRef &node)
Return the treenode of the type of node.
static tree_nodeConstRef CGetPointedType(const tree_nodeConstRef &pointer)
Return the pointed type of a pointer object.
void Process(const std::string &content) override
Process an element.
void GoDown() override
Start the initialization of a new aggregated data structure.
const tree_nodeConstRef tn
The tree node to be stored in memory.
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...