Auxiliary class to handle version management of given class at reading from a ROOT file.
More...
#include <JRootSupportkit.hh>
|
static void | execute (T *object) |
| Execute action.
|
|
|
static const bool | has_method = JTEST(test<T>(NULL)) |
| true if class has policy method actionAtFileRead; else false
|
|
|
template<class U > |
static JTrue | test (JTypecheck< void(U::*)(), &U::actionAtFileRead > *) |
|
static void | execute (T *object, JBool< true > option) |
| Execute action.
|
|
static void | execute (T *object, JBool< false > option) |
| Execute action.
|
|
static JFalse | test (...) |
| default false
|
|
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.
◆ test() [1/2]
template<class T >
template<class U >
◆ execute() [1/3]
Execute action.
This implementation transfers the action to the given object.
- Parameters
-
object | pointer to object (I/O) |
option | true |
Definition at line 101 of file JRootSupportkit.hh.
102 {
103 object->actionAtFileRead();
104 }
◆ execute() [2/3]
Execute action.
This implementation does nothing.
- Parameters
-
object | pointer to object (I/O) |
option | false |
Definition at line 115 of file JRootSupportkit.hh.
◆ execute() [3/3]
Execute action.
- Parameters
-
object | pointer 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.
◆ test() [2/2]
template<class T >
static JFalse JLANG::JTest::test |
( |
| ... | ) |
|
|
staticprivate |
◆ has_method
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: