GNU g++  v5.2.1
GNU Standard C++
iterator_ Class Reference

Range-type iterator. More...

#include <iterator.hpp>

Inheritance diagram for iterator_:
Collaboration diagram for iterator_:

Public Types

typedef const_pointer_ const_pointer
 Iterator's const pointer type. More...
 
typedef const_reference_ const_reference
 Iterator's const reference type. More...
 
typedef _Alloc::difference_type difference_type
 Difference type. More...
 
typedef std::forward_iterator_tag iterator_category
 Category. More...
 
typedef pointer_ pointer
 Iterator's pointer type. More...
 
typedef reference_ reference
 Iterator's reference type. More...
 
typedef value_type_ value_type
 Iterator's value type. More...
 

Public Member Functions

 iterator_ ()
 Default constructor. More...
 
 operator const point_iterator_ () const
 Conversion to a point-type iterator. More...
 
 operator point_iterator_ ()
 Conversion to a point-type iterator. More...
 
bool operator!= (const point_iterator_ &other) const
 Compares content (negatively) to a different iterator object. More...
 
bool operator!= (const point_const_iterator_ &other) const
 Compares content (negatively) to a different iterator object. More...
 
reference operator* () const
 Access. More...
 
iterator_operator++ ()
 Increments. More...
 
iterator_ operator++ (int)
 Increments. More...
 
pointer operator-> () const
 Access. More...
 
bool operator== (const point_iterator_ &other) const
 Compares content to a different iterator object. More...
 
bool operator== (const point_const_iterator_ &other) const
 Compares content to a different iterator object. More...
 

Protected Types

typedef const_iterator_ base_type
 

Protected Member Functions

 iterator_ (pointer p_value, PB_DS_GEN_POS pos, PB_DS_CLASS_C_DEC *p_tbl)
 Constructor used by the table to initiate the generalized pointer and position (e.g., this is called from within a find() of a table. More...
 

Protected Attributes

const PB_DS_CLASS_C_DECm_p_tbl
 Pointer to the table object which created the iterator (used for incrementing its position. More...
 
const_pointer m_p_value
 
PB_DS_GEN_POS m_pos
 

Friends

class PB_DS_CLASS_C_DEC
 

Detailed Description

Range-type iterator.

Member Typedef Documentation

typedef const_pointer_ iterator_::const_pointer

Iterator's const pointer type.

typedef const_reference_ iterator_::const_reference

Iterator's const reference type.

typedef _Alloc::difference_type iterator_::difference_type

Difference type.

typedef std::forward_iterator_tag iterator_::iterator_category

Category.

typedef pointer_ iterator_::pointer

Iterator's pointer type.

typedef reference_ iterator_::reference

Iterator's reference type.

typedef value_type_ iterator_::value_type

Iterator's value type.

Constructor & Destructor Documentation

iterator_::iterator_ ( )
inline

Default constructor.

iterator_::iterator_ ( pointer  p_value,
PB_DS_GEN_POS  pos,
PB_DS_CLASS_C_DEC p_tbl 
)
inlineprotected

Constructor used by the table to initiate the generalized pointer and position (e.g., this is called from within a find() of a table.

Member Function Documentation

iterator_::operator const point_iterator_ ( ) const
inline

Conversion to a point-type iterator.

References point_const_iterator_::m_p_value, and point_const_iterator_::point_iterator_.

iterator_::operator point_iterator_ ( )
inline

Conversion to a point-type iterator.

References point_const_iterator_::m_p_value, and point_const_iterator_::point_iterator_.

bool point_const_iterator_::operator!= ( const point_iterator_ other) const
inlineinherited

Compares content (negatively) to a different iterator object.

References point_iterator_::m_p_value, and point_const_iterator_::m_p_value.

bool point_const_iterator_::operator!= ( const point_const_iterator_ other) const
inlineinherited

Compares content (negatively) to a different iterator object.

References point_const_iterator_::m_p_value.

reference iterator_::operator* ( ) const
inline
iterator_& iterator_::operator++ ( )
inline
iterator_ iterator_::operator++ ( int  )
inline
pointer iterator_::operator-> ( ) const
inline
bool point_const_iterator_::operator== ( const point_iterator_ other) const
inlineinherited

Compares content to a different iterator object.

References point_iterator_::m_p_value, and point_const_iterator_::m_p_value.

bool point_const_iterator_::operator== ( const point_const_iterator_ other) const
inlineinherited

Compares content to a different iterator object.

References point_const_iterator_::m_p_value.

Friends And Related Function Documentation

friend class PB_DS_CLASS_C_DEC
friend

Member Data Documentation

const PB_DS_CLASS_C_DEC* const_iterator_::m_p_tbl
protectedinherited

Pointer to the table object which created the iterator (used for incrementing its position.

Referenced by const_iterator_::operator++(), and operator++().

PB_DS_GEN_POS const_iterator_::m_pos
protectedinherited

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