IDA Domain
Instructions::Iterator Class Reference

Iterator for instructions within a specified address range. More...

#include <instruction.hpp>

Public Member Functions

 Iterator (const Database &database, const ea_t start_ea, const ea_t end_ea)
 Constructs an instructions iterator for the specified range. More...
 
std::pair< bool, insn_t > get_first ()
 Retrieves the first instruction in the range. More...
 
std::pair< bool, insn_t > get_next ()
 Retrieves the next instruction in the range. More...
 

Detailed Description

Iterator for instructions within a specified address range.

Constructor & Destructor Documentation

◆ Iterator()

Instructions::Iterator::Iterator ( const Database database,
const ea_t  start_ea,
const ea_t  end_ea 
)
inline

Constructs an instructions iterator for the specified range.

Parameters
databaseReference to the active IDA database.
start_eaStart address of the range.
end_eaEnd address of the range.

Member Function Documentation

◆ get_first()

std::pair<bool, insn_t> Instructions::Iterator::get_first ( )

Retrieves the first instruction in the range.

Returns
A pair <bool, insn_t>. If decoding fails, the bool is false.

◆ get_next()

std::pair<bool, insn_t> Instructions::Iterator::get_next ( )

Retrieves the next instruction in the range.

Returns
A pair <bool, insn_t>. If decoding fails, the bool is false.

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