![]() |
ATLAS Offline Software
|
an algorithm to provide an efficient way to pass a parameter: by value for scalars (arithmetic types and pointers), by reference for compound objects.Derived from Loki library More...
#include <type_tools.h>
Public Types | |
typedef std::conditional< s_isScalar, T, TRef >::type | ref_type |
typedef std::conditional< s_isScalar, T, const T & >::type | const_type |
typedef std::conditional< s_isScalar, T, T * >::type | ptr_type |
typedef const_type | type |
Private Types | |
typedef std::add_lvalue_reference< T >::type | TRef |
typedef const TRef | const_TRef |
Static Private Attributes | |
static const bool | s_isScalar = std::is_scalar<T>::value |
an algorithm to provide an efficient way to pass a parameter: by value for scalars (arithmetic types and pointers), by reference for compound objects.Derived from Loki library
Definition at line 30 of file type_tools.h.
|
private |
Definition at line 33 of file type_tools.h.
typedef std::conditional<s_isScalar,T,const T&>::type type_tools::Parameter< T >::const_type |
Definition at line 37 of file type_tools.h.
typedef std::conditional<s_isScalar,T,T*>::type type_tools::Parameter< T >::ptr_type |
Definition at line 38 of file type_tools.h.
typedef std::conditional<s_isScalar,T,TRef>::type type_tools::Parameter< T >::ref_type |
Definition at line 36 of file type_tools.h.
|
private |
Definition at line 32 of file type_tools.h.
typedef const_type type_tools::Parameter< T >::type |
Definition at line 39 of file type_tools.h.
|
staticprivate |
Definition at line 34 of file type_tools.h.