STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
const_iterator_ Class Reference

Const range-type iterator. More...

#include <ext/pb_ds/detail/unordered_iterator/const_iterator.hpp>

Inheritance diagram for const_iterator_:
point_const_iterator_ iterator_

Public Types

typedef std::forward_iterator_tag iterator_category
 Category. More...
 
typedef _Alloc::difference_type difference_type
 Difference type. More...
 
typedef value_type_ value_type
 Iterator's value type. More...
 
typedef pointer_ pointer
 Iterator's pointer type. More...
 
typedef const_pointer_ const_pointer
 Iterator's const pointer type. More...
 
typedef reference_ reference
 Iterator's reference type. More...
 
typedef const_reference_ const_reference
 Iterator's const reference type. More...
 
- Public Types inherited from point_const_iterator_
typedef trivial_iterator_tag iterator_category
 Category. More...
 
typedef
trivial_iterator_difference_type 
difference_type
 Difference type. More...
 
typedef value_type_ value_type
 Iterator's value type. More...
 
typedef pointer_ pointer
 Iterator's pointer type. More...
 
typedef const_pointer_ const_pointer
 Iterator's const pointer type. More...
 
typedef reference_ reference
 Iterator's reference type. More...
 
typedef const_reference_ const_reference
 Iterator's const reference type. More...
 

Public Member Functions

 const_iterator_ ()
 Default constructor. More...
 
const_iterator_operator++ ()
 Increments. More...
 
const_iterator_ operator++ (int)
 Increments. More...
 
- Public Member Functions inherited from point_const_iterator_
 point_const_iterator_ (const_pointer p_value)
 
 point_const_iterator_ ()
 Default constructor. More...
 
 point_const_iterator_ (const point_const_iterator_ &other)
 Copy constructor. More...
 
 point_const_iterator_ (const point_iterator_ &other)
 Copy constructor. More...
 
const_pointer operator-> () const
 Access. More...
 
const_reference 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...
 
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...
 

Protected Types

typedef point_const_iterator_ base_type
 

Protected Member Functions

 const_iterator_ (const_pointer_ p_value, PB_DS_GEN_POS pos, const PB_DS_CLASS_C_DEC *p_tbl)
 

Protected Attributes

const PB_DS_CLASS_C_DECm_p_tbl
 
PB_DS_GEN_POS m_pos
 
- Protected Attributes inherited from point_const_iterator_
const_pointer m_p_value
 

Friends

class PB_DS_CLASS_C_DEC
 

Detailed Description

Const range-type iterator.

Member Typedef Documentation

typedef const_pointer_ const_iterator_::const_pointer

Iterator's const pointer type.

typedef const_reference_ const_iterator_::const_reference

Iterator's const reference type.

typedef _Alloc::difference_type const_iterator_::difference_type

Difference type.

typedef std::forward_iterator_tag const_iterator_::iterator_category

Category.

typedef pointer_ const_iterator_::pointer

Iterator's pointer type.

typedef reference_ const_iterator_::reference

Iterator's reference type.

typedef value_type_ const_iterator_::value_type

Iterator's value type.

Constructor & Destructor Documentation

const_iterator_::const_iterator_ ( )
inline

Default constructor.

69  : m_p_tbl(0)
70  { }
const PB_DS_CLASS_C_DEC * m_p_tbl
Definition: const_iterator.hpp:106
const_iterator_::const_iterator_ ( const_pointer_  p_value,
PB_DS_GEN_POS  pos,
const 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.

99  : point_const_iterator_(p_value), m_p_tbl(p_tbl), m_pos(pos)
100  { }
point_const_iterator_()
Default constructor.
Definition: point_const_iterator.hpp:75
const PB_DS_CLASS_C_DEC * m_p_tbl
Definition: const_iterator.hpp:106
PB_DS_GEN_POS m_pos
Definition: const_iterator.hpp:108

Member Function Documentation

const_iterator_& const_iterator_::operator++ ( )
inline

Increments.

75  {
76  m_p_tbl->inc_it_state(base_type::m_p_value, m_pos);
77  return *this;
78  }
const_pointer m_p_value
Definition: point_const_iterator.hpp:127
const PB_DS_CLASS_C_DEC * m_p_tbl
Definition: const_iterator.hpp:106
PB_DS_GEN_POS m_pos
Definition: const_iterator.hpp:108
const_iterator_ const_iterator_::operator++ ( int  )
inline

Increments.

83  {
84  const_iterator_ ret =* this;
85  m_p_tbl->inc_it_state(base_type::m_p_value, m_pos);
86  return ret;
87  }
const_pointer m_p_value
Definition: point_const_iterator.hpp:127
Const range-type iterator.
Definition: const_iterator.hpp:43
const PB_DS_CLASS_C_DEC * m_p_tbl
Definition: const_iterator.hpp:106
PB_DS_GEN_POS m_pos
Definition: const_iterator.hpp:108

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
protected

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

PB_DS_GEN_POS const_iterator_::m_pos
protected

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