CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::NamedReference Class Reference

#include <NamedRef.h>

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

List of all members.

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)
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.

                                 :
  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.

                                  {
}

Member Function Documentation

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 AlCaRecoCosmics_cfg::name.

                                                  {
  m_name = name;
  m_isPersistent = false;
}

Member Data Documentation

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=().