40 #ifndef COMPUTE_RESERVED_MEMORY_HPP 41 #define COMPUTE_RESERVED_MEMORY_HPP 104 void GoUp()
override;
110 void Process(
const std::string& content)
override;
unsigned long long GetReservedBytes() const
Return the computed value.
ComputeReservedMemory(const tree_managerConstRef TM, const tree_nodeConstRef tn)
Constructor.
This class manages the tree structures extracted from the raw file.
void ActivateFileInit(const std::string &) override
In this case the function does not activate anything.
CONSTREF_FORWARD_DECL(tree_manager)
Superclass include.
Abstract pure class for the tree structure.
unsigned int elements_number
The number of elements in the top level.
unsigned int depth_level
The current level of {}.
const tree_managerConstRef TM
The tree manager.
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.
Specification of the abstract functor used during parsing of C initialization string.
Template definition of refcount.
void GoNext() override
Consume an element of an aggregated data structure.
void FinalizeFileInit() override
do nothing
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
void Process(const std::string &content) override
Process an element.
Functor used to compute size of memory objects.
void GoDown() override
Start the initialization of a new aggregated data structure.
const tree_nodeConstRef tn
The tree node to be stored in memory.