IDA Domain
Names::Iterator Class Reference

Iterator for named elements (e.g., labels, symbols) in the IDA database. More...

#include <name.hpp>

Public Member Functions

 Iterator (const Database &database)
 Constructs a names iterator for the given database. More...
 
std::pair< ea_t, std::string > get_first ()
 Retrieves the first named element in the database. More...
 
std::pair< ea_t, std::string > get_next ()
 Retrieves the next named element in the database. More...
 

Detailed Description

Iterator for named elements (e.g., labels, symbols) in the IDA database.

Constructor & Destructor Documentation

◆ Iterator()

Names::Iterator::Iterator ( const Database database)
inline

Constructs a names iterator for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_first()

std::pair<ea_t, std::string> Names::Iterator::get_first ( )

Retrieves the first named element in the database.

Returns
A pair (effective address, name string). If none found, the string is empty.

◆ get_next()

std::pair<ea_t, std::string> Names::Iterator::get_next ( )

Retrieves the next named element in the database.

Returns
A pair (effective address, name string). If no more names, the string is empty.

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