Jpp  15.0.5
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ()
 

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

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
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
static JFalse JLANG::JTest::test (   ...)
staticprotectedinherited

default false

Member Data Documentation

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.

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: