#include <UniqueRef.h>
Public Member Functions | |
void * | address () const |
template<class C > | |
UniqueRef< T > & | cast (const UniqueRef< C > &) |
template<class C > | |
ora::UniqueRef< T > & | cast (const UniqueRef< C > &aPtr) |
T * | get () const |
bool | isLoaded () const |
boost::shared_ptr< IPtrLoader > & | loader () const |
operator bool () const | |
bool | operator! () const |
template<class C > | |
bool | operator!= (const UniqueRef< C > &aPtr) const |
T & | operator* () const |
T * | operator-> () const |
UniqueRef< T > & | operator= (T *) |
UniqueRef< T > & | operator= (const UniqueRef< T > &) |
template<class C > | |
UniqueRef< T > & | operator= (const UniqueRef< C > &) |
template<class C > | |
ora::UniqueRef< T > & | operator= (const UniqueRef< C > &aPtr) |
template<class C > | |
bool | operator== (const UniqueRef< C > &aPtr) const |
void | reset () |
boost::shared_ptr< T > & | share () const |
const std::type_info * | typeInfo () const |
UniqueRef () | |
UniqueRef (T *anObject) | |
UniqueRef (const UniqueRef< T > &) | |
template<class C > | |
UniqueRef (const UniqueRef< C > &) | |
virtual | ~UniqueRef () |
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. Same features as Ptr (lazy loading) + support of polymorhism .
Definition at line 13 of file UniqueRef.h.
ora::UniqueRef< T >::UniqueRef | ( | ) |
Definition at line 114 of file UniqueRef.h.
|
explicit |
Definition at line 117 of file UniqueRef.h.
ora::UniqueRef< T >::UniqueRef | ( | const UniqueRef< T > & | aPtr | ) |
Definition at line 120 of file UniqueRef.h.
Definition at line 125 of file UniqueRef.h.
References EnergyCorrector::c, funct::C, and edmStreamStallGrapher::t.
|
virtual |
Definition at line 131 of file UniqueRef.h.
void * ora::UniqueRef< T >::address | ( | ) | const |
UniqueRef<T>& ora::UniqueRef< T >::cast | ( | const UniqueRef< C > & | ) |
ora::UniqueRef<T>& ora::UniqueRef< T >::cast | ( | const UniqueRef< C > & | aPtr | ) |
Definition at line 159 of file UniqueRef.h.
References ora::UniqueRef< T >::isLoaded(), ora::UniqueRef< T >::loader(), reset(), and ora::UniqueRef< T >::share().
T * ora::UniqueRef< T >::get | ( | void | ) | const |
Definition at line 175 of file UniqueRef.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
|
inline |
Definition at line 89 of file UniqueRef.h.
References ora::UniqueRef< T >::m_isLoaded.
Referenced by ora::UniqueRef< T >::cast(), core.AutoHandle.AutoHandle::Load(), ora::UniqueRef< T >::operator=(), and core.AutoHandle.AutoHandle::product().
|
inline |
Definition at line 84 of file UniqueRef.h.
References ora::UniqueRef< T >::m_loader.
Referenced by ora::UniqueRef< T >::cast(), and ora::UniqueRef< T >::operator=().
ora::UniqueRef< T >::operator bool | ( | ) | const |
Definition at line 194 of file UniqueRef.h.
bool ora::UniqueRef< T >::operator! | ( | ) | const |
Definition at line 198 of file UniqueRef.h.
|
inline |
Definition at line 74 of file UniqueRef.h.
References ora::UniqueRef< T >::operator==().
T & ora::UniqueRef< T >::operator* | ( | ) | const |
Definition at line 171 of file UniqueRef.h.
T * ora::UniqueRef< T >::operator-> | ( | ) | const |
Definition at line 167 of file UniqueRef.h.
ora::UniqueRef< T > & ora::UniqueRef< T >::operator= | ( | T * | aPtr | ) |
ora::UniqueRef< T > & ora::UniqueRef< T >::operator= | ( | const UniqueRef< T > & | aPtr | ) |
Definition at line 141 of file UniqueRef.h.
References ora::UniqueRef< T >::m_isLoaded, ora::UniqueRef< T >::m_loader, ora::UniqueRef< T >::m_ptr, and reset().
UniqueRef<T>& ora::UniqueRef< T >::operator= | ( | const UniqueRef< C > & | ) |
ora::UniqueRef<T>& ora::UniqueRef< T >::operator= | ( | const UniqueRef< C > & | aPtr | ) |
Definition at line 150 of file UniqueRef.h.
References EnergyCorrector::c, funct::C, ora::UniqueRef< T >::isLoaded(), ora::UniqueRef< T >::loader(), reset(), ora::UniqueRef< T >::share(), and edmStreamStallGrapher::t.
|
inline |
Definition at line 70 of file UniqueRef.h.
References ora::UniqueRef< T >::address(), funct::C, and ora::UniqueRef< T >::m_ptr.
Referenced by ora::UniqueRef< T >::operator!=().
|
private |
Definition at line 208 of file UniqueRef.h.
References ora::throwException().
void ora::UniqueRef< T >::reset | ( | void | ) |
Definition at line 202 of file UniqueRef.h.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
inline |
Definition at line 180 of file UniqueRef.h.
Referenced by ora::UniqueRef< T >::cast(), and ora::UniqueRef< T >::operator=().
const std::type_info * ora::UniqueRef< T >::typeInfo | ( | ) | const |
|
mutableprivate |
Definition at line 107 of file UniqueRef.h.
Referenced by ora::UniqueRef< T >::isLoaded(), and ora::UniqueRef< T >::operator=().
|
mutableprivate |
Definition at line 104 of file UniqueRef.h.
Referenced by ora::UniqueRef< T >::loader(), and ora::UniqueRef< T >::operator=().
|
mutableprivate |
Definition at line 101 of file UniqueRef.h.
Referenced by ora::UniqueRef< T >::operator=(), and ora::UniqueRef< T >::operator==().