Go to the documentation of this file.
34 #ifndef TTA_CODE_SECTION_HH
35 #define TTA_CODE_SECTION_HH
40 class InstructionElement;
virtual InstructionElement * element(Word index) const
void initInstructionCache() const
virtual void addElement(SectionElement *element)
virtual void setElement(Word index, SectionElement *element)
Word indexOfElement(const InstructionElement &elem) const
std::vector< Word > instructionStartCache_
Cache vector of element indexes of those instruction elements, which begins a new instruction.
bool isCodeSection() const override
InstructionElement & instruction(Word index) const
bool isInSection(const InstructionElement &elem) const
Word instructionCount() const
Word instructionToSectionIndex(Word index) const
virtual Section * clone() const
static CodeSection proto_
Prototype instance of section.
void clearInstructionCache() const
std::map< const InstructionElement *, Word > elementIndexCache_
Cache of indexes of instruction elemenets.
Word indexOfInstruction(const InstructionElement &elem) const
virtual SectionType type() const