Go to the documentation of this file.
11 #ifndef GAUDI_OBJECTCONTAINERBASE_H
12 #define GAUDI_OBJECTCONTAINERBASE_H 1
63 #endif // GAUDI_OBJECTCONTAINERBASE_H
virtual long index(const ContainedObject *obj) const =0
Distance of a given object from the beginning of its container.
virtual long remove(ContainedObject *value)=0
Release object from the container (the pointer will be removed from the container,...
ObjectContainerBase & operator=(ObjectContainerBase &&)=default
ObjectContainerBase()=default
Constructor.
size_t size_type
size_type, to conform the STL container interface
ObjectContainerBase(ObjectContainerBase &&)=default
~ObjectContainerBase() override=default
virtual ContainedObject * containedObject(long dist)=0
virtual long add(ContainedObject *pObject)=0
Virtual functions (forwards to the concrete container definitions) Add an object to the container.
virtual size_type numberOfObjects() const =0
Number of objects in the container.
virtual const ContainedObject * containedObject(long dist) const =0
Pointer to an object of a given distance.