#include <stackvector.h>
Public Member Functions | |
StackVector () | |
Type & | operator[] (unsigned i) |
Type | operator[] (unsigned i) const |
unsigned | size () |
~StackVector () | |
void | operator= (Type type) |
Private Attributes | |
Type | data [dim] |
Definition at line 9 of file stackvector.h.
StackVector< dim, Type >::StackVector | ( | ) | [inline] |
Definition at line 16 of file stackvector.h.
StackVector< dim, Type >::~StackVector | ( | ) | [inline] |
Definition at line 20 of file stackvector.h.
void StackVector< dim, Type >::operator= | ( | Type | type | ) | [inline] |
Definition at line 21 of file stackvector.h.
00022 { 00023 for (unsigned i=0;i<dim;i++) 00024 data[i]=type; 00025 }
Type StackVector< dim, Type >::operator[] | ( | unsigned | i | ) | const [inline] |
Definition at line 18 of file stackvector.h.
00018 {assert(i<dim);return data[i];}
Type& StackVector< dim, Type >::operator[] | ( | unsigned | i | ) | [inline] |
Definition at line 17 of file stackvector.h.
00017 {assert(i<dim);return data[i];}
unsigned StackVector< dim, Type >::size | ( | ) | [inline] |
Definition at line 19 of file stackvector.h.
Type StackVector< dim, Type >::data[dim] [private] |
Definition at line 12 of file stackvector.h.