Jpp
master_rocky-43-ge265d140c
the software that should make you happy
|
Auxiliary class to manage access to base classes and data members of ROOT class objects. More...
#include <JRootClass.hh>
Public Types | |
typedef JAddress< JPointer_t > | JAddress_t |
typedef JAddress_t::pointer_type | pointer_type |
Public Member Functions | |
template<class T > | |
JRootAddressableClass (T &object) | |
Constructor. More... | |
pointer_type | getAddress () const |
Get address. More... | |
bool | is_valid () const |
Check validity of this addressable class. More... | |
JRootAddressableClass | find (const char *const name) const |
Find addressable base class or data member with given name within current class. More... | |
JRootAddressableClass | get (const TDataMember &data_member) const |
Get addressable class of given data member. More... | |
JRootAddressableClass | get (const TBaseClass &base_class) const |
Get addressable class of given base class. More... | |
JRootAddressableClass | operator[] (const char *const name) const |
Find addressable base class or data member with given name within current class. More... | |
TDictionary * | getDictionary () const |
Get dictionary. More... | |
int | getOffset () const |
Get offset of this class with respect to parent class. More... | |
TClass * | getClass () const |
Get class. More... | |
const char * | getTypename () const |
Get type name. More... | |
bool | equals (const JRootClass &object) const |
Test equality of ROOT classes. More... | |
JRootClass | find (const char *const name, const bool option=true) const |
Find base class or data member with given name within current class. More... | |
void | print (std::ostream &out) const |
Print ROOT class information. More... | |
Static Public Member Functions | |
static bool | is_class (const char *const name) |
Check name of class against ROOT classes. More... | |
static bool | is_class (const TBaseClass &base_class) |
Check base class against ROOT class names. More... | |
static bool | is_class (const TDataMember &data_member) |
Check data member against ROOT class names. More... | |
static bool | is_STLcontainer (const TBaseClass &base_class) |
Check if base class is STL container. More... | |
static bool | is_STLcontainer (const TDataMember &data_member) |
Check if data member is STL container. More... | |
static bool | is_STLstring (const TDataMember &data_member) |
Check if data member is STL string. More... | |
static bool | is_static (const TDataMember &data_member) |
Check if data member is static. More... | |
static bool | is_tobject_member (const char *name) |
Check if name is one of TObject own data members (fBits or fUniqueID, for Root <= 6.30.04 at least) More... | |
Public Attributes | |
pointer_type | address |
Protected Member Functions | |
JRootAddressableClass (const JRootClass &rc, pointer_type address) | |
Constructor. More... | |
void | print (std::ostream &out, const std::string &prefix) const |
Print ROOT class information. More... | |
Static Protected Member Functions | |
static void | print (std::ostream &out, const std::string &name, const std::string &type) |
Print ROOT class information. More... | |
Protected Attributes | |
TDictionary * | dictionary |
pointer to ROOT dictionary More... | |
int | offset |
offset with respect to data structure [B] More... | |
Auxiliary class to manage access to base classes and data members of ROOT class objects.
This class augments the class JRootClass with addressing capabilities.
Definition at line 436 of file JRootClass.hh.
typedef JAddress<JPointer_t> JROOT::JRootAddressableClass< JPointer_t >::JAddress_t |
Definition at line 440 of file JRootClass.hh.
typedef JAddress_t::pointer_type JROOT::JRootAddressableClass< JPointer_t >::pointer_type |
Definition at line 441 of file JRootClass.hh.
|
inline |
Constructor.
object | template object |
Definition at line 449 of file JRootClass.hh.
|
inlineprotected |
|
inline |
Get address.
Definition at line 460 of file JRootClass.hh.
|
inline |
Check validity of this addressable class.
Definition at line 471 of file JRootClass.hh.
|
inline |
Find addressable base class or data member with given name within current class.
name | name of base class or data member |
Definition at line 483 of file JRootClass.hh.
|
inline |
Get addressable class of given data member.
data_member | data member |
Definition at line 495 of file JRootClass.hh.
|
inline |
Get addressable class of given base class.
base_class | base class |
Definition at line 507 of file JRootClass.hh.
|
inline |
Find addressable base class or data member with given name within current class.
name | name of base class or data member |
Definition at line 519 of file JRootClass.hh.
|
inlinestaticinherited |
Check name of class against ROOT classes.
name | name of class |
Definition at line 50 of file JRootClass.hh.
|
inlinestaticinherited |
Check base class against ROOT class names.
base_class | base class |
Definition at line 67 of file JRootClass.hh.
|
inlinestaticinherited |
Check data member against ROOT class names.
data_member | data member |
Definition at line 79 of file JRootClass.hh.
|
inlinestaticinherited |
Check if base class is STL container.
base_class | base class |
Definition at line 91 of file JRootClass.hh.
|
inlinestaticinherited |
Check if data member is STL container.
data_member | data member |
Definition at line 103 of file JRootClass.hh.
|
inlinestaticinherited |
Check if data member is STL string.
data_member | data member |
Definition at line 115 of file JRootClass.hh.
|
inlinestaticinherited |
Check if data member is static.
data_member | data member |
Definition at line 128 of file JRootClass.hh.
|
inlinestaticinherited |
Check if name is one of TObject own data members (fBits or fUniqueID, for Root <= 6.30.04 at least)
Definition at line 138 of file JRootClass.hh.
|
inlineinherited |
Get dictionary.
Definition at line 172 of file JRootClass.hh.
|
inlineinherited |
Get offset of this class with respect to parent class.
Definition at line 183 of file JRootClass.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Test equality of ROOT classes.
object | ROOT class |
Definition at line 231 of file JRootClass.hh.
|
inlineinherited |
Find base class or data member with given name within current class.
name | name of base class or data member |
option | case sensitivity |
Definition at line 246 of file JRootClass.hh.
|
inlineinherited |
Print ROOT class information.
out | output stream |
Definition at line 318 of file JRootClass.hh.
|
inlineprotectedinherited |
Print ROOT class information.
out | output stream |
prefix | prefix |
Definition at line 358 of file JRootClass.hh.
|
inlinestaticprotectedinherited |
Print ROOT class information.
out | output stream |
name | name |
type | type |
Definition at line 397 of file JRootClass.hh.
|
protectedinherited |
pointer to ROOT dictionary
Definition at line 326 of file JRootClass.hh.
|
protectedinherited |
offset with respect to data structure [B]
Definition at line 327 of file JRootClass.hh.
|
inherited |
Definition at line 426 of file JRootClass.hh.