tfel
Loading...
Searching...
No Matches
Promote.ixx File Reference

This file implement the Promote class. More...

#include <type_traits>

Classes

class  tfel::typetraits::internals::PromoteNumericsGreater_< A, B >
 An helper class which return the greatest type, ie the type which has the maximal positive value. More...
struct  tfel::typetraits::internals::PromoteNumericsGreater_< unsigned int, long unsigned int >
 Partial specialisation for unsigned int and long unsigned int. They can be the same type on some plateform, so the algorithm used in PromoteNumericsGreater_ can't tell which is the greatest one. More...
struct  tfel::typetraits::internals::PromoteNumericsGreater_< long unsigned int, unsigned int >
 Partial specialisation for long unsigned int and unsigned int. They can be the same type on some plateform, so the algorithm used in PromoteNumericsGreater_ can't tell which is the greatest one. More...
struct  tfel::typetraits::internals::PromoteNumericsGreater_< int, long int >
 Partial specialisation for int and long int. They can be the same type on some plateform, so the algorithm used in PromoteNumericsGreater_ can't tell which is the greatest one. More...
struct  tfel::typetraits::internals::PromoteNumericsGreater_< long int, int >
 Partial specialisation for long int and int. They can be the same type on some plateform, so the algorithm used in PromoteNumericsGreater_ can't tell which is the greatest one. More...
struct  tfel::typetraits::internals::Promote_< short >
 Partial specialisation for short. More...
struct  tfel::typetraits::internals::Promote_< unsigned short >
 Partial specialisation for unsigned short. More...
struct  tfel::typetraits::internals::Promote_< int >
 Partial specialisation for int. More...
struct  tfel::typetraits::internals::Promote_< unsigned int >
 Partial specialisation for unsigned int. More...
struct  tfel::typetraits::internals::Promote_< long int >
 Partial specialisation for long int. More...
struct  tfel::typetraits::internals::Promote_< long unsigned int >
 Partial specialisation for long unsigned int. More...
struct  tfel::typetraits::internals::Promote_< float >
 Partial specialisation for float. More...
struct  tfel::typetraits::internals::Promote_< double >
 Partial specialisation for double. More...
struct  tfel::typetraits::internals::Promote_< long double >
 Partial specialisation for long double. long double is supposed to be the greatest numerical type. More...
struct  tfel::typetraits::internals::ChooseType< A, B, true, true >
 Partial specialisation. More...
struct  tfel::typetraits::internals::ChooseType< A, B, false, false >
 Partial specialisation. More...
struct  tfel::typetraits::internals::ChooseType< A, B, true, false >
 Partial specialisation. More...
struct  tfel::typetraits::internals::ChooseType< A, B, false, true >
 Partial specialisation. More...
struct  tfel::typetraits::Promote< A, A >
 Partial specialisation: each type is promoted to itself This is not necessary but may hopefully decrease compile time. More...
class  tfel::typetraits::Promote< A, B >
 Returns the greater type able to contain the type A and B. More...
struct  tfel::typetraits::Promote< tfel::math::Complex< A >, B >
struct  tfel::typetraits::Promote< A, tfel::math::Complex< B > >
struct  tfel::typetraits::Promote< tfel::math::Complex< A >, tfel::math::Complex< B > >
struct  tfel::typetraits::Promote< tfel::math::Complex< A >, tfel::math::Complex< A > >
 Specialisation for Complex type. This specialisation was necessary to disambiguate things. More...

Namespaces

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

Macros

#define LIB_TFEL_PROMOTEIXX
#define TFEL_MATH_CHOOSETYPE(X)
 An helper macro to specialise ChooseType.

Functions

 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (unsigned short)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (unsigned int)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (long unsigned int)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (short)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (int)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (long int)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (float)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (double)
 tfel::typetraits::internals::TFEL_MATH_CHOOSETYPE (long double)

Detailed Description

This file implement the Promote class.

Author
Thomas Helfer
Date
02 jun 2006

Macro Definition Documentation

◆ TFEL_MATH_CHOOSETYPE

#define TFEL_MATH_CHOOSETYPE ( X)
Value:
\
template <> \
struct ChooseType<long double, X, true, false> { \ \
using type = long double; \
}; \
\ \
template <> \
struct ChooseType<X, long double, false, true> { \ \
using type = long double; \
}

An helper macro to specialise ChooseType.

Author
Thomas Helfer
Date
01 Sept 2006