The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
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 152 of file KeyedContainer.h.

Constructor & Destructor Documentation

◆ _RemoveRelease()

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

Definition at line 154 of file KeyedContainer.h.

154: m_obj( p ) {}
template class KeyedContainer, KeyedContainer.h

Member Function Documentation

◆ operator()()

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

Definition at line 155 of file KeyedContainer.h.

155 {
156 const ObjectContainerBase* par = p->parent();
157 if ( par == m_obj ) { p->setParent( 0 ); }
159 }
static long release(obj_type *v)
Release reference to object.

Member Data Documentation

◆ m_obj

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

Definition at line 153 of file KeyedContainer.h.


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