40 #ifndef MEMORY_INITIALIZATION_WRITER_BASE_HPP 41 #define MEMORY_INITIALIZATION_WRITER_BASE_HPP 85 std::vector<std::pair<const tree_nodeConstRef, size_t>>
status;
109 const unsigned long int reserved_mem_bytes,
132 void GoUp()
override;
const tree_nodeConstRef function_parameter
The variable/parameter being printed.
const unsigned long int reserved_mem_bytes
The number of bytes to be written.
void GoUp() override
Ends the initialization of the current aggregated data structure.
std::vector< std::pair< const tree_nodeConstRef, size_t > > status
The stack representing the current status of the parser; the content is the last dumped element...
Functor used to write initialization of the memory writer.
This class manages the tree structures extracted from the raw file.
const std::string PrintStatus() const
Print the current status.
CONSTREF_FORWARD_DECL(BehavioralHelper)
Superclass include.
unsigned long int written_bytes
The number of bytes currently written.
Abstract pure class for the tree structure.
const BehavioralHelperConstRef behavioral_helper
The behavioral helper.
Specification of the abstract functor used during parsing of C initialization string.
Template definition of refcount.
void CheckEnd() override
Check that all the necessary information was present in the initialization string.
const TestbenchGeneration_MemoryType testbench_generation_memory_type
The type of initialization being written.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
MemoryInitializationWriterBase(const tree_managerConstRef TM, const BehavioralHelperConstRef behavioral_helper, const unsigned long int reserved_mem_bytes, const tree_nodeConstRef function_parameter, const TestbenchGeneration_MemoryType testbench_generation_memory_type, const ParameterConstRef parameters)
Constructor.
const tree_managerConstRef TM
The tree manager.
void GoNext() override
Consume an element of an aggregated data structure.
TestbenchGeneration_MemoryType
Enum class used to specify which type of content has to be printed for memory initialization.
void GoDown() override
Start the initialization of a new aggregated data structure.