tfel
Loading...
Searching...
No Matches
AbsType.hxx File Reference

This file declares the AbsType traits class and specialises it for standard numeric types. More...

Classes

struct  tfel::typetraits::AbsType< T >
 Traits class which associates to its argument the type returned by the abs() function. More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Macros

#define TFEL_TYPETRAITS_ABSTYPE(X)
 An helper macro to specialise AbsType for each standard "real" numeric types.
#define TFEL_TYPETRAITS_ABSTYPEII(X)
 An helper macro to specialise AbsType for each standard "complex" numeric types.

Functions

 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPE (float)
 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPE (double)
 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPE (long double)
 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPEII (float)
 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPEII (double)
 tfel::typetraits::TFEL_TYPETRAITS_ABSTYPEII (long double)

Detailed Description

This file declares the AbsType traits class and specialises it for standard numeric types.

Author
Thomas Helfer
Date
10/09/2012

Macro Definition Documentation

◆ TFEL_TYPETRAITS_ABSTYPE

#define TFEL_TYPETRAITS_ABSTYPE ( X)
Value:
\
template <> \
struct AbsType<X> { \
typedef X type; \
}

An helper macro to specialise AbsType for each standard "real" numeric types.

Author
Thomas Helfer
Date
10/09/2012

◆ TFEL_TYPETRAITS_ABSTYPEII

#define TFEL_TYPETRAITS_ABSTYPEII ( X)
Value:
\
template <> \
struct AbsType<tfel::math::Complex<X>> { \
typedef tfel::typetraits::RealPartType<X>::type type; \
}
the namespace tfel encloses all the TFEL project. This namespace is empty.
Definition Substitutions-defines.hxx:16

An helper macro to specialise AbsType for each standard "complex" numeric types.

Author
Thomas Helfer
Date
10/09/2012