#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 162 of file Ptr.h.
References assert(), EnergyCorrector::c, funct::C, and lumiQTWidget::t.
|
inline |
Definition at line 199 of file Ptr.h.
References ora::Ptr< T >::isLoaded(), ora::Ptr< T >::loader(), and ora::Ptr< T >::share().
Definition at line 217 of file Ptr.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), data_sources.json_list::last(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
Definition at line 123 of file Ptr.h.
References ora::Ptr< T >::m_isLoaded.
Referenced by ora::Ptr< T >::cast(), and ora::Ptr< T >::operator=().
Definition at line 249 of file Ptr.h.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().
|
inline |
Definition at line 115 of file Ptr.h.
References ora::Ptr< T >::m_loader.
Referenced by ora::Ptr< T >::cast(), and ora::Ptr< T >::operator=().
|
inline |
Definition at line 180 of file Ptr.h.
References ora::Ptr< T >::m_isLoaded, ora::Ptr< T >::m_loader, and ora::Ptr< T >::m_ptr.
|
inline |
Definition at line 189 of file Ptr.h.
References assert(), EnergyCorrector::c, funct::C, ora::Ptr< T >::isLoaded(), ora::Ptr< T >::loader(), ora::Ptr< T >::share(), and lumiQTWidget::t.
|
inline |
Definition at line 101 of file Ptr.h.
References ora::Ptr< T >::address(), funct::C, and ora::Ptr< T >::m_ptr.
Referenced by ora::Ptr< T >::operator!=().
Definition at line 254 of file Ptr.h.
References ora::throwException().
Definition at line 242 of file Ptr.h.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
Definition at line 222 of file Ptr.h.
Referenced by ora::Ptr< T >::cast(), and ora::Ptr< T >::operator=().
Definition at line 141 of file Ptr.h.
Referenced by ora::Ptr< T >::isLoaded(), and ora::Ptr< T >::operator=().
|
mutableprivate |
Definition at line 138 of file Ptr.h.
Referenced by ora::Ptr< T >::loader(), and ora::Ptr< T >::operator=().
Definition at line 135 of file Ptr.h.
Referenced by ora::Ptr< T >::operator=(), and ora::Ptr< T >::operator==().