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 Member Functions | Private Attributes
edm::GenericObjectOwner Class Reference

#include <GenericObjectOwner.h>

Public Member Functions

 GenericObjectOwner ()
 
 GenericObjectOwner (Reflex::Object const &iObject, bool iOwnData=true)
 
Reflex::Object object () const
 
void release ()
 
void swap (GenericObjectOwner &)
 
 ~GenericObjectOwner ()
 

Private Member Functions

 GenericObjectOwner (GenericObjectOwner const &)
 
GenericObjectOwner const & operator= (GenericObjectOwner const &)
 

Private Attributes

Reflex::Object m_object
 
bool m_ownData
 

Detailed Description

Definition at line 30 of file GenericObjectOwner.h.

Constructor & Destructor Documentation

edm::GenericObjectOwner::GenericObjectOwner ( )
inline

Definition at line 34 of file GenericObjectOwner.h.

34 : m_ownData(false){}
edm::GenericObjectOwner::GenericObjectOwner ( Reflex::Object const &  iObject,
bool  iOwnData = true 
)
inlineexplicit

Definition at line 35 of file GenericObjectOwner.h.

36  :
37  m_object(iObject), m_ownData(iOwnData) {}
GenericObjectOwner::~GenericObjectOwner ( )

Definition at line 41 of file GenericObjectOwner.cc.

References m_object, and m_ownData.

42 {
43  if(m_ownData) {
44  m_object.Destruct();
45  }
46 }
edm::GenericObjectOwner::GenericObjectOwner ( GenericObjectOwner const &  )
private

Member Function Documentation

Reflex::Object GenericObjectOwner::object ( ) const
GenericObjectOwner const& edm::GenericObjectOwner::operator= ( GenericObjectOwner const &  )
private
void edm::GenericObjectOwner::release ( )
void GenericObjectOwner::swap ( GenericObjectOwner iOther)

Definition at line 64 of file GenericObjectOwner.cc.

References m_object.

64  {
65  Reflex::Object old(m_object);
66  m_object = iOther.m_object;
67  iOther.m_object = m_object;
68 }

Member Data Documentation

Reflex::Object edm::GenericObjectOwner::m_object
private

Definition at line 55 of file GenericObjectOwner.h.

Referenced by object(), swap(), and ~GenericObjectOwner().

bool edm::GenericObjectOwner::m_ownData
private

Definition at line 56 of file GenericObjectOwner.h.

Referenced by ~GenericObjectOwner().