Go to the documentation of this file.
33 #ifndef TTA_CODESNIPPET_HH
34 #define TTA_CODESNIPPET_HH
Address endAddr_
The highest address of the procedure.
UInt32 InstructionAddress
virtual Instruction & firstInstruction() const
virtual void append(const CodeSnippet &cs)
virtual void setParent(Program &prog)
virtual void setEndAddress(Address end)
virtual void insertBefore(const Instruction &pos, Instruction *ins)
virtual void deleteInstructionAt(InstructionAddress address)
virtual void removeLastInstruction()
virtual void remove(Instruction &ins)
virtual Instruction & nextInstruction(const Instruction &ins) const
virtual Address startAddress() const
virtual void setStartAddress(Address start)
virtual std::string disassembly() const
virtual void prepend(const CodeSnippet &cs)
virtual void insertAfter(const Instruction &pos, Instruction *ins)
virtual int instructionCount() const
virtual void add(Instruction *ins)
virtual Instruction & operator[](size_t index) const
InsList::iterator InsIter
Iterator for the instruction list.
virtual Instruction & previousInstruction(const Instruction &ins) const
virtual bool hasNextInstruction(const Instruction &ins) const
virtual Instruction & lastInstruction() const
virtual CodeSnippet * copy() const
virtual void addFront(Instruction *ins)
virtual Address address(const Instruction &ins) const
virtual Program & parent() const
Program * parent_
The parent program of the procedure.
virtual Address endAddress() const
virtual Instruction & instructionAtIndex(int index) const
virtual std::string toString() const
virtual Instruction & instructionAt(UIntWord address) const
InsList instructions_
The instructions in this procedure.
Address startAddr_
The start (lowest) address of the procedure.
std::vector< Instruction * > InsList
List of instructions.
virtual bool isInProgram() const