IDA Domain
Names Class Reference

Provides access to symbol and label management in the IDA database. More...

#include <name.hpp>

Classes

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

Public Member Functions

 Names (const Database &database)
 Constructs a names handler for the given database. More...
 
std::pair< bool, std::string > get_at (const ea_t ea) const
 Retrieves the name at the specified address. More...
 
int get_count () const
 Retrieves the total number of named elements in the database. More...
 
std::pair< ea_t, std::string > get_at_index (int index) const
 Retrieves the named element at the specified index. More...
 
Iterator get_all () const
 Returns an iterator over all named elements in the database. More...
 

Detailed Description

Provides access to symbol and label management in the IDA database.

Constructor & Destructor Documentation

◆ Names()

Names::Names ( const Database database)
inline

Constructs a names handler for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_all()

Iterator Names::get_all ( ) const
inline

Returns an iterator over all named elements in the database.

Returns
A names iterator.

◆ get_at()

std::pair<bool, std::string> Names::get_at ( const ea_t  ea) const

Retrieves the name at the specified address.

Parameters
eaThe effective address.
Returns
A pair (bool success, name string). If the name doesn't exist, bool is false.

◆ get_at_index()

std::pair<ea_t, std::string> Names::get_at_index ( int  index) const

Retrieves the named element at the specified index.

Parameters
indexThe index in the name list.
Returns
A pair (effective address, name string) at the given index.

◆ get_count()

int Names::get_count ( ) const

Retrieves the total number of named elements in the database.

Returns
The count of named elements.

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