DomainChangeDim< T, Dim > Struct Template Reference
DomainChangeDim is a struct which is templated on a domain of type T, which has some original number of dimensions oldDim, and a new number of dimensions Dim.
More...
#include <DomainTraits.h>
List of all members.
Detailed Description
template<class T, int Dim>
struct DomainChangeDim< T, Dim >
DomainChangeDim is a struct which is templated on a domain of type T, which has some original number of dimensions oldDim, and a new number of dimensions Dim.
It is used to determine a new domain type which is of the same basic type but with a different number of dimensions (basically, it changes the dimension of T from oldDim --> Dim). It should define the following typedefs and static data:
- typedef ... OldType_t; // the previous domain type, T<oldDim>
- typedef ... NewType_t; // the new domain type, T<Dim>
- static const int oldDim = ... ; // the original number of dimensions
- static const int newDim = Dim; // the new number of dimensions
We define here the basic form of the struct, but empty. Specialized domain types such define a partially specialized version of this struct with the above typedefs and static data relevant to that domain type.
Member Typedef Documentation
template<class T, int Dim>
template<class T, int Dim>
Member Enumeration Documentation
template<class T, int Dim>
The documentation for this struct was generated from the following file: