BLOCXX_NAMESPACE::Stack< T > Class Template Reference

#include <Stack.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::Stack< T >:

BLOCXX_NAMESPACE::Array< T >

List of all members.

Public Types

typedef Array< T >::size_type size_type
typedef Array< T >::reference reference
typedef Array< T >::const_reference const_reference

Public Member Functions

 Stack ()
bool empty () const
reference top ()
const_reference top () const
void pop ()
void push (const T &x)
int search (const T &x) const
size_type size () const


Detailed Description

template<class T>
class BLOCXX_NAMESPACE::Stack< T >

Definition at line 49 of file Stack.hpp.


Member Typedef Documentation

template<class T>
typedef Array<T>::size_type BLOCXX_NAMESPACE::Stack< T >::size_type

Reimplemented from BLOCXX_NAMESPACE::Array< T >.

Definition at line 52 of file Stack.hpp.

template<class T>
typedef Array<T>::reference BLOCXX_NAMESPACE::Stack< T >::reference

Reimplemented from BLOCXX_NAMESPACE::Array< T >.

Definition at line 53 of file Stack.hpp.

template<class T>
typedef Array<T>::const_reference BLOCXX_NAMESPACE::Stack< T >::const_reference

Reimplemented from BLOCXX_NAMESPACE::Array< T >.

Definition at line 54 of file Stack.hpp.


Constructor & Destructor Documentation

template<class T>
BLOCXX_NAMESPACE::Stack< T >::Stack (  )  [inline]

Definition at line 55 of file Stack.hpp.


Member Function Documentation

template<class T>
bool BLOCXX_NAMESPACE::Stack< T >::empty (  )  const [inline]

Returns:
true if the Array is empty (contains zero elements)

Reimplemented from BLOCXX_NAMESPACE::Array< T >.

Definition at line 56 of file Stack.hpp.

References BLOCXX_NAMESPACE::Stack< T >::size().

template<class T>
reference BLOCXX_NAMESPACE::Stack< T >::top (  )  [inline]

Definition at line 57 of file Stack.hpp.

References BLOCXX_NAMESPACE::Array< T >::back().

template<class T>
const_reference BLOCXX_NAMESPACE::Stack< T >::top (  )  const [inline]

Definition at line 58 of file Stack.hpp.

References BLOCXX_NAMESPACE::Array< T >::back().

template<class T>
void BLOCXX_NAMESPACE::Stack< T >::pop (  )  [inline]

Definition at line 59 of file Stack.hpp.

References BLOCXX_NAMESPACE::Array< T >::pop_back().

template<class T>
void BLOCXX_NAMESPACE::Stack< T >::push ( const T &  x  )  [inline]

Definition at line 60 of file Stack.hpp.

References BLOCXX_NAMESPACE::Array< T >::push_back().

template<class T>
int BLOCXX_NAMESPACE::Stack< T >::search ( const T &  x  )  const [inline]

template<class T>
size_type BLOCXX_NAMESPACE::Stack< T >::size (  )  const [inline]

Returns:
The number of elements in the Array

Reimplemented from BLOCXX_NAMESPACE::Array< T >.

Definition at line 66 of file Stack.hpp.

Referenced by BLOCXX_NAMESPACE::Stack< T >::empty(), and BLOCXX_NAMESPACE::Stack< T >::search().


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

Generated on Wed Feb 25 19:05:14 2009 for blocxx by  doxygen 1.5.6