GCC Middle and Back End API Reference
ordered_hash_map< KeyId, Value, Traits >::iterator Class Reference

#include <ordered-hash-map.h>

Collaboration diagram for ordered_hash_map< KeyId, Value, Traits >::iterator:

Data Structures

struct  reference_pair
 

Public Member Functions

 iterator (const ordered_hash_map &map, unsigned idx)
 
iteratoroperator++ ()
 
reference_pair operator* ()
 
bool operator!= (const iterator &other) const
 
bool valid_index_p () const
 

Data Fields

const ordered_hash_mapm_ordered_hash_map
 
unsigned m_idx
 

Constructor & Destructor Documentation

◆ iterator()

template<typename KeyId, typename Value, typename Traits>
ordered_hash_map< KeyId, Value, Traits >::iterator::iterator ( const ordered_hash_map & map,
unsigned idx )
inlineexplicit

Member Function Documentation

◆ operator!=()

template<typename KeyId, typename Value, typename Traits>
bool ordered_hash_map< KeyId, Value, Traits >::iterator::operator!= ( const iterator & other) const
inline

References iterator(), and m_idx.

◆ operator*()

template<typename KeyId, typename Value, typename Traits>
reference_pair ordered_hash_map< KeyId, Value, Traits >::iterator::operator* ( )
inline

◆ operator++()

template<typename KeyId, typename Value, typename Traits>
iterator & ordered_hash_map< KeyId, Value, Traits >::iterator::operator++ ( )
inline

References iterator(), m_idx, and valid_index_p().

◆ valid_index_p()

template<typename KeyId, typename Value, typename Traits>
bool ordered_hash_map< KeyId, Value, Traits >::iterator::valid_index_p ( ) const
inline

Field Documentation

◆ m_idx

template<typename KeyId, typename Value, typename Traits>
unsigned ordered_hash_map< KeyId, Value, Traits >::iterator::m_idx

◆ m_ordered_hash_map

template<typename KeyId, typename Value, typename Traits>
const ordered_hash_map& ordered_hash_map< KeyId, Value, Traits >::iterator::m_ordered_hash_map

Referenced by iterator(), operator*(), and valid_index_p().


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