1 #ifndef GAUDIKERNEL_CONTAINEDOBJECT_H 2 #define GAUDIKERNEL_CONTAINEDOBJECT_H 21 static const CLID CLID_ContainedObject = 190;
57 virtual long index()
const {
return m_parent ? m_parent->index(
this ) : -1; }
72 #endif // GAUDIKERNEL_CONTAINEDOBJECT_H virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
ObjectList< ContainedObject > ContainedObjectList
virtual StreamBuffer & serialize(StreamBuffer &s)
Serialize the object for reading.
The stream buffer is a small object collecting object data.
ObjectVector< ContainedObject > ContainedObjectVector
friend std::ostream & operator<<(std::ostream &s, const ContainedObject &obj)
Output operator (ASCII)
ObjectVector is one of the basic Gaudi container classes capable of being registered in Data Stores.
ContainedObject(const ContainedObject &)
Copy constructor and assignement: do NOT copy the parent reference...
static const CLID & classID()
ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores.
unsigned int CLID
Class ID definition.
virtual long index() const
Distance in the parent container.
static const CLID & classID()
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
virtual std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)
ContainedObject & operator=(const ContainedObject &)
virtual const CLID & clID() const
Retrieve pointer to class identifier.
void setParent(ObjectContainerBase *value)
Update parent member.
const ObjectContainerBase * parent() const
Access to parent object.
ObjectContainerBase is the base class for Gaudi container classes.