class TClassRef


Reference to a TClass object and intrusive list of other
to thise same TClass object references

Function Members (Methods)

TClassRef(TClass* cl)
TClassRef(const char* classname)
TClassRef(const TClassRef&)
TClass*GetClass() const
const char*GetClassName()
TClass*operator TClass*() const
TClass*operator->() const
TClassRef&operator=(const TClassRef&)
voidSetName(const char* new_name)
TClass*InternalGetClass() const

Data Members

stringfClassNameName of referenced class
TClass*fClassPtr! Ptr to the TClass object
TClassRef*fNext! link to the next refs
TClassRef*fPrevious! link to the previous refs

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TClass * InternalGetClass()
void ListReset()
TClassRef(TClass *cl)
TClassRef(const char *classname)
TClassRef(const TClassRef&)
TClassRef & operator=(const TClassRef&)
TClassRef & operator=(TClass*)
{ if (fClassPtr) fClassPtr->RemoveRef(this); }
void SetName(const char* new_name)
const char * GetClassName()
{ return fClassName.c_str(); }
TClass * GetClass()
{ return fClassPtr ? fClassPtr : InternalGetClass(); }
void Reset()
{ if (fClassPtr) fClassPtr->RemoveRef(this); fClassPtr = 0; }
TClass* operator->()
{ return fClassPtr ? fClassPtr : InternalGetClass(); }
operator TClass*()
{ return fClassPtr ? fClassPtr : InternalGetClass(); }

Author: Philippe Canal 15/03/2005
Last update: root/meta:$Id: TClassRef.h 20882 2007-11-19 11:31:26Z rdm $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.