Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

#include <rutz/staticstack.h>

Collaboration diagram for rutz::static_stack< T, N >:

Collaboration graph
[legend]
List of all members.

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.

Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

 static_stack () throw ()
 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 ()


The documentation for this class was generated from the following file:
Generated on Mon Nov 23 15:57:26 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4