rutz::static_stack< T, N > Class Template Reference

STL-style class for fixed-size stacks whose size is known at compile time. More...

#include <rutz/staticstack.h>

Collaboration diagram for rutz::static_stack< T, N >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

 static_stack (const static_stack &other) throw ()
static_stackoperator= (const static_stack &other) throw ()
unsigned int size () const throw ()
bool push (T p) throw ()
void pop () throw ()
top () const throw ()
at (unsigned int i) const throw ()
operator[] (unsigned int i) const throw ()
iterator begin () throw ()
iterator end () throw ()
const_iterator begin () const throw ()
const_iterator end () const throw ()

Static Public Member Functions

static unsigned int capacity () throw ()

Detailed Description

template<typename T, unsigned int N>
class rutz::static_stack< T, N >

STL-style class for fixed-size stacks whose size is known at compile time.

Because this class doesn't rely on dynamically-allocated memory, it can be both highly efficient and exception-safe.

Definition at line 46 of file staticstack.h.


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:44:44 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3