src/Utility/DiscType.h File Reference

#include "Utility/Pstring.h"
#include "AppTypes/Vektor.h"
#include "AppTypes/Tenzor.h"
#include "AppTypes/SymTenzor.h"
#include "AppTypes/AntiSymTenzor.h"
#include "AppTypes/dcomplex.h"

Include dependency graph for DiscType.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DiscTypeBase
struct  DiscType< T >

Defines

#define DEFINE_DISCTYPE_SCALAR(TYPE, STRING)
#define DEFINE_DISCTYPE_APPTYPE(TYPE, STRING)


Define Documentation

#define DEFINE_DISCTYPE_APPTYPE TYPE,
STRING   ) 
 

Value:

template<class T, unsigned D>                           \
struct DiscType< TYPE<T, D> > : public DiscTypeBase {   \
  static string str() {                                 \
    CTAssert(D < 10);                                   \
    string retval = STRING;                             \
    retval += "0";                                      \
    retval += DiscType<T>::str();                       \
    retval[1] += D;                                     \
    return retval;                                      \
  }                                                     \
};

Definition at line 150 of file DiscType.h.

#define DEFINE_DISCTYPE_SCALAR TYPE,
STRING   ) 
 

Value:

template<>                                              \
struct DiscType< TYPE > : public DiscTypeBase {         \
  static string str() { return string(STRING); }        \
};

Definition at line 117 of file DiscType.h.


Generated on Mon Jan 16 14:24:08 2006 for IPPL by  doxygen 1.4.6