libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Public Member Functions | List of all members
triton::arch::BasicBlock Class Reference

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 BasicBlockoperator= (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.
 

Detailed Description

This class is used to represent a basic block.

Definition at line 38 of file basicBlock.hpp.

Constructor & Destructor Documentation

◆ BasicBlock() [1/3]

triton::arch::BasicBlock::BasicBlock ( )

Constructor.

Definition at line 16 of file basicBlock.cpp.

◆ BasicBlock() [2/3]

triton::arch::BasicBlock::BasicBlock ( const std::vector< triton::arch::Instruction > & instructions)

Constructor.

Definition at line 20 of file basicBlock.cpp.

◆ BasicBlock() [3/3]

triton::arch::BasicBlock::BasicBlock ( const BasicBlock & other)

Constructor by copy.

Definition at line 25 of file basicBlock.cpp.

◆ ~BasicBlock()

triton::arch::BasicBlock::~BasicBlock ( )

Destructor.

Definition at line 36 of file basicBlock.cpp.

Member Function Documentation

◆ add()

void triton::arch::BasicBlock::add ( const Instruction & instruction)

Add an instruction to the block.

Definition at line 41 of file basicBlock.cpp.

◆ getFirstAddress()

triton::uint64 triton::arch::BasicBlock::getFirstAddress ( void ) const

Returns the first instruction's address.

Definition at line 68 of file basicBlock.cpp.

◆ getInstructions()

std::vector< triton::arch::Instruction > & triton::arch::BasicBlock::getInstructions ( void )

Gets all instructions of the block.

Definition at line 58 of file basicBlock.cpp.

◆ getLastAddress()

triton::uint64 triton::arch::BasicBlock::getLastAddress ( void ) const

Returns the last instruction's address.

Definition at line 75 of file basicBlock.cpp.

◆ getSize()

triton::usize triton::arch::BasicBlock::getSize ( void ) const

Returns the number of instructions in the block.

Definition at line 63 of file basicBlock.cpp.

◆ operator=()

BasicBlock & triton::arch::BasicBlock::operator= ( const BasicBlock & other)

Copies an BasicBlock.

Definition at line 30 of file basicBlock.cpp.

◆ remove()

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.


The documentation for this class was generated from the following files: