The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::TieredMap< KeyT, ValT >::iterator Class Reference

Iterator for walking contents of this map. More...

#include <TieredMap.hpp>

Public Types

typedef std::vector< std::unique_ptr< pair_t > >::iterator internal_iter
 

Public Member Functions

 iterator (internal_iter itr)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator= (const iterator &rhp)
 
bool operator== (const iterator &rhp) const
 
bool operator!= (const iterator &rhp) const
 
bool operator== (const const_iterator &rhp) const
 
bool operator!= (const const_iterator &rhp) const
 
ValT & operator* ()
 
const ValT & operator* () const
 
ValT * operator-> ()
 
const ValT * operator-> () const
 

Friends

class const_iterator
 

Detailed Description

template<typename KeyT = uint64_t, typename ValT = void*>
class sparta::TieredMap< KeyT, ValT >::iterator

Iterator for walking contents of this map.

Internally increments and compares a std::vector iterator

Definition at line 74 of file TieredMap.hpp.

Member Typedef Documentation

◆ internal_iter

template<typename KeyT = uint64_t, typename ValT = void*>
typedef std::vector<std::unique_ptr<pair_t>>::iterator sparta::TieredMap< KeyT, ValT >::iterator::internal_iter

Definition at line 76 of file TieredMap.hpp.

Constructor & Destructor Documentation

◆ iterator()

template<typename KeyT = uint64_t, typename ValT = void*>
sparta::TieredMap< KeyT, ValT >::iterator::iterator ( internal_iter  itr)
inline

Definition at line 78 of file TieredMap.hpp.

Member Function Documentation

◆ operator!=() [1/2]

template<typename KeyT = uint64_t, typename ValT = void*>
bool sparta::TieredMap< KeyT, ValT >::iterator::operator!= ( const const_iterator rhp) const
inline

Definition at line 102 of file TieredMap.hpp.

◆ operator!=() [2/2]

template<typename KeyT = uint64_t, typename ValT = void*>
bool sparta::TieredMap< KeyT, ValT >::iterator::operator!= ( const iterator rhp) const
inline

Definition at line 94 of file TieredMap.hpp.

◆ operator*() [1/2]

template<typename KeyT = uint64_t, typename ValT = void*>
ValT & sparta::TieredMap< KeyT, ValT >::iterator::operator* ( )
inline

Definition at line 106 of file TieredMap.hpp.

◆ operator*() [2/2]

template<typename KeyT = uint64_t, typename ValT = void*>
const ValT & sparta::TieredMap< KeyT, ValT >::iterator::operator* ( ) const
inline

Definition at line 107 of file TieredMap.hpp.

◆ operator++() [1/2]

template<typename KeyT = uint64_t, typename ValT = void*>
iterator & sparta::TieredMap< KeyT, ValT >::iterator::operator++ ( )
inline

Definition at line 82 of file TieredMap.hpp.

◆ operator++() [2/2]

template<typename KeyT = uint64_t, typename ValT = void*>
iterator sparta::TieredMap< KeyT, ValT >::iterator::operator++ ( int  )
inline

Definition at line 83 of file TieredMap.hpp.

◆ operator->() [1/2]

template<typename KeyT = uint64_t, typename ValT = void*>
ValT * sparta::TieredMap< KeyT, ValT >::iterator::operator-> ( )
inline

Definition at line 109 of file TieredMap.hpp.

◆ operator->() [2/2]

template<typename KeyT = uint64_t, typename ValT = void*>
const ValT * sparta::TieredMap< KeyT, ValT >::iterator::operator-> ( ) const
inline

Definition at line 110 of file TieredMap.hpp.

◆ operator=()

template<typename KeyT = uint64_t, typename ValT = void*>
iterator & sparta::TieredMap< KeyT, ValT >::iterator::operator= ( const iterator rhp)
inline

Definition at line 85 of file TieredMap.hpp.

◆ operator==() [1/2]

template<typename KeyT = uint64_t, typename ValT = void*>
bool sparta::TieredMap< KeyT, ValT >::iterator::operator== ( const const_iterator rhp) const
inline

Definition at line 98 of file TieredMap.hpp.

◆ operator==() [2/2]

template<typename KeyT = uint64_t, typename ValT = void*>
bool sparta::TieredMap< KeyT, ValT >::iterator::operator== ( const iterator rhp) const
inline

Definition at line 90 of file TieredMap.hpp.

Friends And Related Symbol Documentation

◆ const_iterator

template<typename KeyT = uint64_t, typename ValT = void*>
friend class const_iterator
friend

Definition at line 112 of file TieredMap.hpp.


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