ContainedObject.cpp
Go to the documentation of this file.
1 #include "GaudiKernel/ContainedObject.h"
2 
4  // If the object is contained in a container, remove it from there
5  if( 0 != m_parent ) {
6  m_parent->remove(this);
7  }
8 }
virtual ~ContainedObject()
Destructor.
virtual long remove(ContainedObject *value)=0
Release object from the container (the pointer will be removed from the container, but the object itself will remain alive).
ObjectContainerBase * m_parent
Pointer to the parent.