IDA Domain
Types Class Reference

Provides access to type information and manipulation in the IDA database. More...

#include <type.hpp>

Classes

class  Iterator
 Iterator for user-defined types in the IDA type system. More...
 

Public Member Functions

 Types (const Database &database)
 Constructs a types handler for the given database. More...
 
std::pair< bool, std::string > get_type_name (const ea_t ea) const
 Retrieves the type information of the item at the given address. More...
 
bool apply_named_type (const ea_t ea, const std::string &type) const
 Applies a named type to the given address. More...
 
Iterator get_all () const
 Retrieves an iterator over all user-defined types in the database. More...
 

Detailed Description

Provides access to type information and manipulation in the IDA database.

Constructor & Destructor Documentation

◆ Types()

Types::Types ( const Database database)
inline

Constructs a types handler for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ apply_named_type()

bool Types::apply_named_type ( const ea_t  ea,
const std::string &  type 
) const

Applies a named type to the given address.

Parameters
eaThe effective address.
typeThe name of the type to apply.
Returns
True if the type was applied successfully, false otherwise.

◆ get_all()

Iterator Types::get_all ( ) const
inline

Retrieves an iterator over all user-defined types in the database.

Returns
A TypesIterator instance.

◆ get_type_name()

std::pair<bool, std::string> Types::get_type_name ( const ea_t  ea) const

Retrieves the type information of the item at the given address.

Parameters
eaThe effective address.
Returns
A pair (success, string representing the type name). If not found, success is false.

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