ScummVM API documentation
Common::FixedStack< T, MAX_SIZE > Class Template Reference

#include <stack.h>

Public Types

typedef uint size_type
 

Public Member Functions

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 >

Extremely simple fixed size stack class.


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