ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Stack< T > Class Template Reference

Variable size stack class, implemented using our Array class. More...

#include <stack.h>

Inheritance diagram for Common::Stack< T >:

List of all members.

Public Types

typedef Array< T >::size_type size_type

Public Member Functions

 Stack ()
 Stack (const Array< T > &stackContent)
bool empty () const
void clear ()
void push (const T &x)
T & top ()
const T & top () const
pop ()
size_type size () const
T & operator[] (size_type i)
const T & operator[] (size_type i) const

Private Attributes

Array< T > _stack

Detailed Description

template<class T>
class Common::Stack< T >

Variable size stack class, implemented using our Array class.

Definition at line 94 of file stack.h.


Member Typedef Documentation

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

Definition at line 99 of file stack.h.


Constructor & Destructor Documentation

template<class T>
Common::Stack< T >::Stack (  )  [inline]
template<class T>
Common::Stack< T >::Stack ( const Array< T > &  stackContent  )  [inline]

Member Function Documentation

template<class T>
void Common::Stack< T >::clear (  )  [inline]

Definition at line 108 of file stack.h.

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

Definition at line 104 of file stack.h.

template<class T>
const T& Common::Stack< T >::operator[] ( size_type  i  )  const [inline]

Definition at line 138 of file stack.h.

template<class T>
T& Common::Stack< T >::operator[] ( size_type  i  )  [inline]

Definition at line 134 of file stack.h.

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

Definition at line 124 of file stack.h.

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

Definition at line 112 of file stack.h.

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

Definition at line 130 of file stack.h.

template<class T>
const T& Common::Stack< T >::top (  )  const [inline]

Definition at line 120 of file stack.h.

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

Definition at line 116 of file stack.h.


Member Data Documentation

template<class T>
Array<T> Common::Stack< T >::_stack [private]

Definition at line 96 of file stack.h.


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


Generated on Sat May 18 2019 05:06:07 for ResidualVM by doxygen 1.7.1
curved edge   curved edge