flavour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
std::multivector< T, N > Class Template Reference

A vector of vectors of vectors of... (N times) of class T objects. More...

#include <multivector.h>

Inheritance diagram for std::multivector< T, N >:
Collaboration diagram for std::multivector< T, N >:

Public Types

typedef vector< multivector< T,
N-1 > > 
v
 

Public Member Functions

 multivector ()
 Default constructor. More...
 
 multivector (const multivector &m)
 Copy constructor. More...
 
 multivector (const T &value,...)
 Recommended constructor. More...
 
 multivector (const T &value, va_list &listPointer)
 Auxiliary constructor (recursive) More...
 

Detailed Description

template<class T, int N>
class std::multivector< T, N >

A vector of vectors of vectors of... (N times) of class T objects.

Definition at line 8 of file multivector.h.

Member Typedef Documentation

template<class T, int N>
typedef vector< multivector< T,N-1> > std::multivector< T, N >::v

Definition at line 10 of file multivector.h.

Constructor & Destructor Documentation

template<class T, int N>
std::multivector< T, N >::multivector ( )
inline

Default constructor.

Definition at line 13 of file multivector.h.

template<class T, int N>
std::multivector< T, N >::multivector ( const multivector< T, N > &  m)
inline

Copy constructor.

Definition at line 15 of file multivector.h.

template<class T, int N>
std::multivector< T, N >::multivector ( const T &  value,
  ... 
)
inline

Recommended constructor.

Example: multivector<double, 2> m(1.5,4,6), m is a matrix of doubles with dimensions 4x6, with all doubles initialized to 1.5

Parameters
valuethe value with which every objects are initialized
...list with the number of dimensions of each vector
See also
multivector(const T&, va_list &)

Definition at line 22 of file multivector.h.

template<class T, int N>
std::multivector< T, N >::multivector ( const T &  value,
va_list &  listPointer 
)
inline

Auxiliary constructor (recursive)

See also
multivector(const T&, ...)
multivector<T,1>

Definition at line 34 of file multivector.h.


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