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_stack< T >::const_iterator Class Reference

most of STL algorithms are supported More...

#include <stack.h>

Inheritance diagram for base_stack< T >::const_iterator:

base_stack< T >::iterator

List of all members.

Public Types

typedef std::forward_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)
 copy constructor
const T & operator* () const
 operator*
const T * operator-> () const
 operator->
const_iterator operator++ ()
 operator++
const_iterator operator++ (int)
 operator++(int)
bool operator== (const const_iterator &x) const
 operator==
bool operator!= (const const_iterator &x) const
 operator!=
_nodenext () const
 gets next node
_nodenode () const
 gets node pointer

Protected Attributes

_node_ptr
 pointer to node


Detailed Description

template<class T>
class base_stack< T >::const_iterator

most of STL algorithms are supported

Definition at line 101 of file stack.h.


Member Typedef Documentation

template<class T>
typedef std::forward_iterator_tag base_stack< T >::const_iterator::iterator_category

Definition at line 105 of file stack.h.

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

Definition at line 107 of file stack.h.

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

Definition at line 109 of file stack.h.

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

Definition at line 111 of file stack.h.

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

Definition at line 113 of file stack.h.

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

Definition at line 115 of file stack.h.

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

Definition at line 117 of file stack.h.

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

Definition at line 119 of file stack.h.


Constructor & Destructor Documentation

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

constructor

Parameters:
p  pointer to node

Definition at line 123 of file stack.h.

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

copy constructor

Definition at line 130 of file stack.h.


Member Function Documentation

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

operator*

Reimplemented in base_stack< T >::iterator.

Definition at line 137 of file stack.h.

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

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

operator->

Reimplemented in base_stack< T >::iterator.

Definition at line 144 of file stack.h.

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

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

operator++

Reimplemented in base_stack< T >::iterator.

Definition at line 151 of file stack.h.

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

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

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

operator==

Definition at line 168 of file stack.h.

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

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

operator!=

Definition at line 175 of file stack.h.

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

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

gets next node

Definition at line 182 of file stack.h.

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

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

gets node pointer

Definition at line 189 of file stack.h.

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


Member Data Documentation


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


© Copyright Terimber 2003-.