GCC Middle and Back End API Reference
safe_iterator< T > Class Template Reference

#include <iterator-utils.h>

Public Member Functions

bool operator== (const safe_iterator &other) const
 
bool operator!= (const safe_iterator &other) const
 
T::value_type operator* () const
 
safe_iteratoroperator++ ()
 
safe_iterator operator++ (int)
 
 safe_iterator (T iter, T end)
 

Private Member Functions

T get_next ()
 
void advance ()
 

Private Attributes

T m_current
 
const T m_end
 
T m_next
 

Constructor & Destructor Documentation

◆ safe_iterator()

template<typename T >
safe_iterator< T >::safe_iterator ( T iter,
T end )
inline

Member Function Documentation

◆ advance()

◆ get_next()

template<typename T >
T safe_iterator< T >::get_next ( )
inlineprivate

◆ operator!=()

template<typename T >
bool safe_iterator< T >::operator!= ( const safe_iterator< T > & other) const
inline

◆ operator*()

template<typename T >
T::value_type safe_iterator< T >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename T >
safe_iterator & safe_iterator< T >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename T >
safe_iterator safe_iterator< T >::operator++ ( int )
inline

◆ operator==()

template<typename T >
bool safe_iterator< T >::operator== ( const safe_iterator< T > & other) const
inline

Field Documentation

◆ m_current

◆ m_end

template<typename T >
const T safe_iterator< T >::m_end
private

◆ m_next

template<typename T >
T safe_iterator< T >::m_next
private

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