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

Common::FixedStack< T, MAX_SIZE > Class Template Reference

Extremly simple fixed size stack class. More...

#include <stack.h>

Inheritance diagram for Common::FixedStack< T, MAX_SIZE >:
Collaboration diagram for Common::FixedStack< T, MAX_SIZE >:

List of all members.

Public Types

typedef uint size_type

Public Member Functions

 FixedStack ()
bool empty () const
void clear ()
void push (const T &x)
const T & top () const
T & top ()
pop ()
size_type size () const
T & operator[] (size_type i)
const T & operator[] (size_type i) const

Protected Attributes

_stack [MAX_SIZE]
size_type _size

Detailed Description

template<class T, uint MAX_SIZE = 10>
class Common::FixedStack< T, MAX_SIZE >

Extremly simple fixed size stack class.

Definition at line 35 of file stack.h.


Member Typedef Documentation

template<class T, uint MAX_SIZE = 10>
typedef uint Common::FixedStack< T, MAX_SIZE >::size_type

Definition at line 37 of file stack.h.


Constructor & Destructor Documentation

template<class T, uint MAX_SIZE = 10>
Common::FixedStack< T, MAX_SIZE >::FixedStack (  )  [inline]

Member Function Documentation

template<class T, uint MAX_SIZE = 10>
void Common::FixedStack< T, MAX_SIZE >::clear (  )  [inline]

Definition at line 45 of file stack.h.

template<class T, uint MAX_SIZE = 10>
bool Common::FixedStack< T, MAX_SIZE >::empty (  )  const [inline]

Definition at line 41 of file stack.h.

template<class T, uint MAX_SIZE = 10>
const T& Common::FixedStack< T, MAX_SIZE >::operator[] ( size_type  i  )  const [inline]

Definition at line 79 of file stack.h.

template<class T, uint MAX_SIZE = 10>
T& Common::FixedStack< T, MAX_SIZE >::operator[] ( size_type  i  )  [inline]

Definition at line 74 of file stack.h.

template<class T, uint MAX_SIZE = 10>
T Common::FixedStack< T, MAX_SIZE >::pop (  )  [inline]

Definition at line 64 of file stack.h.

template<class T, uint MAX_SIZE = 10>
void Common::FixedStack< T, MAX_SIZE >::push ( const T &  x  )  [inline]

Definition at line 49 of file stack.h.

template<class T, uint MAX_SIZE = 10>
size_type Common::FixedStack< T, MAX_SIZE >::size (  )  const [inline]

Definition at line 70 of file stack.h.

template<class T, uint MAX_SIZE = 10>
T& Common::FixedStack< T, MAX_SIZE >::top (  )  [inline]

Definition at line 59 of file stack.h.

template<class T, uint MAX_SIZE = 10>
const T& Common::FixedStack< T, MAX_SIZE >::top (  )  const [inline]

Definition at line 54 of file stack.h.


Member Data Documentation

template<class T, uint MAX_SIZE = 10>
size_type Common::FixedStack< T, MAX_SIZE >::_size [protected]

Definition at line 86 of file stack.h.

template<class T, uint MAX_SIZE = 10>
T Common::FixedStack< T, MAX_SIZE >::_stack[MAX_SIZE] [protected]

Definition at line 85 of file stack.h.


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


Generated on Sat Nov 16 2019 05:02:52 for ResidualVM by doxygen 1.7.1
curved edge   curved edge