Jpp
Static Public Attributes | Static Protected Member Functions | Static Private Member Functions | List of all members
JLANG::JLOCAL::JComparisonAvailable< T, JType_t > Class Template Reference

Test availability of comparison operators of non-composite data types. More...

#include <JComparisonAvailable.hh>

Inheritance diagram for JLANG::JLOCAL::JComparisonAvailable< T, JType_t >:
JLANG::JTest

Static Public Attributes

static const bool has_eq = JTEST(test(getReference() == getReference()))
 true if operator== available; else false More...
 
static const bool has_ne = JTEST(test(getReference() != getReference()))
 true if operator!= available; else false More...
 
static const bool has_lt = JTEST(test(getReference() < getReference()))
 true if operator< available; else false More...
 
static const bool has_gt = JTEST(test(getReference() > getReference()))
 true if operator> available; else false More...
 
static const bool has_le = JTEST(test(getReference() <= getReference()))
 true if operator<= available; else false More...
 
static const bool has_ge = JTEST(test(getReference() >= getReference()))
 true if operator>= available; else false More...
 

Static Protected Member Functions

static JFalse test (...)
 default false More...
 

Static Private Member Functions

static JTrue test (const bool &)
 
static T & getReference ()
 
static JFalse test (...)
 default false More...
 
template<class __T__ >
static JFalse test (...)
 default false More...
 

Detailed Description

template<class T, class JType_t = void>
class JLANG::JLOCAL::JComparisonAvailable< T, JType_t >

Test availability of comparison operators of non-composite data types.

Definition at line 37 of file JComparisonAvailable.hh.

Member Function Documentation

◆ test() [1/4]

template<class T, class JType_t = void>
static JTrue JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::test ( const bool &  )
staticprivate

◆ getReference()

template<class T, class JType_t = void>
static T& JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::getReference ( )
staticprivate

◆ test() [2/4]

template<class T, class JType_t = void>
static JFalse JLANG::JTest::test
staticprivate

default false

◆ test() [3/4]

template<class T, class JType_t = void>
template<class __T__ >
static JFalse JLANG::JTest::test ( class __T__  )
staticprivate

default false

◆ test() [4/4]

static JFalse JLANG::JTest::test (   ...)
staticprotectedinherited

default false

Member Data Documentation

◆ has_eq

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_eq = JTEST(test(getReference() == getReference()))
static

true if operator== available; else false

Definition at line 47 of file JComparisonAvailable.hh.

◆ has_ne

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_ne = JTEST(test(getReference() != getReference()))
static

true if operator!= available; else false

Definition at line 48 of file JComparisonAvailable.hh.

◆ has_lt

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_lt = JTEST(test(getReference() < getReference()))
static

true if operator< available; else false

Definition at line 49 of file JComparisonAvailable.hh.

◆ has_gt

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_gt = JTEST(test(getReference() > getReference()))
static

true if operator> available; else false

Definition at line 50 of file JComparisonAvailable.hh.

◆ has_le

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_le = JTEST(test(getReference() <= getReference()))
static

true if operator<= available; else false

Definition at line 51 of file JComparisonAvailable.hh.

◆ has_ge

template<class T, class JType_t = void>
const bool JLANG::JLOCAL::JComparisonAvailable< T, JType_t >::has_ge = JTEST(test(getReference() >= getReference()))
static

true if operator>= available; else false

Definition at line 52 of file JComparisonAvailable.hh.


The documentation for this class was generated from the following file: