CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::NamedReference Class Reference

#include <NamedRef.h>

Inheritance diagram for ora::NamedReference:
ora::NamedRef< T >

Public Member Functions

bool isPersistent () const
 
const std::string & name () const
 
 NamedReference ()
 
 NamedReference (const std::string &name)
 
 NamedReference (const std::string &name, boost::shared_ptr< void > ptr)
 
 NamedReference (const NamedReference &rhs)
 
NamedReferenceoperator= (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
 

Detailed Description

Definition at line 11 of file NamedRef.h.

Constructor & Destructor Documentation

ora::NamedReference::NamedReference ( )

Definition at line 3 of file NamedRef.cc.

3  :
4  m_name(""),m_isPersistent(false),m_ptr(){
5 }
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
ora::NamedReference::NamedReference ( const std::string &  name)
explicit

Definition at line 7 of file NamedRef.cc.

7  :
9 }
const std::string & name() const
Definition: NamedRef.cc:36
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
ora::NamedReference::NamedReference ( const std::string &  name,
boost::shared_ptr< void >  ptr 
)

Definition at line 11 of file NamedRef.cc.

11  :
12  m_name(name),m_isPersistent(false),m_ptr( ptr ){
13 }
boost::shared_ptr< void > & ptr() const
Definition: NamedRef.cc:44
const std::string & name() const
Definition: NamedRef.cc:36
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
ora::NamedReference::NamedReference ( const NamedReference rhs)

Definition at line 15 of file NamedRef.cc.

15  :
16  m_name(rhs.m_name),m_isPersistent(rhs.m_isPersistent),m_ptr(rhs.m_ptr){
17 }
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
ora::NamedReference::~NamedReference ( )
virtual

Definition at line 19 of file NamedRef.cc.

19  {
20 }

Member Function Documentation

bool ora::NamedReference::isPersistent ( ) const

Definition at line 40 of file NamedRef.cc.

40  {
41  return m_isPersistent;
42 }
const std::string & ora::NamedReference::name ( ) const

Definition at line 36 of file NamedRef.cc.

Referenced by BeautifulSoup.Tag::_invert(), and Vispa.Views.PropertyView.Property::valueChanged().

36  {
37  return m_name;
38 }
std::string m_name
Definition: NamedRef.h:25
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=().

22  {
23  if( this != &rhs ){
24  m_name = rhs.m_name;
25  m_isPersistent = rhs.m_isPersistent;
26  m_ptr = rhs.m_ptr;
27  }
28  return *this;
29 }
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
boost::shared_ptr< void > & ora::NamedReference::ptr ( ) const

Definition at line 44 of file NamedRef.cc.

44  {
45  return m_ptr;
46 }
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
void ora::NamedReference::reset ( void  )

Definition at line 48 of file NamedRef.cc.

Referenced by MatrixReader.MatrixReader::__init__(), BeautifulSoup.BeautifulStoneSoup::__init__(), and MatrixReader.MatrixReader::showRaw().

48  {
49  m_ptr.reset();
50  m_name.clear();
51  m_isPersistent = false;
52 }
std::string m_name
Definition: NamedRef.h:25
boost::shared_ptr< void > m_ptr
Definition: NamedRef.h:27
void ora::NamedReference::set ( const std::string &  name)

Definition at line 31 of file NamedRef.cc.

References mergeVDriftHistosByStation::name.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

31  {
32  m_name = name;
33  m_isPersistent = false;
34 }
const std::string & name() const
Definition: NamedRef.cc:36
std::string m_name
Definition: NamedRef.h:25

Member Data Documentation

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
mutableprivate

Definition at line 27 of file NamedRef.h.

Referenced by operator=().