117 if ( cnt <= 0 )
delete this;
void setParent(ObjectContainerBase *value)
Update parent member.
ContainedObject()=default
Constructors.
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
const ObjectContainerBase * parent() const
Access to parent object.
unsigned long addRef()
Add reference to object (Increase reference counter).
KeyedObject()=default
Standard Constructor. The object key is preset to the invalid value.
long index() const override
Distance in the parent container.
void setKey(const key_type &key)
Set object key.
const key_type & key() const
KeyedObject(const KeyedObject ©)
NOBODY may copy these objects.
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
KeyedObject(const key_type &kval)
Standard Constructor accepting the object's key.
unsigned long release()
Release reference. If the reference count is ZERO, delete the object.
~KeyedObject() override
Standard destructor.
StreamBuffer & serialize(StreamBuffer &s) override
Serialize the object for reading.
bool hasKey() const
Check if the object has a key assigned or not.
Containers::key_traits< key_type > traits
KEY key_type
Definition of the key-type to access object.
ObjectContainerBase is the base class for Gaudi container classes.
virtual long remove(ContainedObject *value)=0
Release object from the container (the pointer will be removed from the container,...
The stream buffer is a small object collecting object data.
GAUDI_API void cannotAssignObjectKey()
Function to be called when an object key cannot be assigned.
static long identifier(const key_type &k)
static key_type makeKey(long k)