#include <Creche.h>
Collaboration diagram for Omniifr::Creche< T >:
Public Member Functions | |
Creche (T *ptr) | |
~Creche () | |
T * | get () const |
T * | operator-> () const |
T * | release (const char *oidStr=NULL) |
Activates the object and releases it into the 'wild'. | |
Private Member Functions | |
Creche (const Creche &) | |
No implementation. | |
Private Attributes | |
T * | _ptr |
Automatically calls uncheckedDestroy() if the destructer is called without the contents first being removed. Ensures that they are properly cleaned up if an exception is raised.
Definition at line 35 of file Creche.h.
|
Definition at line 38 of file Creche.h. References Omniifr::Creche< T >::_ptr. 00038 :_ptr(ptr){assert(_ptr);}
|
|
Definition at line 39 of file Creche.h. References Omniifr::Creche< T >::_ptr. 00040 { 00041 if(_ptr) 00042 { 00043 _ptr->uncheckedDestroy(); 00044 _ptr->_remove_ref(); // Kill the constructor's reference to this. 00045 _ptr=NULL; 00046 } 00047 }
|
|
No implementation.
|
|
Definition at line 48 of file Creche.h. References Omniifr::Creche< T >::_ptr. Referenced by Omniifr::Container_impl::recreate(), and Omniifr::Repository_impl::reincarnate(). 00048 {return _ptr;}
|
|
Definition at line 49 of file Creche.h. References Omniifr::Creche< T >::_ptr. 00049 {return _ptr;}
|
|
|
Definition at line 67 of file Creche.h. Referenced by Omniifr::Creche< T >::Creche(), Omniifr::Creche< T >::get(), Omniifr::Creche< T >::operator->(), Omniifr::Creche< T >::release(), and Omniifr::Creche< T >::~Creche(). |