Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Static Private Member Functions | List of all members
JROOT::JActionAtFileRead< T > Class Template Reference

Auxiliary class to handle version management of given class at reading from a ROOT file. More...

#include <JRootSupportkit.hh>

Inheritance diagram for JROOT::JActionAtFileRead< T >:
JLANG::JTest

Static Public Member Functions

static void execute (T *object)
 Execute action. More...
 

Static Public Attributes

static const bool has_method = JTEST(test<T>(NULL))
 true if class has policy method actionAtFileRead; else false More...
 

Static Protected Member Functions

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

Static Private Member Functions

template<class U >
static JTrue test (JTypecheck< void(U::*)(),&U::actionAtFileRead > *)
 
static void execute (T *object, JBool< true > option)
 Execute action. More...
 
static void execute (T *object, JBool< false > option)
 Execute action. More...
 

Detailed Description

template<class T>
class JROOT::JActionAtFileRead< T >

Auxiliary class to handle version management of given class at reading from a ROOT file.

Definition at line 85 of file JRootSupportkit.hh.

Member Function Documentation

template<class T >
template<class U >
static JTrue JROOT::JActionAtFileRead< T >::test ( JTypecheck< void(U::*)(),&U::actionAtFileRead > *  )
staticprivate
template<class T >
static void JROOT::JActionAtFileRead< T >::execute ( T object,
JBool< true >  option 
)
inlinestaticprivate

Execute action.

This implementation transfers the action to the given object.

Parameters
objectpointer to object (I/O)
optiontrue

Definition at line 101 of file JRootSupportkit.hh.

102  {
103  object->actionAtFileRead();
104  }
template<class T >
static void JROOT::JActionAtFileRead< T >::execute ( T object,
JBool< false >  option 
)
inlinestaticprivate

Execute action.

This implementation does nothing.

Parameters
objectpointer to object (I/O)
optionfalse

Definition at line 115 of file JRootSupportkit.hh.

116  {}
template<class T >
static void JROOT::JActionAtFileRead< T >::execute ( T object)
inlinestatic

Execute action.

Parameters
objectpointer to object (I/O)

Definition at line 128 of file JRootSupportkit.hh.

129  {
130  execute(object, JBool<has_method>());
131  }
static void execute(T *object, JBool< true > option)
Execute action.
static JFalse JLANG::JTest::test (   ...)
staticprotectedinherited

default false

Member Data Documentation

template<class T >
const bool JROOT::JActionAtFileRead< T >::has_method = JTEST(test<T>(NULL))
static

true if class has policy method actionAtFileRead; else false

Definition at line 120 of file JRootSupportkit.hh.


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