tfel
Loading...
Searching...
No Matches
GenTypeBase.ixx File Reference
#include <ostream>

Classes

struct  tfel::utilities::internals::GenTypeBaseApply< T, List, N >
struct  tfel::utilities::internals::GenTypeBaseApplyII< T, List, N, M >

Namespaces

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

Functions

template<typename T, typename List>
T::return_type tfel::utilities::apply (const GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (T &, const GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (const GenTypeBase< List > &, const GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (T &, const GenTypeBase< List > &, const GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (T &, GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (GenTypeBase< List > &, GenTypeBase< List > &)
template<typename T, typename List>
T::return_type tfel::utilities::apply (T &, GenTypeBase< List > &, GenTypeBase< List > &)
template<typename List>
std::ostream & tfel::utilities::operator<< (std::ostream &os, const GenTypeBase< List > &g)

Detailed Description

Author
Thomas Helfer
Date
05/02/2008

Function Documentation

◆ apply() [1/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( const GenTypeBase< List > & v)

Apply function T::apply to a GenTypeBase for the type holded by the GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
v: GenTypeBase class argument.
Precondition
class T must contain a static function name 'apply' for each type in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.

◆ apply() [2/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( const GenTypeBase< List > & v1,
const GenTypeBase< List > & v2 )

Apply function T::apply to a GenTypeBase for the types holded by the two GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
v1: GenTypeBase class argument.
v2: GenTypeBase class argument.
Precondition
class T must contain a static function name 'apply' for each pair of types in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if one of the GenTypeBase does not hold any object.

◆ apply() [3/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( GenTypeBase< List > & v)

Apply function T::apply to a GenTypeBase for the type holded by the GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
v: GenTypeBase class argument.
Precondition
class T must contain a static function name 'apply' for each type in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.

◆ apply() [4/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( GenTypeBase< List > & v1,
GenTypeBase< List > & v2 )

Apply function T::apply to a GenTypeBase for the types holded by the two GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
v1: GenTypeBase class argument.
v2: GenTypeBase class argument.
Precondition
class T must contain a static function name 'apply' for each pair of types in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if one of the GenTypeBase does not hold any object.

◆ apply() [5/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( T & f,
const GenTypeBase< List > & v )

Apply functor T to a GenTypeBase for the type holded by the GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
f: functor.
v: GenTypeBase class argument.
Precondition
class T must contain the opertor () for each type in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.

◆ apply() [6/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( T & f,
const GenTypeBase< List > & v1,
const GenTypeBase< List > & v2 )

Apply functor T to a GenTypeBase for the types holded by the two GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
f: functor.
v1: GenTypeBase class argument.
v2: GenTypeBase class argument.
Precondition
class T must contain the opertor () for each pair of types in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.

◆ apply() [7/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( T & f,
GenTypeBase< List > & v )

Apply functor T to a GenTypeBase for the type holded by the GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
f: functor.
v: GenTypeBase class argument.
Precondition
class T must contain the opertor () for each type in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.

◆ apply() [8/8]

template<typename T, typename List>
T::return_type tfel::utilities::apply ( T & f,
GenTypeBase< List > & v1,
GenTypeBase< List > & v2 )

Apply functor T to a GenTypeBase for the types holded by the two GenTypeBase.

Parameters
T: class containing the function to be applied.
List: list of types contained in the GenTypeBase class.
f: functor.
v1: GenTypeBase class argument.
v2: GenTypeBase class argument.
Precondition
class T must contain the opertor () for each pair of types in List.
class T must define 'return_type' as a class or a typedef.
Exceptions
aGenTypeCastError if the GenTypeBase does not hold any object.