Sacado_Traits.hpp File Reference

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

Go to the source code of this file.

Namespaces

namespace  Sacado

Classes

struct  Sacado::Promote< A, B >
 Base template specification for Promote. More...
struct  Sacado::Promote< A, A >
 Specialization of Promote for a single type. More...
struct  Sacado::ScalarType< T >
 Base template specification for ScalarType. More...
struct  Sacado::ValueType< T >
 Base template specification for ValueType. More...
struct  Sacado::ScalarValueType< T >
 Base template specification for ScalarValueType. More...
struct  Sacado::IsADType< T >
 Base template specification for IsADType. More...
struct  Sacado::IsScalarType< T >
 Base template specification for IsScalarType. More...
struct  Sacado::Value< T >
 Base template specification for Value. More...
struct  Sacado::MarkConstant< T >
 Base template specification for marking constants. More...

Defines

#define SACADO_PROMOTE_SPECIALIZATION(type1, type2, type3)
 Specialization of Promote to builtin types.
#define SACADO_BUILTIN_SPECIALIZATION(t)
 Specialization of above classes to builtin types.


Define Documentation

#define SACADO_PROMOTE_SPECIALIZATION ( type1,
type2,
type3   ) 

Value:

template <> struct Promote< type1, type2 > {       \
    typedef type3 type;                        \
  };                 \
  template <> struct Promote< type2, type1 > {       \
    typedef type3 type;                  \
  };
Specialization of Promote to builtin types.

Definition at line 69 of file Sacado_Traits.hpp.

#define SACADO_BUILTIN_SPECIALIZATION ( t   ) 

Value:

template <> struct ScalarType< t > {              \
    typedef t type;                 \
  };                                                      \
  template <> struct ValueType< t > {             \
    typedef t type;                 \
  };                                                      \
  template <> struct ScalarValueType< t > {     \
    typedef t type;                 \
  };                                                      \
  template <> struct IsADType< t > {              \
    static const bool value = false;              \
  };                                                      \
  template <> struct IsScalarType< t > {            \
    static const bool value = true;             \
  };                                                      \
  template <> struct Value< t > {             \
    static const t& eval(const t& x) { return x; }        \
  };
Specialization of above classes to builtin types.

Definition at line 132 of file Sacado_Traits.hpp.


Generated on Tue Oct 20 12:55:11 2009 for Sacado Package Browser (Single Doxygen Collection) by doxygen 1.4.7