#include <GaudiKernel/ObjectContainerBase.h>
Inheritance diagram for ObjectContainerBase:

Public Methods | |
| virtual StatusCode | release (ContainedObject* value) = 0 |
| Release object from the container (the pointer will be removed from the container, but the object itself will remain alive). | |
| virtual unsigned long | release () |
| Release reference to object (from DataObject) Re-implementing it here avoids a compiler warning about hidden function. Refer to ARM Page 210. More... | |
| virtual long | distance ( const ContainedObject* obj ) const = 0 |
| Distance of a given object from the beginning of its container. | |
| virtual ContainedObject* | containedObject ( long dist ) = 0 |
| Pointer to an object of a given distance. | |
| virtual const ContainedObject* | containedObject ( long dist ) const = 0 |
| virtual long | numberOfObjects () const = 0 |
| Number of objects in the container. | |
| virtual void | add (ContainedObject* pObject) = 0 |
| Virtual functions (forwards to the concrete container definitions) Add an object to the container. | |
| 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... | |
Protected Methods | |
| ObjectContainerBase ( const char* name = "unknown" ) | |
| Constructors. More... | |
| virtual | ~ObjectContainerBase () |
| Destructor. More... | |
Friends | |
| std::ostream& | operator<< ( std::ostream& s, const ObjectContainerBase& obj ) |
| Output operator(ASCII). More... | |
The main motivation is to allow contained object to be removed from the container on deletion and also for knowing it own index (distance) in the container.
Definition at line 24 of file ObjectContainerBase.h.
|
|
Constructors.
Definition at line 28 of file ObjectContainerBase.h. |
|
|
Destructor.
Definition at line 31 of file ObjectContainerBase.h. |
|
|
Virtual functions (forwards to the concrete container definitions) Add an object to the container.
Reimplemented in ObjectList, and ObjectVector. |
|
|
Reimplemented in ObjectList, and ObjectVector. |
|
|
Pointer to an object of a given distance.
Reimplemented in ObjectList, and ObjectVector. Referenced by SmartRefBase::accessData(). |
|
|
Distance of a given object from the beginning of its container.
Reimplemented in ObjectList, and ObjectVector. Referenced by ContainedObject::distance(). |
|
|
Fill the output stream (ASCII).
Reimplemented in ObjectList, and ObjectVector. Definition at line 74 of file ObjectContainerBase.h. Referenced by ObjectVector::fillStream(), ObjectList::fillStream(), and operator<<(). |
|
|
Number of objects in the container.
Reimplemented in ObjectList, and ObjectVector. |
|
|
Release reference to object (from DataObject) Re-implementing it here avoids a compiler warning about hidden function. Refer to ARM Page 210.
Reimplemented from DataObject. Reimplemented in ObjectList, and ObjectVector. Definition at line 42 of file ObjectContainerBase.h. Referenced by ObjectVector::release(), ObjectList::release(), and ContainedObject::~ContainedObject(). |
|
|
Release object from the container (the pointer will be removed from the container, but the object itself will remain alive).
Reimplemented in ObjectList, and ObjectVector. |
|
|
Serialize the object for reading.
Reimplemented from DataObject. Definition at line 64 of file ObjectContainerBase.h. |
|
|
Serialize the object for writing.
Reimplemented from DataObject. Definition at line 59 of file ObjectContainerBase.h. |
|
|
Output operator(ASCII).
Definition at line 70 of file ObjectContainerBase.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000