![]() |
The Gaudi Framework
master (ff829712)
|
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. | |
const ObjectContainerBase * | parent () const |
Access to parent object. | |
void | setParent (ObjectContainerBase *value) |
Update parent member. | |
virtual long | index () const |
Distance in the parent container. | |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Serialize the object for writing. | |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
Serialize the object for reading. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII) | |
Static Public Member Functions | |
static const CLID & | classID () |
Protected Member Functions | |
ContainedObject ()=default | |
Constructors. | |
ContainedObject (const ContainedObject &) | |
Copy constructor and assignement: do NOT copy the parent reference... | |
ContainedObject & | operator= (const ContainedObject &) |
virtual | ~ContainedObject () |
Destructor. | |
Private Attributes | |
ObjectContainerBase * | m_parent = nullptr |
Pointer to the parent. | |
Friends | |
class | ObjectVector< ContainedObject > |
Allow the container classes access to protected members. | |
class | ObjectList< ContainedObject > |
std::ostream & | operator<< (std::ostream &s, const ContainedObject &obj) |
Output operator (ASCII) | |
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 37 of file ContainedObject.h.
|
protecteddefault |
Constructors.
|
inlineprotected |
Copy constructor and assignement: do NOT copy the parent reference...
Definition at line 47 of file ContainedObject.h.
|
protectedvirtual |
Destructor.
Definition at line 13 of file ContainedObject.cpp.
|
inlinestatic |
Definition at line 56 of file ContainedObject.h.
|
inlinevirtual |
Retrieve pointer to class identifier.
Reimplemented in Gaudi::TestSuite::MyTrack, and Gaudi::TestSuite::MyVertex.
Definition at line 55 of file ContainedObject.h.
|
inlinevirtual |
|
inlinevirtual |
Distance in the parent container.
Reimplemented in KeyedObject< KEY >, KeyedObject< int >, KeyedObject< key_type >, and KeyedObject< key_type >.
Definition at line 64 of file ContainedObject.h.
|
inlineprotected |
Definition at line 49 of file ContainedObject.h.
|
inline |
|
inlinevirtual |
Serialize the object for reading.
Reimplemented in Gaudi::TestSuite::MyTrack, Gaudi::TestSuite::MyVertex, KeyedObject< KEY >, KeyedObject< int >, KeyedObject< key_type >, and KeyedObject< key_type >.
Definition at line 68 of file ContainedObject.h.
|
inlinevirtual |
Serialize the object for writing.
Reimplemented in Gaudi::TestSuite::MyTrack, Gaudi::TestSuite::MyVertex, KeyedObject< KEY >, KeyedObject< int >, KeyedObject< key_type >, and KeyedObject< key_type >.
Definition at line 66 of file ContainedObject.h.
|
inline |
|
friend |
Definition at line 37 of file ContainedObject.h.
|
friend |
Allow the container classes access to protected members.
Definition at line 37 of file ContainedObject.h.
|
friend |
Output operator (ASCII)
Definition at line 72 of file ContainedObject.h.
|
private |
Pointer to the parent.
Definition at line 76 of file ContainedObject.h.