|
libTriton version 1.0 build 1599
|
This class is used to represent a basic block. More...
#include <basicBlock.hpp>
Public Member Functions | |
| TRITON_EXPORT | BasicBlock () |
| Constructor. | |
| TRITON_EXPORT | BasicBlock (const std::vector< triton::arch::Instruction > &instructions) |
| Constructor. | |
| TRITON_EXPORT | BasicBlock (const BasicBlock &other) |
| Constructor by copy. | |
| TRITON_EXPORT BasicBlock & | operator= (const BasicBlock &other) |
| Copies an BasicBlock. | |
| TRITON_EXPORT | ~BasicBlock () |
| Destructor. | |
| TRITON_EXPORT void | add (const Instruction &instruction) |
| Add an instruction to the block. | |
| TRITON_EXPORT bool | remove (triton::uint32 position) |
| Remove an instruction from the block at the given position. Returns true if success. | |
| TRITON_EXPORT std::vector< triton::arch::Instruction > & | getInstructions (void) |
| Gets all instructions of the block. | |
| TRITON_EXPORT triton::usize | getSize (void) const |
| Returns the number of instructions in the block. | |
| TRITON_EXPORT triton::uint64 | getFirstAddress (void) const |
| Returns the first instruction's address. | |
| TRITON_EXPORT triton::uint64 | getLastAddress (void) const |
| Returns the last instruction's address. | |
This class is used to represent a basic block.
Definition at line 38 of file basicBlock.hpp.
| triton::arch::BasicBlock::BasicBlock | ( | ) |
Constructor.
Definition at line 16 of file basicBlock.cpp.
| triton::arch::BasicBlock::BasicBlock | ( | const std::vector< triton::arch::Instruction > & | instructions | ) |
Constructor.
Definition at line 20 of file basicBlock.cpp.
| triton::arch::BasicBlock::BasicBlock | ( | const BasicBlock & | other | ) |
Constructor by copy.
Definition at line 25 of file basicBlock.cpp.
| triton::arch::BasicBlock::~BasicBlock | ( | ) |
Destructor.
Definition at line 36 of file basicBlock.cpp.
| void triton::arch::BasicBlock::add | ( | const Instruction & | instruction | ) |
Add an instruction to the block.
Definition at line 41 of file basicBlock.cpp.
| triton::uint64 triton::arch::BasicBlock::getFirstAddress | ( | void | ) | const |
Returns the first instruction's address.
Definition at line 68 of file basicBlock.cpp.
| std::vector< triton::arch::Instruction > & triton::arch::BasicBlock::getInstructions | ( | void | ) |
Gets all instructions of the block.
Definition at line 58 of file basicBlock.cpp.
| triton::uint64 triton::arch::BasicBlock::getLastAddress | ( | void | ) | const |
Returns the last instruction's address.
Definition at line 75 of file basicBlock.cpp.
| triton::usize triton::arch::BasicBlock::getSize | ( | void | ) | const |
Returns the number of instructions in the block.
Definition at line 63 of file basicBlock.cpp.
| BasicBlock & triton::arch::BasicBlock::operator= | ( | const BasicBlock & | other | ) |
Copies an BasicBlock.
Definition at line 30 of file basicBlock.cpp.
| bool triton::arch::BasicBlock::remove | ( | triton::uint32 | position | ) |
Remove an instruction from the block at the given position. Returns true if success.
Definition at line 50 of file basicBlock.cpp.