#include <NamedRef.h>
Public Member Functions | |
T * | get () const |
NamedRef (const std::string &name) | |
template<typename C > | |
NamedRef (const std::string &name, boost::shared_ptr< C > &data) | |
NamedRef (const NamedRef< T > &rhs) | |
NamedRef () | |
NamedRef (const std::string &name, boost::shared_ptr< T > &data) | |
template<typename C > | |
NamedRef (const NamedRef< C > &rhs) | |
operator bool () const | |
bool | operator! () const |
bool | operator!= (const NamedRef< T > &rhs) const |
template<class C > | |
bool | operator!= (const NamedRef< C > &rhs) const |
T & | operator* () const |
T * | operator-> () const |
template<typename C > | |
NamedRef< T > & | operator= (const NamedRef< C > &rhs) |
NamedRef< T > & | operator= (const NamedRef< T > &rhs) |
template<class C > | |
bool | operator== (const NamedRef< C > &rhs) const |
bool | operator== (const NamedRef< T > &rhs) const |
boost::shared_ptr< T > | share () const |
virtual | ~NamedRef () |
Private Member Functions | |
T * | safePtr (bool throw_flag) const |
Definition at line 30 of file NamedRef.h.
ora::NamedRef< T >::NamedRef | ( | ) | [inline] |
Definition at line 61 of file NamedRef.h.
: NamedReference(){}
ora::NamedRef< T >::NamedRef | ( | const std::string & | name | ) | [inline] |
Definition at line 65 of file NamedRef.h.
: NamedReference( name ){}
ora::NamedRef< T >::NamedRef | ( | const std::string & | name, |
boost::shared_ptr< T > & | data | ||
) | [inline] |
Definition at line 69 of file NamedRef.h.
: NamedReference( name, boost::shared_ptr<void>( data ) ){}
ora::NamedRef< T >::NamedRef | ( | const std::string & | name, |
boost::shared_ptr< C > & | data | ||
) | [inline] |
Definition at line 74 of file NamedRef.h.
: NamedReference( name, boost::shared_ptr<void>( data )){ }
ora::NamedRef< T >::NamedRef | ( | const NamedRef< T > & | rhs | ) | [inline] |
Definition at line 79 of file NamedRef.h.
: NamedReference( rhs.name() ){ }
ora::NamedRef< T >::NamedRef | ( | const NamedRef< C > & | rhs | ) | [inline] |
Definition at line 85 of file NamedRef.h.
: NamedReference( rhs.name() ){ }
ora::NamedRef< T >::~NamedRef | ( | ) | [inline, virtual] |
Definition at line 90 of file NamedRef.h.
{ }
T * ora::NamedRef< T >::get | ( | void | ) | const [inline] |
Definition at line 129 of file NamedRef.h.
{ return safePtr(false); }
ora::NamedRef< T >::operator bool | ( | ) | const [inline] |
Definition at line 124 of file NamedRef.h.
{ return safePtr(false); }
bool ora::NamedRef< T >::operator! | ( | ) | const [inline] |
Definition at line 139 of file NamedRef.h.
{ return safePtr(false)==0; }
bool ora::NamedRef< T >::operator!= | ( | const NamedRef< T > & | rhs | ) | const |
Definition at line 149 of file NamedRef.h.
References operator==().
{ return !(this->operator==(rhs)); }
bool ora::NamedRef< T >::operator!= | ( | const NamedRef< C > & | rhs | ) | const |
Definition at line 161 of file NamedRef.h.
References operator==().
{ return !(this->operator==(rhs)); }
T & ora::NamedRef< T >::operator* | ( | ) | const [inline] |
Definition at line 119 of file NamedRef.h.
{ return *safePtr( true ); }
T * ora::NamedRef< T >::operator-> | ( | ) | const [inline] |
Definition at line 114 of file NamedRef.h.
{ return safePtr( true ); }
ora::NamedRef< T > & ora::NamedRef< T >::operator= | ( | const NamedRef< C > & | rhs | ) | [inline] |
Definition at line 101 of file NamedRef.h.
References ora::NamedReference::operator=().
{ NamedReference::operator=( rhs ); return *this; }
ora::NamedRef< T > & ora::NamedRef< T >::operator= | ( | const NamedRef< T > & | rhs | ) | [inline] |
Definition at line 94 of file NamedRef.h.
References ora::NamedReference::operator=().
{ NamedReference::operator=( rhs ); return *this; }
bool ora::NamedRef< T >::operator== | ( | const NamedRef< T > & | rhs | ) | const |
Definition at line 144 of file NamedRef.h.
References ora::NamedRef< T >::share().
{ return share() == rhs.share(); }
bool ora::NamedRef< T >::operator== | ( | const NamedRef< C > & | rhs | ) | const |
Definition at line 155 of file NamedRef.h.
References ora::NamedRef< T >::share().
{ return share() == rhs.share(); }
T * ora::NamedRef< T >::safePtr | ( | bool | throw_flag | ) | const [private] |
Definition at line 107 of file NamedRef.h.
References AlCaHLTBitMon_ParallelJobs::p, and ora::throwException().
{ T* p = share().get(); if( !p && throw_flag) throwException( "Underlying pointer is null.","NamedRef::safePtr"); return p; }
boost::shared_ptr< T > ora::NamedRef< T >::share | ( | ) | const [inline] |
Definition at line 134 of file NamedRef.h.
Referenced by ora::NamedRef< T >::operator==().