Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

base_list< T >::const_iterator Class Reference

const interator More...

#include <list.h>

Inheritance diagram for base_list< T >::const_iterator:

base_list< T >::iterator

List of all members.

Public Types

typedef
std::bidirectional_iterator_tag 
iterator_category
typedef size_t size_type
typedef T * pointer
typedef const T * const_pointer
typedef T & reference
typedef const T & const_reference
typedef T value_type
typedef size_t difference_type

Public Member Functions

 const_iterator (_node *p)
 constructor
 const_iterator (const iterator &x)
 constructor
const T & operator* () const
 operator *
const T * operator-> () const
 operator ->
const_iterator operator++ ()
 operator ++()
const_iterator operator++ (int)
 operator ++(int)
const_iterator operator-- ()
 operator --()
const_iterator operator-- (int)
 operator --(int)
bool operator== (const const_iterator &x) const
 equal operator
bool operator!= (const const_iterator &x) const
 non equal operator
_nodenext () const
 gets next node
_nodeprev () const
 gets previous node
_nodenode () const
 gets current node

Protected Attributes

_node_ptr
 pointer to node


Detailed Description

template<class T>
class base_list< T >::const_iterator

const interator

Definition at line 121 of file list.h.


Member Typedef Documentation

template<class T>
typedef std::bidirectional_iterator_tag base_list< T >::const_iterator::iterator_category

Definition at line 125 of file list.h.

template<class T>
typedef size_t base_list< T >::const_iterator::size_type

Definition at line 127 of file list.h.

template<class T>
typedef T* base_list< T >::const_iterator::pointer

Definition at line 129 of file list.h.

template<class T>
typedef const T* base_list< T >::const_iterator::const_pointer

Definition at line 131 of file list.h.

template<class T>
typedef T& base_list< T >::const_iterator::reference

Definition at line 133 of file list.h.

template<class T>
typedef const T& base_list< T >::const_iterator::const_reference

Definition at line 135 of file list.h.

template<class T>
typedef T base_list< T >::const_iterator::value_type

Definition at line 137 of file list.h.

template<class T>
typedef size_t base_list< T >::const_iterator::difference_type

Definition at line 139 of file list.h.


Constructor & Destructor Documentation

template<class T>
base_list< T >::const_iterator::const_iterator ( _node p  )  [inline]

constructor

Parameters:
p  pointer to node

Definition at line 143 of file list.h.

template<class T>
base_list< T >::const_iterator::const_iterator ( const iterator x  )  [inline]

constructor

Parameters:
x  non const interator

Definition at line 147 of file list.h.


Member Function Documentation

template<class T>
const T& base_list< T >::const_iterator::operator* (  )  const [inline]

operator *

Reimplemented in base_list< T >::iterator.

Definition at line 152 of file list.h.

References base_list< T >::const_iterator::_ptr, and base_list< T >::_node::_value.

template<class T>
const T* base_list< T >::const_iterator::operator-> (  )  const [inline]

operator ->

Reimplemented in base_list< T >::iterator.

Definition at line 159 of file list.h.

References base_list< T >::const_iterator::_ptr, and base_list< T >::_node::_value.

template<class T>
const_iterator base_list< T >::const_iterator::operator++ (  )  [inline]

template<class T>
const_iterator base_list< T >::const_iterator::operator++ ( int   )  [inline]

template<class T>
const_iterator base_list< T >::const_iterator::operator-- (  )  [inline]

template<class T>
const_iterator base_list< T >::const_iterator::operator-- ( int   )  [inline]

template<class T>
bool base_list< T >::const_iterator::operator== ( const const_iterator x  )  const [inline]

equal operator

Definition at line 200 of file list.h.

References base_list< T >::const_iterator::_ptr.

template<class T>
bool base_list< T >::const_iterator::operator!= ( const const_iterator x  )  const [inline]

non equal operator

Definition at line 207 of file list.h.

References base_list< T >::const_iterator::_ptr.

template<class T>
_node* base_list< T >::const_iterator::next (  )  const [inline]

gets next node

Definition at line 214 of file list.h.

References base_list< T >::_node_::_next, and base_list< T >::const_iterator::_ptr.

template<class T>
_node* base_list< T >::const_iterator::prev (  )  const [inline]

gets previous node

Definition at line 221 of file list.h.

References base_list< T >::_node_::_prev, and base_list< T >::const_iterator::_ptr.

template<class T>
_node* base_list< T >::const_iterator::node (  )  const [inline]

gets current node

Definition at line 228 of file list.h.

References base_list< T >::const_iterator::_ptr.


Member Data Documentation


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


© Copyright Terimber 2003-.