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 > Class Template Reference

class provides the stack functionality More...

#include <stack.h>

Inheritance diagram for base_stack< T >:

_stack< T, A > stack< T >

List of all members.

Public Member Functions

bool empty () const
 check empty, use instead of size
const T & top () const
 returns const top element function doesn't check boundaries
T & top ()
 returns top element function doesn't check boundaries
TYPENAME base_stack< T >
::const_iterator 
begin () const
 returns begin const iterator
TYPENAME base_stack< T >::iterator begin ()
 returns begin iterator
TYPENAME base_stack< T >
::const_iterator 
end () const
 returns end const iterator
TYPENAME base_stack< T >::iterator end ()
 returns end iterator
void clear ()
 clears stack

Protected Member Functions

 base_stack ()
 constructor
 ~base_stack ()
 destructor
 base_stack (const base_stack< T > &x)
 copy constructor
TYPENAME base_stack< T >::_nodehead ()
 returns pointer to head
TYPENAME base_stack< T >::_nodehead () const
 returns pointer to head (const)

Protected Attributes

TYPENAME base_stack< T >::_node_ _head
 store only head of stack

Classes

class  _node
 list node More...
class  _node_
 internal help class More...
class  const_iterator
 most of STL algorithms are supported More...
class  iterator
 non const iterator More...


Detailed Description

template<class T>
class base_stack< T >

class provides the stack functionality

Definition at line 39 of file stack.h.


Constructor & Destructor Documentation

template<class T>
BEGIN_TERIMBER_NAMESPACE base_stack< T >::base_stack (  )  [inline, protected]

constructor

Definition at line 42 of file stack.hpp.

References base_stack< T >::clear().

template<class T>
base_stack< T >::~base_stack (  )  [inline, protected]

destructor

Definition at line 52 of file stack.hpp.

template<class T>
base_stack< T >::base_stack ( const base_stack< T > &  x  )  [protected]

copy constructor


Member Function Documentation

template<class T>
T & base_stack< T >::top (  )  [inline]

returns top element function doesn't check boundaries

Definition at line 84 of file stack.hpp.

References base_stack< T >::_head, base_stack< T >::_node_::_next, and base_stack< T >::_node::_value.

template<class T>
TYPENAME base_stack< T >::const_iterator base_stack< T >::begin (  )  const [inline]

returns begin const iterator

Definition at line 92 of file stack.hpp.

References base_stack< T >::_head, and base_stack< T >::_node_::_next.

Referenced by stack< T >::clear(), stack< T >::operator=(), and _stack< T, A >::size().

template<class T>
TYPENAME base_stack< T >::iterator base_stack< T >::begin (  )  [inline]

returns begin iterator

Definition at line 100 of file stack.hpp.

References base_stack< T >::_head, and base_stack< T >::_node_::_next.

template<class T>
TYPENAME base_stack< T >::const_iterator base_stack< T >::end (  )  const [inline]

template<class T>
TYPENAME base_stack< T >::iterator base_stack< T >::end (  )  [inline]

returns end iterator

Definition at line 116 of file stack.hpp.

References base_stack< T >::head().

template<class T>
TYPENAME base_stack< T >::_node * base_stack< T >::head (  )  [inline, protected]

returns pointer to head

Definition at line 132 of file stack.hpp.

References base_stack< T >::_head, and TYPENAME.

Referenced by base_stack< T >::clear(), base_stack< T >::empty(), and base_stack< T >::end().

template<class T>
TYPENAME base_stack< T >::_node * base_stack< T >::head (  )  const [inline, protected]

returns pointer to head (const)

Definition at line 140 of file stack.hpp.

References base_stack< T >::_head, and TYPENAME.


Member Data Documentation


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


© Copyright Terimber 2003-.