|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef XAODROOTACCESS_TOOLS_THOLDER_H
6 #define XAODROOTACCESS_TOOLS_THOLDER_H
41 THolder(
void*
object, ::TClass*
type, ::Bool_t owner = kTRUE );
44 ::Bool_t owner = kTRUE );
47 THolder(
const void*
object, ::TClass*
type, ::Bool_t owner = kTRUE );
49 THolder(
const void*
object,
const std::type_info&
type,
50 ::Bool_t owner = kTRUE );
65 const void*
get()
const;
73 virtual void set(
void*
obj );
78 void setOwner( ::Bool_t state = kTRUE );
86 virtual void*
getAs(
const std::type_info& tid,
87 ::Bool_t
silent = kFALSE )
const;
89 virtual const void*
getAsConst(
const std::type_info& tid,
90 ::Bool_t
silent = kFALSE )
const;
119 void*
getImpl(
const std::type_info& tid,
120 ::Bool_t
silent = kFALSE )
const;
139 #endif // XAODROOTACCESS_TOOLS_THOLDER_H
@ OTHER
Some non-specified type.
::Bool_t isConst() const
Check if the object is const.
THolder & operator=(const THolder &rhs)
Assignment operator.
@ AUXELEMENT
A type inheriting from SG::AuxElement.
::Bool_t m_owner
A flag for whether the object owns what it points to.
void setConst()
Mark the object as const.
void setOwner(::Bool_t state=kTRUE)
Set whether the holder should own its object.
@ DATAVECTOR
A DataVector container.
virtual void * getAs(const std::type_info &tid, ::Bool_t silent=kFALSE) const
Return the object as a specific pointer.
This class takes care of holding EDM objects in memory.
TypeKind
Type of the object held by this one.
void ** getPtr()
Return a typeless pointer to the held object's pointer.
const void * get() const
Return a typeless const pointer to the held object.
::Bool_t isOwner() const
Check whether the holder owns its object.
void * getImpl(const std::type_info &tid, ::Bool_t silent=kFALSE) const
Internal function to get an object.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void deleteObject()
Internal function used to delete the managed object from memory.
const ::TClass * getClass() const
TypeKind typeKind() const
Return the type of the object held by this one.
TypeKind m_typeKind
Type of the object held.
::Bool_t m_const
Is the held object const?
virtual void set(void *obj)
Replace the managed object.
void * m_object
Typeless pointer to the object in memory.
::TClass * m_type
Concrete type of the object being held on to.
THolder()
Default constructor.
void renew()
Renew the object in memory.
def silent(func)
Redirect stdout/err to /dev/null Useful wrapper to get rid of ROOT verbosity...
const std::type_info * getTypeInfo() const
virtual const void * getAsConst(const std::type_info &tid, ::Bool_t silent=kFALSE) const
Return the object as a specific, constant pointer.
const std::type_info * m_typeInfo
Concrete type of the object, if it doesn't have a dictionary.
virtual ~THolder()
The destructor cleans out the memory used by the managed object.