IDA Domain
Xrefs Class Reference

Provides access to cross-reference (xref) analysis in the IDA database. More...

#include <xref.hpp>

Classes

class  FromIterator
 Iterator for outgoing cross-references (from the specified address). More...
 
class  Iterator
 Base class for cross-reference iterators. More...
 
class  ToIterator
 Iterator for incoming cross-references (to the specified address). More...
 

Public Member Functions

 Xrefs (const Database &database)
 Constructs an xrefs handler for the given database. More...
 
ToIterator get_to (const ea_t ea) const
 Creates an iterator over all xrefs pointing to a given address. More...
 
FromIterator get_from (const ea_t ea) const
 Creates an iterator over all xrefs originating from a given address. More...
 

Detailed Description

Provides access to cross-reference (xref) analysis in the IDA database.

Constructor & Destructor Documentation

◆ Xrefs()

Xrefs::Xrefs ( const Database database)
inline

Constructs an xrefs handler for the given database.

Parameters
databaseReference to the active IDA database.

Member Function Documentation

◆ get_from()

FromIterator Xrefs::get_from ( const ea_t  ea) const
inline

Creates an iterator over all xrefs originating from a given address.

Parameters
eaSource effective address.
Returns
An iterator over outgoing xrefs.

◆ get_to()

ToIterator Xrefs::get_to ( const ea_t  ea) const
inline

Creates an iterator over all xrefs pointing to a given address.

Parameters
eaTarget effective address.
Returns
An iterator over incoming xrefs.

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