IDA Domain
Xrefs::ToIterator Class Reference

Iterator for incoming cross-references (to the specified address). More...

#include <xref.hpp>

+ Inheritance diagram for Xrefs::ToIterator:
+ Collaboration diagram for Xrefs::ToIterator:

Public Member Functions

 ToIterator (const Database &database, const ea_t ea)
 Constructs an iterator for cross-references to a given address. More...
 
std::pair< bool, xrefblk_t > get_first ()
 Retrieves the first incoming xref. More...
 
std::pair< bool, xrefblk_t > get_next ()
 Retrieves the next incoming xref. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Xrefs::Iterator
 Iterator (const Database &database, const ea_t ea)
 
- Protected Attributes inherited from Xrefs::Iterator
const Databasem_database
 
const ea_t m_ea
 
xrefblk_t m_xrefblk
 

Detailed Description

Iterator for incoming cross-references (to the specified address).

Constructor & Destructor Documentation

◆ ToIterator()

Xrefs::ToIterator::ToIterator ( const Database database,
const ea_t  ea 
)
inline

Constructs an iterator for cross-references to a given address.

Parameters
databaseReference to the active IDA database.
eaThe target effective address.

Member Function Documentation

◆ get_first()

std::pair<bool, xrefblk_t> Xrefs::ToIterator::get_first ( )

Retrieves the first incoming xref.

Returns
A pair <bool, xrefblk_t>. The bool is false if no xref is found.

◆ get_next()

std::pair<bool, xrefblk_t> Xrefs::ToIterator::get_next ( )

Retrieves the next incoming xref.

Returns
A pair <bool, xrefblk_t>. The bool is false if no more xrefs exist.

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