JG ROOT Tools libraries  version 5.0 - august 2014
RObject Class Reference

#include <RObject.hh>

Inheritance diagram for RObject:

Public Member Functions

 RObject (TObject &obj)
 
 RObject (const RObject &original)
 
virtual ~RObject ()
 
RObjectoperator= (const RObject &original)
 
bool operator== (const RObject &obj)
 
const TObject * GetTObjectPtr () const
 
TObject * GetTObjectPtr ()
 
const TObject & GetTObject () const
 
TObject & GetTObject ()
 
 ClassDef (RObject, 0)
 

Protected Attributes

TObject * root_object
 Pointer to the associate ROOT objet.
 

Private Member Functions

 GObject (RObject)
 

Detailed Description

Define base class to encapsulate ROOT objects in the GObject mechanism. A ROOT object is an object that inherits from the TObject class of ROOT.

Constructor & Destructor Documentation

RObject::RObject ( TObject &  obj)

Constructor.

Parameters
objroot object pointer
RObject::RObject ( const RObject original)

Copy constructor: the pointer is copied but the ROOT object is not dupplicated.

Parameters
originalitem to copy

References root_object.

RObject::~RObject ( )
virtual

Destructor: the ROOT object is not destroyed.

Member Function Documentation

RObject::GObject ( RObject  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
RObject & RObject::operator= ( const RObject original)

Affectation operator.

Parameters
originalitem to copy

References root_object.

bool RObject::operator== ( const RObject obj)
inline

Comparison operator: it compares the ROOT object pointer.

Parameters
objdata to compare

References GetTObjectPtr(), and root_object.

const TObject * RObject::GetTObjectPtr ( ) const
inline

Return the pointer to the ROOT object.

References root_object.

Referenced by operator==().

TObject * RObject::GetTObjectPtr ( )
inline

Return the pointer to the ROOT object.

References root_object.

const TObject & RObject::GetTObject ( ) const
inline

Return the reference to the ROOT object.

References root_object.

TObject & RObject::GetTObject ( )
inline

Return the reference to the ROOT object.

References root_object.

RObject::ClassDef ( RObject  ,
 
)

For ROOT dictionary.


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