| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ObjectContainerBase.h
Go to the documentation of this file.
1 #ifndef GAUDI_OBJECTCONTAINERBASE_H
2 #define GAUDI_OBJECTCONTAINERBASE_H 1
3
4 // Include files
5 #include "GaudiKernel/Kernel.h"
6 #include "GaudiKernel/DataObject.h"
7
8 // Forward declarations
9 class ContainedObject;
10
19 class GAUDI_API ObjectContainerBase : public DataObject {
20
21 protected:
22
24 ObjectContainerBase() = default;
25 ObjectContainerBase(ObjectContainerBase&&) = default;
26 ObjectContainerBase& operator=(ObjectContainerBase&&) = default;
27
28 public:
29
31 typedef size_t size_type;
32
34 virtual long index( const ContainedObject* obj ) const = 0;
35
37 virtual ContainedObject* containedObject( long dist ) const = 0;
38
40 virtual size_type numberOfObjects() const = 0;
41
45 virtual long add(ContainedObject* pObject) = 0;
46
50 virtual long remove(ContainedObject* value) = 0;
51
52 };
53
54 #endif // GAUDI_OBJECTCONTAINERBASE_H
Kernel.h
ObjectContainerBase::size_type
size_t size_type
size_type, to conform the STL container interface
Definition: ObjectContainerBase.h:31
GaudiPython.Persistency.add
def add(instance)
Definition: Persistency.py:32
ContainedObject
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
Definition: ContainedObject.h:29
DataObject::operator=
DataObject & operator=(const DataObject &rhs)
Assignment Operator.
Definition: DataObject.cpp:26
ObjectContainerBase
ObjectContainerBase is the base class for Gaudi container classes.
Definition: ObjectContainerBase.h:19
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
DataObject.h