IDA Domain
BasicBlocks Class Reference

Interface for working with basic blocks in functions. More...

#include <basic_block.hpp>

Classes

class  Iterator
 Iterator for basic blocks in a function. More...
 

Public Member Functions

 BasicBlocks (const Database &database)
 Constructs a basic block handler for the given database. More...
 
Instructions::Iterator get_instructions (const qbasic_block_t &block) const
 Retrieves the instructions within a given basic block. More...
 
Iterator get_between (const ea_t start_ea, const ea_t end_ea) const
 Retrieves all basic blocks between two addresses. More...
 

Detailed Description

Interface for working with basic blocks in functions.

Constructor & Destructor Documentation

◆ BasicBlocks()

BasicBlocks::BasicBlocks ( const Database database)
inline

Constructs a basic block handler for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_between()

Iterator BasicBlocks::get_between ( const ea_t  start_ea,
const ea_t  end_ea 
) const
inline

Retrieves all basic blocks between two addresses.

Parameters
start_eaStart address of the range.
end_eaEnd address of the range.
Returns
A basic block iterator.

◆ get_instructions()

Instructions::Iterator BasicBlocks::get_instructions ( const qbasic_block_t &  block) const

Retrieves the instructions within a given basic block.

Parameters
blockThe basic block.
Returns
An instruction iterator for the block.

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