#include <NamedRef.h>
Public Member Functions | |
bool | isPersistent () const |
const std::string & | name () const |
NamedReference () | |
NamedReference (const NamedReference &rhs) | |
NamedReference (const std::string &name) | |
NamedReference (const std::string &name, boost::shared_ptr< void > ptr) | |
NamedReference & | operator= (const NamedReference &rhs) |
boost::shared_ptr< void > & | ptr () const |
void | reset () |
void | set (const std::string &name) |
virtual | ~NamedReference () |
Private Attributes | |
bool | m_isPersistent |
std::string | m_name |
boost::shared_ptr< void > | m_ptr |
Definition at line 11 of file NamedRef.h.
ora::NamedReference::NamedReference | ( | ) |
Definition at line 3 of file NamedRef.cc.
: m_name(""),m_isPersistent(false),m_ptr(){ }
ora::NamedReference::NamedReference | ( | const std::string & | name | ) | [explicit] |
Definition at line 7 of file NamedRef.cc.
: m_name(name),m_isPersistent(false),m_ptr(){ }
ora::NamedReference::NamedReference | ( | const std::string & | name, |
boost::shared_ptr< void > | ptr | ||
) |
Definition at line 11 of file NamedRef.cc.
: m_name(name),m_isPersistent(false),m_ptr( ptr ){ }
ora::NamedReference::NamedReference | ( | const NamedReference & | rhs | ) |
Definition at line 15 of file NamedRef.cc.
: m_name(rhs.m_name),m_isPersistent(rhs.m_isPersistent),m_ptr(rhs.m_ptr){ }
ora::NamedReference::~NamedReference | ( | ) | [virtual] |
Definition at line 19 of file NamedRef.cc.
{ }
bool ora::NamedReference::isPersistent | ( | ) | const |
Definition at line 40 of file NamedRef.cc.
{ return m_isPersistent; }
const std::string & ora::NamedReference::name | ( | ) | const |
Definition at line 36 of file NamedRef.cc.
{ return m_name; }
ora::NamedReference & ora::NamedReference::operator= | ( | const NamedReference & | rhs | ) |
Definition at line 22 of file NamedRef.cc.
References m_isPersistent, m_name, and m_ptr.
Referenced by ora::NamedRef< T >::operator=().
{ if( this != &rhs ){ m_name = rhs.m_name; m_isPersistent = rhs.m_isPersistent; m_ptr = rhs.m_ptr; } return *this; }
boost::shared_ptr< void > & ora::NamedReference::ptr | ( | ) | const |
Definition at line 44 of file NamedRef.cc.
{ return m_ptr; }
void ora::NamedReference::reset | ( | void | ) |
Definition at line 48 of file NamedRef.cc.
{ m_ptr.reset(); m_name.clear(); m_isPersistent = false; }
void ora::NamedReference::set | ( | const std::string & | name | ) |
Definition at line 31 of file NamedRef.cc.
References mergeVDriftHistosByStation::name.
{ m_name = name; m_isPersistent = false; }
bool ora::NamedReference::m_isPersistent [private] |
Definition at line 26 of file NamedRef.h.
Referenced by operator=().
std::string ora::NamedReference::m_name [private] |
Definition at line 25 of file NamedRef.h.
Referenced by operator=().
boost::shared_ptr<void> ora::NamedReference::m_ptr [mutable, private] |
Definition at line 27 of file NamedRef.h.
Referenced by operator=().