#include <Ptr.h>
Public Member Functions | |
void * | address () const |
template<class C > | |
Ptr< T > & | cast (const Ptr< C > &) |
template<class C > | |
ora::Ptr< T > & | cast (const Ptr< C > &aPtr) |
T * | get () const |
bool | isLoaded () const |
void | load () const |
boost::shared_ptr< IPtrLoader > & | loader () const |
operator bool () const | |
bool | operator! () const |
template<class C > | |
bool | operator!= (const Ptr< C > &aPtr) const |
T & | operator* () const |
T * | operator-> () const |
Ptr< T > & | operator= (T *) |
Ptr< T > & | operator= (const Ptr< T > &) |
template<class C > | |
Ptr< T > & | operator= (const Ptr< C > &) |
template<class C > | |
ora::Ptr< T > & | operator= (const Ptr< C > &aPtr) |
template<class C > | |
bool | operator== (const Ptr< C > &aPtr) const |
Ptr () | |
Ptr (T *anObject) | |
Ptr (const Ptr< T > &) | |
template<class C > | |
Ptr (const Ptr< C > &) | |
void | reset () |
boost::shared_ptr< T > & | share () const |
virtual | ~Ptr () |
Private Member Functions | |
T * | ptr (bool throw_flag) const |
Private Attributes | |
bool | m_isLoaded |
boost::shared_ptr< IPtrLoader > | m_loader |
boost::shared_ptr< T > | m_ptr |
Templated class for the persistency of associated objects. The embedded object is treated as a normal C++ pointer in the writing mode, without to require an explicit write request on it. In the reading mode, the embedded object is loaded only at access time (lazy loading).
Definition at line 217 of file Ptr.h.
Referenced by Options.Options::__getitem__().
Definition at line 249 of file Ptr.h.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().
|
inline |
|
mutableprivate |