blocxx
|
#include <Stack.hpp>
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 |
typedef Array<T>::const_reference BLOCXX_NAMESPACE::Stack< T >::const_reference |
Reimplemented from BLOCXX_NAMESPACE::Array< T >.
typedef Array<T>::reference BLOCXX_NAMESPACE::Stack< T >::reference |
Reimplemented from BLOCXX_NAMESPACE::Array< T >.
typedef Array<T>::size_type BLOCXX_NAMESPACE::Stack< T >::size_type |
Reimplemented from BLOCXX_NAMESPACE::Array< T >.
BLOCXX_NAMESPACE::Stack< T >::Stack | ( | ) | [inline] |
bool BLOCXX_NAMESPACE::Stack< T >::empty | ( | ) | const [inline] |
Reimplemented from BLOCXX_NAMESPACE::Array< T >.
Definition at line 56 of file Stack.hpp.
References BLOCXX_NAMESPACE::Stack< T >::size().
void BLOCXX_NAMESPACE::Stack< T >::pop | ( | ) | [inline] |
Definition at line 59 of file Stack.hpp.
References BLOCXX_NAMESPACE::Array< T >::pop_back().
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().
int BLOCXX_NAMESPACE::Stack< T >::search | ( | const T & | x | ) | const [inline] |
Definition at line 61 of file Stack.hpp.
References BLOCXX_NAMESPACE::Array< T >::find(), i, and BLOCXX_NAMESPACE::Stack< T >::size().
size_type BLOCXX_NAMESPACE::Stack< T >::size | ( | ) | const [inline] |
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().
const_reference BLOCXX_NAMESPACE::Stack< T >::top | ( | ) | const [inline] |
Definition at line 58 of file Stack.hpp.
References BLOCXX_NAMESPACE::Array< T >::back().
reference BLOCXX_NAMESPACE::Stack< T >::top | ( | ) | [inline] |
Definition at line 57 of file Stack.hpp.
References BLOCXX_NAMESPACE::Array< T >::back().