StackVector< dim, Type > Class Template Reference

#include <stackvector.h>

Inheritance diagram for StackVector< dim, Type >:
Inheritance graph
[legend]
Collaboration diagram for StackVector< dim, Type >:
Collaboration graph
[legend]

List of all members.

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]

Detailed Description

template<int dim, class Type>
class StackVector< dim, Type >

StackVector

Definition at line 9 of file stackvector.h.


Constructor & Destructor Documentation

template<int dim, class Type>
StackVector< dim, Type >::StackVector (  )  [inline]

Definition at line 16 of file stackvector.h.

00016 {}

template<int dim, class Type>
StackVector< dim, Type >::~StackVector (  )  [inline]

Definition at line 20 of file stackvector.h.

00020 {}


Member Function Documentation

template<int dim, class Type>
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     }

template<int dim, class Type>
Type StackVector< dim, Type >::operator[] ( unsigned  i  )  const [inline]

Definition at line 18 of file stackvector.h.

00018 {assert(i<dim);return data[i];} 

template<int dim, class Type>
Type& StackVector< dim, Type >::operator[] ( unsigned  i  )  [inline]

Definition at line 17 of file stackvector.h.

00017 {assert(i<dim);return data[i];}

template<int dim, class Type>
unsigned StackVector< dim, Type >::size (  )  [inline]

Definition at line 19 of file stackvector.h.

00019 {return dim;}


Member Data Documentation

template<int dim, class Type>
Type StackVector< dim, Type >::data[dim] [private]

Definition at line 12 of file stackvector.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:29 2012 for CO2INJECTION by  doxygen 1.6.3