rooClassObject
class description - source file - inheritance tree
public:
rooClassObject rooClassObject()
rooClassObject rooClassObject(const rooClassObject&)
rooClassObject rooClassObject(const rooObj&, const rooClass&)
rooClassObject rooClassObject(const rooObj&, Int_t, const rooModule&)
rooClassObject rooClassObject(const rooObj&)
rooClassObject rooClassObject(void* imp)
rooClassObject get_class_obj(Int_t)
rooClassObject get_class_obj(Int_t, Int_t)
rooClassObject get_class_obj(const rooClassPosition&, Int_t = 0)
virtual void ~rooClassObject()
const rooAttribute& attribute_at_position(Int_t pos) const
TClass* Class()
rooClassObject& contained_in()
rooNumericValue get(Int_t)
rooNumericValue get(Int_t, Int_t)
rooNumericValue get(const rooClassPosition&, Int_t = 0)
rooObj get_ooref(Int_t)
rooObj get_ooref(Int_t, Int_t)
rooObj get_ooref(const rooClassPosition&, Int_t = 0)
rooRelationshipObject get_relationship(Int_t)
rooRelationshipObject get_relationship(const rooClassPosition&)
rooStringValue get_string(Int_t)
rooStringValue get_string(Int_t, Int_t)
rooStringValue get_string(const rooClassPosition&, Int_t = 0)
rooVArrayObject get_varray(Int_t)
rooVArrayObject get_varray(Int_t, Int_t)
rooVArrayObject get_varray(const rooClassPosition&, Int_t = 0)
virtual Bool_t is_class_object() const
virtual TClass* IsA() const
rooObj& object_handle()
rooClassObject& operator=(const rooClassObject&)
rooClassObject& operator=(const rooObj&)
const rooClassPosition& position_in_class(const TString&) const
const rooAttribute& resolve_attribute(const TString&) const
Bool_t set(Int_t, const rooNumericValue&)
Bool_t set(Int_t, Int_t, const rooNumericValue&)
Bool_t set(const rooClassPosition&, const rooNumericValue&)
Bool_t set(const rooClassPosition&, Int_t, const rooNumericValue&)
Bool_t set_ooref(Int_t, const rooObj&)
Bool_t set_ooref(Int_t, Int_t, const rooObj&)
Bool_t set_ooref(const rooClassPosition&, const rooObj&)
Bool_t set_ooref(const rooClassPosition&, Int_t, const rooObj&)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
const rooClass& type_of() const
private:
rooNumericValue* fNumericValue get()
rooClassObject* fClassObject get_class_obj()
rooVArrayObject* fVArrayObject get_varray()
rooRelationshipObject* fRelationshipObject get_relationship()
rooObj* fOoref get_ooref()
rooStringValue* fStringValue get_string()
rooClassPosition* fClassPosition position_in_class()
rooAttribute* fAttribute resolve_attribute()
rooClassObject* fContainedIn contained_in()
protected:
rooClass* fClass described class.
rooObj* fObject associated persistent object
rooClassObject corresponds to Class_Object class
The class rooClassObject is a self-describing data type for persistent
objects. An instance of this class is called a class object; it provides
access to persistent data contained within some persistent object, called
its associated persistent object.
______________________________________________________________________________
About Class Objects
Each class object provides access to values of the properties defined in
one particular class, called its described class. A class object uses a
class descriptor for its described class to guide its access to the
associated data. You can construct a class object for an existing
persistent object using either rooObj object. You can create a class object
for a new object to be added to the database by calling the static member
function rooClassObject::new_persistent_object ( not implemented yet).
You can create a class object for a new container to be added to the
database by calling the static member function
rooClassObject::new_persistent_container_object (not implemented).
From one class object, you can obtain class objects above and below it
in the hierarchy of class objects for the associated persistent object:
You can call the contained_in() member function to get the parent class
object.
You can call the get_class_obj() member function to get the child class
object corresponding to a particular immediate parent class or embedded
class of the described class.
From a class object, you can access the data for properties of the
associated persistent object.
rooClassObject()
Creates a class object with no associated class descriptor or
persistent object. You can set a newly created class object
using operator=
rooClassObject(const rooClassObject & cl)
Copy constructor, which creates a new class object with
the same class descriptor and persistent object as the specified class
object. Both copies access the same persistent object. Any change made
with one class object will be seen by the other class object
rooClassObject(const rooObj & obj, const rooClass &cl)
Creates a class object for the specified persistent
object. Opens a handle for the persistent object, if necessary.
Throws an InvalidShape exception if the specified object is not an
instance of the specified class. Throws an InvalidHandle exception
if the specified handle is not valid.
rooClassObject(const rooObj & obj, Int_t idx,
const rooModule & md)
Creates a class object for the specified persistent
object. Opens a handle for the persistent object, if necessary.
Throws an InvalidShape exception if the specified object is not an
instance of the specified class. Throws an InvalidHandle exception
if the specified handle is not valid.
rooClassObject(const rooObj & obj)
Creates a class object for the referenced persistent object
(rooObj object). It creates and opens a handle for the persistent object,
if necessary. It sets the class descriptor for the new class object
by looking up the type number of the specified object in the top-level
module.
~rooClassObject()
dtor
rooNumericValue get(Int_t pos)
Gets the data for the specified numeric attribute of the persistent
object.
Returns:
The numeric value at the specified index in the specified attribute
of the associated persistent object.
Throws an AttributeTypeError exception if the specified attribute is
not a numeric attribute.
rooClassObject get_class_obj(Int_t pos)
Gets the data for the specified base class, embedded-class attribute,
or object-reference attribute of the persistent object.
Returns:
For a base class or an embedded-class attribute, a class object for
the embedded object element at the specified index; for an
object-reference attribute, a class object for the persistent object
referenced by the value at the specified index.
To obtain a value from an object-reference attribute without opening a
handle for the referenced object, call get_ooref() instead of this member
function.
Throws an AttributeTypeError exception if the specified attribute is
not a base class, an embedded-class attribute, or an object-reference
attribute.
rooVArrayObject get_varray(Int_t pos)
Gets the data for the specified embedded-class or VArray attribute of the
persistent object.
rooRelationshipObject get_relationship(Int_t pos)
Gets the data for the specified relationship of the persistent object.
rooObj get_ooref(Int_t pos)
Gets the object reference in the specified object-reference attribute
(rooObj obect) of the persistent object.
Returns:
A class object for the persistent object referenced by the value at
the specified index of the specified attribute.
To open a handle for the reference object and obtain a class object for it,
call get_class_obj instead of this member function.
Throws an AttributeTypeError exception if the specified attribute is
not an object-reference attribute.
rooStringValue get_string(Int_t pos)
Gets the data for the specified string attribute of the persistent object.
Bool_t set(Int_t pos, const rooNumericValue& val)
Sets the specified numeric attribute of the persistent object.
Bool_t set_ooref(Int_t pos, const rooObj& val)
Sets the specified object-reference attribute of the persistent object.
rooNumericValue get(Int_t pos, Int_t idx)
Gets the data for the specified numeric attribute of the persistent
object.
Returns:
The numeric value at the specified index in the specified attribute
of the associated persistent object.
Throws an AttributeTypeError exception if the specified attribute is
not a numeric attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooClassObject get_class_obj(Int_t pos, Int_t idx)
Gets the data for the specified base class, embedded-class attribute,
or object-reference attribute of the persistent object.
Returns:
For a base class or an embedded-class attribute, a class object for
the embedded object element at the specified index; for an
object-reference attribute, a class object for the persistent object
referenced by the value at the specified index.
To obtain a value from an object-reference attribute without opening a
handle for the referenced object, call get_ooref() instead of this member
function.
Throws an AttributeTypeError exception if the specified attribute is
not a base class, an embedded-class attribute, or an object-reference
attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooVArrayObject get_varray(Int_t pos, Int_t idx)
Gets the data for the specified embedded-class or VArray attribute of the
persistent object.
rooObj get_ooref(Int_t pos, Int_t idx)
Gets the object reference in the specified object-reference attribute
(rooObj obect) of the persistent object.
Returns:
A class object for the persistent object referenced by the value at
the specified index of the specified attribute.
To open a handle for the reference object and obtain a class object for it,
call get_class_obj instead of this member function.
Throws an AttributeTypeError exception if the specified attribute is
not an object-reference attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooStringValue get_string(Int_t pos, Int_t idx)
Gets the data for the specified string attribute of the persistent object.
Bool_t set(Int_t pos, Int_t idx, const rooNumericValue& val)
Sets the specified numeric attribute of the persistent object.
Bool_t set_ooref(Int_t pos, Int_t idx, const rooObj& val)
Sets the specified object-reference attribute of the persistent object.
rooNumericValue get(const rooClassPosition & pos, Int_t idx)
Gets the data for the specified numeric attribute of the persistent
object.
Returns:
The numeric value at the specified index in the specified attribute
of the associated persistent object.
Throws an AttributeTypeError exception if the specified attribute is
not a numeric attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooClassObject get_class_obj(const rooClassPosition & pos, Int_t idx)
Gets the data for the specified base class, embedded-class attribute,
or object-reference attribute of the persistent object.
Returns:
For a base class or an embedded-class attribute, a class object for
the embedded object element at the specified index; for an
object-reference attribute, a class object for the persistent object
referenced by the value at the specified index.
To obtain a value from an object-reference attribute without opening a
handle for the referenced object, call get_ooref() instead of this member
function.
Throws an AttributeTypeError exception if the specified attribute is
not a base class, an embedded-class attribute, or an object-reference
attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooVArrayObject get_varray(const rooClassPosition & pos,Int_t idx)
Gets the data for the specified embedded-class or VArray attribute of the
persistent object.
rooRelationshipObject get_relationship(const rooClassPosition & pos)
Gets the data for the specified relationship of the persistent object.
rooObj get_ooref(const rooClassPosition & pos, Int_t idx)
Gets the object reference in the specified object-reference attribute
(rooObj obect) of the persistent object.
Returns:
A class object for the persistent object referenced by the value at
the specified index of the specified attribute.
It can access attributes defined in or inherited by this class object's
described class.
To open a handle for the reference object and obtain a class object for it,
call get_class_obj instead of this member function.
Throws an AttributeTypeError exception if the specified attribute is
not an object-reference attribute.
Throws an ArrayBoundsError exception if idx exceeds the upper bound
for the array in the specified attribute.
rooStringValue get_string(const rooClassPosition & pos, Int_t idx)
Gets the data for the specified string attribute of the persistent object.
Bool_t set(const rooClassPosition &pos, const rooNumericValue& val)
Sets the specified numeric attribute of the persistent object.
Bool_t set(const rooClassPosition & pos, // attrPosR
Int_t idx, // arrayIndex
const rooNumericValue& val)
Sets the specified numeric attribute of the persistent object.
Bool_t set_ooref(const rooClassPosition & pos, const rooObj& val)
Sets the specified object-reference attribute of the persistent object.
Bool_t set_ooref(const rooClassPosition & pos, // attrPosR
Int_t idx, // arrayIndex
const rooObj& val)
Sets the specified object-reference attribute of the persistent object.
Inline Functions
rooClassObject rooClassObject(void* imp)
rooClassObject& operator=(const rooClassObject&)
rooClassObject& operator=(const rooObj&)
rooClassObject& contained_in()
rooObj& object_handle()
const rooClass& type_of() const
const rooClassPosition& position_in_class(const TString&) const
const rooAttribute& resolve_attribute(const TString&) const
Bool_t is_class_object() const
const rooAttribute& attribute_at_position(Int_t pos) const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
Author: Valeriy Onuchin 11/09/2000
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.