decompiler  1.0.0
Public Member Functions | Private Attributes | List of all members
MapIterator Class Reference

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

#include <database.hh>

Public Member Functions

 MapIterator (void)
 Construct an uninitialized iterator.
 
 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.
 
const SymbolEntryoperator * (void) const
 Return the SymbolEntry being pointed at.
 
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.
 

Private Attributes

const vector< EntryMap * > * map
 The list of EntryMaps, one per address space.
 
vector< EntryMap * >::const_iterator curmap
 Current EntryMap being iterated.
 
list< SymbolEntry >::const_iterator curiter
 Current SymbolEntry being iterated.
 

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

References curiter, curmap, and map.

Member Function Documentation

◆ operator++() [1/2]

MapIterator & MapIterator::operator++ ( void  )

Pre-increment the iterator.

The iterator is advanced by one

Returns
a reference to the (advanced) iterator

References curiter, curmap, and map.

◆ operator++() [2/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

References curiter, curmap, and map.


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