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