CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

edm::GenericObjectOwner Class Reference

#include <GenericObjectOwner.h>

List of all members.

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.

: m_ownData(false){}
edm::GenericObjectOwner::GenericObjectOwner ( Reflex::Object const &  iObject,
bool  iOwnData = true 
) [inline, explicit]

Definition at line 35 of file GenericObjectOwner.h.

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

Definition at line 41 of file GenericObjectOwner.cc.

References m_object, and m_ownData.

{
   if(m_ownData) {
      m_object.Destruct();
   }
}
edm::GenericObjectOwner::GenericObjectOwner ( GenericObjectOwner const &  ) [private]

Member Function Documentation

Reflex::Object GenericObjectOwner::object ( ) const

Definition at line 74 of file GenericObjectOwner.cc.

References m_object.

                                 {
   return m_object;
}
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.

                                                   {
   Reflex::Object old(m_object);
   m_object = iOther.m_object;
   iOther.m_object = m_object;
}

Member Data Documentation

Reflex::Object edm::GenericObjectOwner::m_object [private]

Definition at line 55 of file GenericObjectOwner.h.

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

Definition at line 56 of file GenericObjectOwner.h.

Referenced by ~GenericObjectOwner().