2 #ifndef GAUDIKERNEL_CONTAINEDOBJECT_H
3 #define GAUDIKERNEL_CONTAINEDOBJECT_H
6 #include "GaudiKernel/Kernel.h"
7 #include "GaudiKernel/StreamBuffer.h"
8 #include "GaudiKernel/ObjectContainerBase.h"
20 static const CLID CLID_ContainedObject = 190;
47 static const CLID&
classID() {
return CLID_ContainedObject; }
55 virtual long index()
const
57 return (m_parent) ? m_parent->index(
this) : -1;
64 virtual std::ostream&
fillStream( std::ostream&
s )
const {
return s; }
75 #endif // GAUDIKERNEL_CONTAINEDOBJECT_H
ObjectVector< ContainedObject > ContainedObjectVector
std::ostream & operator<<(std::ostream &str, const GaudiAlg::ID &id)
Operator overloading for ostream.
virtual std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)
The stream buffer is a small object collecting object data.
ObjectVector is one of the basic Gaudi container classes capable of being registered in Data Stores...
ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores...
virtual long index(const ContainedObject *obj) const
Return distance of a given object from the beginning of its container It corresponds to the "index" (...
virtual const CLID & clID() const
Retrieve pointer to class definition structure.
unsigned int CLID
Class ID definition.
static const CLID & classID()
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
ObjectList< ContainedObject > ContainedObjectList
ObjectContainerBase is the base class for Gaudi container classes.
virtual std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)