![]() |
The Gaudi Framework
v27r0
|
All classes that their objects may be contained in an LHCb ObjectContainer (e.g. More...
#include <GaudiKernel/ContainedObject.h>
Public Member Functions | |
virtual const CLID & | clID () const |
Retrieve pointer to class identifier. More... | |
const ObjectContainerBase * | parent () const |
Access to parent object. More... | |
void | setParent (ObjectContainerBase *value) |
Update parent member. More... | |
virtual long | index () const |
Distance in the parent container. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Serialize the object for writing. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
Serialize the object for reading. More... | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII) More... | |
virtual const CLID & | clID () const |
Retrieve pointer to class identifier. More... | |
const ObjectContainerBase * | parent () const |
Access to parent object. More... | |
void | setParent (ObjectContainerBase *value) |
Update parent member. More... | |
virtual long | index () const |
Distance in the parent container. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Serialize the object for writing. More... | |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
Serialize the object for reading. More... | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII) More... | |
Static Public Member Functions | |
static const CLID & | classID () |
static const CLID & | classID () |
Protected Member Functions | |
ContainedObject ()=default | |
Constructors. More... | |
ContainedObject (const ContainedObject &) | |
Copy constructor – do NOT copy the parent reference... More... | |
virtual | ~ContainedObject () |
Destructor. More... | |
ContainedObject ()=default | |
Constructors. More... | |
ContainedObject (const ContainedObject &) | |
Copy constructor – do NOT copy the parent reference... More... | |
virtual | ~ContainedObject () |
Destructor. More... | |
Private Attributes | |
ObjectContainerBase * | m_parent = nullptr |
Pointer to the parent. More... | |
Friends | |
class | ObjectVector< ContainedObject > |
Allow the container classes access to protected members. More... | |
class | ObjectList< ContainedObject > |
std::ostream & | operator<< (std::ostream &s, const ContainedObject &obj) |
Output operator (ASCII) More... | |
std::ostream & | operator<< (std::ostream &s, const ContainedObject &obj) |
Output operator (ASCII) More... | |
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
ObjectVector, or ObjectList), have to inherit from the class ContainedObject. It guarantees the navigability from the contained object back to its container.
Definition at line 29 of file ContainedObject.h.
|
protecteddefault |
Constructors.
|
inlineprotected |
Copy constructor – do NOT copy the parent reference...
Definition at line 39 of file ContainedObject.h.
|
protectedvirtual |
Destructor.
Definition at line 3 of file ContainedObject.cpp.
|
protecteddefault |
Constructors.
|
inlineprotected |
Copy constructor – do NOT copy the parent reference...
Definition at line 39 of file ContainedObject.h.
|
protectedvirtual |
Destructor.
|
inlinestatic |
Definition at line 46 of file ContainedObject.h.
|
inlinestatic |
Definition at line 46 of file ContainedObject.h.
|
inlinevirtual |
Retrieve pointer to class identifier.
Reimplemented in MyTrack, and MyVertex.
Definition at line 45 of file ContainedObject.h.
|
inlinevirtual |
Retrieve pointer to class identifier.
Reimplemented in MyTrack, and MyVertex.
Definition at line 45 of file ContainedObject.h.
|
inlinevirtual |
Fill the output stream (ASCII)
Reimplemented in MyTrack.
Definition at line 63 of file ContainedObject.h.
|
inlinevirtual |
Fill the output stream (ASCII)
Reimplemented in MyTrack.
Definition at line 63 of file ContainedObject.h.
|
inlinevirtual |
Distance in the parent container.
Reimplemented in KeyedObject< KEY >, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 54 of file ContainedObject.h.
|
inlinevirtual |
Distance in the parent container.
Reimplemented in KeyedObject< KEY >, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 54 of file ContainedObject.h.
|
inline |
Access to parent object.
Definition at line 49 of file ContainedObject.h.
|
inline |
Access to parent object.
Definition at line 49 of file ContainedObject.h.
|
inlinevirtual |
Serialize the object for writing.
Reimplemented in MyVertex, KeyedObject< KEY >, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 59 of file ContainedObject.h.
|
inlinevirtual |
Serialize the object for writing.
Reimplemented in MyVertex, KeyedObject< KEY >, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 59 of file ContainedObject.h.
|
inlinevirtual |
Serialize the object for reading.
Reimplemented in KeyedObject< KEY >, MyVertex, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 61 of file ContainedObject.h.
|
inlinevirtual |
Serialize the object for reading.
Reimplemented in KeyedObject< KEY >, MyVertex, KeyedObject< KEY >, KeyedObject< int >, and KeyedObject< int >.
Definition at line 61 of file ContainedObject.h.
|
inline |
Update parent member.
Definition at line 51 of file ContainedObject.h.
|
inline |
Update parent member.
Definition at line 51 of file ContainedObject.h.
|
friend |
Definition at line 33 of file ContainedObject.h.
|
friend |
Allow the container classes access to protected members.
Definition at line 32 of file ContainedObject.h.
|
friend |
Output operator (ASCII)
Definition at line 65 of file ContainedObject.h.
|
friend |
Output operator (ASCII)
Definition at line 65 of file ContainedObject.h.
|
private |
Pointer to the parent.
Definition at line 71 of file ContainedObject.h.