|
Sacado Package Browser (Single Doxygen Collection) Version of the Day
|


Go to the source code of this file.
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::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::ScalarValue< T > |
| Base template specification for ScalarValue. More... | |
| struct | Sacado::MarkConstant< T > |
| Base template specification for marking constants. More... | |
| struct | Sacado::StringName< T > |
| Base template specification for string names of types. More... | |
| struct | Sacado::IsEqual< T > |
| Base template specification for testing equivalence. More... | |
| struct | Sacado::IsStaticallySized< T > |
| Base template specification for testing whether type is statically sized. More... | |
Namespaces | |
| namespace | Sacado |
Abstract class that provides access to a parameter value in a code for the parameter library. An object of this type is required to construct a ParameterRegistration object. | |
Defines | |
| #define | SACADO_PROMOTE_SPECIALIZATION(type1, type2, type3) |
| Specialization of Promote to builtin types. | |
| #define | SACADO_BUILTIN_SPECIALIZATION(t, NAME) |
| Specialization of above classes to builtin types. | |
| #define SACADO_PROMOTE_SPECIALIZATION | ( | type1, | |
| type2, | |||
| type3 | |||
| ) |
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 76 of file Sacado_Traits.hpp.
| #define SACADO_BUILTIN_SPECIALIZATION | ( | t, | |
| NAME | |||
| ) |
template <> struct ScalarType< t > { \ typedef t type; \ }; \ template <> struct ValueType< 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; } \ }; \ template <> struct ScalarValue< t > { \ static const t& eval(const t& x) { return x; } \ }; \ template <> struct StringName< t > { \ static std::string eval() { return NAME; } \ }; \ template <> struct IsEqual< t > { \ static bool eval(const t& x, const t& y) { \ return x == y; } \ }; \ template <> struct IsStaticallySized< t > { \ static const bool value = true; \ };
Specialization of above classes to builtin types.
Definition at line 158 of file Sacado_Traits.hpp.
1.7.4