The Gaudi Framework  v30r3 (a5ef0a68)
KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease Struct Reference

Internal functor for insertion of objects. More...

Collaboration diagram for KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease:

Public Member Functions

 _RemoveRelease (ObjectContainerBase *p)
 
void operator() (value_type p)
 

Public Attributes

ObjectContainerBasem_obj
 

Detailed Description

template<class DATATYPE, class MAPPING = Containers::HashMap>
struct KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease

Internal functor for insertion of objects.

Definition at line 165 of file KeyedContainer.h.

Constructor & Destructor Documentation

template<class DATATYPE, class MAPPING = Containers::HashMap>
KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease::_RemoveRelease ( ObjectContainerBase p)
inline

Definition at line 167 of file KeyedContainer.h.

167 : m_obj( p ) {}
ObjectContainerBase * m_obj

Member Function Documentation

template<class DATATYPE, class MAPPING = Containers::HashMap>
void KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease::operator() ( value_type  p)
inline

Definition at line 168 of file KeyedContainer.h.

169  {
170  const ObjectContainerBase* par = p->parent();
171  if ( par == m_obj ) {
172  p->setParent( 0 );
173  }
174  traits::release( p );
175  }
ObjectContainerBase * m_obj
static long release(obj_type *v)
Release reference to object.
Definition: KeyedTraits.h:106
ObjectContainerBase is the base class for Gaudi container classes.

Member Data Documentation

template<class DATATYPE, class MAPPING = Containers::HashMap>
ObjectContainerBase* KeyedContainer< DATATYPE, MAPPING >::_RemoveRelease::m_obj

Definition at line 166 of file KeyedContainer.h.


The documentation for this struct was generated from the following file: