Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
MapIterator Class Reference

An iterator over SymbolEntry objects in multiple address spaces. More...

#include <database.hh>

Public Member Functions

 MapIterator (const vector< EntryMap * > *m, vector< EntryMap * >::const_iterator cm, list< SymbolEntry >::const_iterator ci)
 Construct iterator at a specific position. More...
 
 MapIterator (const MapIterator &op2)
 Copy constructor.
 
MapIteratoroperator++ (void)
 Pre-increment the iterator. More...
 
MapIterator operator++ (int4 i)
 Post-increment the iterator. More...
 
MapIteratoroperator= (const MapIterator &op2)
 Assignment operator.
 
bool operator== (const MapIterator &op2) const
 Equality operator.
 
bool operator!= (const MapIterator &op2) const
 Inequality operator.
 

Detailed Description

An iterator over SymbolEntry objects in multiple address spaces.

Given an EntryMap (a rangemap of SymbolEntry objects in a single address space) for each address space, iterator over all the SymbolEntry objects

Constructor & Destructor Documentation

◆ MapIterator()

MapIterator::MapIterator ( const vector< EntryMap * > *  m,
vector< EntryMap * >::const_iterator  cm,
list< SymbolEntry >::const_iterator  ci 
)
inline

Construct iterator at a specific position.

Parameters
mis the list of EntryMaps
cmis the position of the iterator within the EntryMap list
ciis the position of the iterator within the specific EntryMap

Member Function Documentation

◆ operator++() [1/2]

MapIterator MapIterator::operator++ ( int4  i)

Post-increment the iterator.

The iterator is advanced by one

Parameters
iis a dummy variable
Returns
a copy of the iterator before it was advanced

◆ operator++() [2/2]

MapIterator & MapIterator::operator++ ( void  )

Pre-increment the iterator.

The iterator is advanced by one

Returns
a reference to the (advanced) iterator

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