MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions
MathTL::MultiIndex< I, DIMENSION > Class Template Reference

#include <multiindex.h>

Inheritance diagram for MathTL::MultiIndex< I, DIMENSION >:
MathTL::FixedArray1D< I, DIMENSION >

List of all members.

Public Member Functions

 MultiIndex ()
 MultiIndex (const MultiIndex &lambda)
 MultiIndex (const I &i0)
 MultiIndex (const I &i0, const I &i1)
bool operator== (const MultiIndex &lambda) const
 check equality
bool operator!= (const MultiIndex &lambda) const
 check non-equality
bool operator< (const MultiIndex &lambda) const
bool lex (const MultiIndex &lambda) const
bool operator<= (const MultiIndex &lambda) const
 ordered by distance from 0
bool operator>= (const MultiIndex &lambda) const
 ordered by distance from 0
MultiIndexoperator++ ()
MultiIndex operator++ (int)
unsigned long int number ()

Detailed Description

template<class I, unsigned int DIMENSION>
class MathTL::MultiIndex< I, DIMENSION >

Template class for (homogeneous) multiindices of a priori known length with values in ^d. The class is designed to be used as index class in a std::map<I,.>. Values in ^d are not prohibited, but also not supported. The ordering and numbering will be wrong in this case!


Constructor & Destructor Documentation

template<class I , unsigned int DIMENSION>
MathTL::MultiIndex< I, DIMENSION >::MultiIndex ( )

default constructor, yields a zero multiindex

template<class I , unsigned int DIMENSION>
MathTL::MultiIndex< I, DIMENSION >::MultiIndex ( const MultiIndex< I, DIMENSION > &  lambda)

copy constructor

template<class I , unsigned int DIMENSION>
MathTL::MultiIndex< I, DIMENSION >::MultiIndex ( const I &  i0) [explicit]

constructor from a single index, this is only allowed for DIMENSION == 1

template<class I , unsigned int DIMENSION>
MathTL::MultiIndex< I, DIMENSION >::MultiIndex ( const I &  i0,
const I &  i1 
)

constructor from two single indices, this is only allowed for DIMENSION == 2


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations