Jpp test-rotations-old-533-g2bdbdb559
the software that should make you happy
Loading...
Searching...
No Matches
JUnity.hh File Reference

Definition of unity value for any class. More...

#include <type_traits>

Go to the source code of this file.

Classes

struct  JMATH::JUnityHelper< T, bool >
 Auxiliary class for obtaining unity values of a given data type. More...
 
struct  JMATH::JUnityHelper< T, true >
 Partial template specialisation for integral types. More...
 
struct  JMATH::JUnity
 Auxiliary class to assign unity value. More...
 

Namespaces

namespace  JMATH
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

template<class T >
JMATH::getUnity ()
 Get unity value for a given data type.
 
template<>
bool JMATH::getUnity< bool > ()
 Get unity value for bool.
 
template<>
float JMATH::getUnity< float > ()
 Get unity value for float.
 
template<>
double JMATH::getUnity< double > ()
 Get unity value for double.
 
template<>
long double JMATH::getUnity< long double > ()
 Get unity value for long double.
 

Variables

static const JUnity JMATH::unity
 Function object to assign unity value.
 

Detailed Description

Definition of unity value for any class.

Author
bjung

Definition in file JUnity.hh.