Go to the documentation of this file.
11 #ifndef GAUDIKERNEL_CONTAINEDOBJECT_H
12 #define GAUDIKERNEL_CONTAINEDOBJECT_H
31 static const CLID CLID_ContainedObject = 190;
68 virtual long index()
const {
return m_parent ? m_parent->index(
this ) : -1; }
83 #endif // GAUDIKERNEL_CONTAINEDOBJECT_H
ObjectVector< ContainedObject > ContainedObjectVector
virtual StreamBuffer & serialize(StreamBuffer &s)
Serialize the object for reading.
friend std::ostream & operator<<(std::ostream &s, const ContainedObject &obj)
Output operator (ASCII)
ContainedObject(const ContainedObject &)
Copy constructor and assignement: do NOT copy the parent reference...
ContainedObject()=default
Constructors.
ObjectList< ContainedObject > ContainedObjectList
static const CLID & classID()
virtual std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)
unsigned int CLID
Class ID definition.
virtual long index() const
Distance in the parent container.
const ObjectContainerBase * parent() const
Access to parent object.
ContainedObject & operator=(const ContainedObject &)
virtual const CLID & clID() const
Retrieve pointer to class identifier.
void setParent(ObjectContainerBase *value)
Update parent member.
static const CLID & classID()
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.