Jpp
Static Public Attributes | Static Protected Member Functions | Static Private Member Functions | List of all members
JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type > Class Template Reference

Test convertibility of two classes. More...

Inheritance diagram for JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >:
JLANG::JTest

Static Public Attributes

static const bool is_derived = JTEST(test(getReference()))
 
static const bool is_same = false
 

Static Protected Member Functions

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

Static Private Member Functions

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

Detailed Description

template<class JDerived_t, class JBase_t>
template<class derived_type, class base_type>
class JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >

Test convertibility of two classes.

Source code is taken from reference: A. Alexandrescu, Modern C++ Design, Addison Wesley.

Definition at line 30 of file JConversion.hh.

Member Function Documentation

◆ test() [1/4]

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
static JTrue JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >::test ( const base_type &  )
staticprivate

◆ getReference()

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
static derived_type JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >::getReference ( )
staticprivate

◆ test() [2/4]

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
static JFalse JLANG::JTest::test
staticprivate

default false

◆ test() [3/4]

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
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

◆ is_derived

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
const bool JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >::is_derived = JTEST(test(getReference()))
static

Definition at line 40 of file JConversion.hh.

◆ is_same

template<class JDerived_t , class JBase_t >
template<class derived_type , class base_type >
const bool JLANG::JConversion< JDerived_t, JBase_t >::JLocal< derived_type, base_type >::is_same = false
static

Definition at line 41 of file JConversion.hh.


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