CMS 3D CMS Logo

edm::GenericObjectOwner Class Reference

#include <FWCore/Framework/interface/GenericObjectOwner.h>

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

ROOT::Reflex::Object m_object
bool m_ownData


Detailed Description

Definition at line 32 of file GenericObjectOwner.h.


Constructor & Destructor Documentation

edm::GenericObjectOwner::GenericObjectOwner (  )  [inline]

Definition at line 36 of file GenericObjectOwner.h.

00036 : m_ownData(false){}

edm::GenericObjectOwner::GenericObjectOwner ( ROOT::Reflex::Object const &  iObject,
bool  iOwnData = true 
) [inline, explicit]

Definition at line 37 of file GenericObjectOwner.h.

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

GenericObjectOwner::~GenericObjectOwner (  ) 

Definition at line 40 of file GenericObjectOwner.cc.

00041 {
00042    if(m_ownData) {
00043       m_object.Destruct();
00044    }
00045 }

edm::GenericObjectOwner::GenericObjectOwner ( GenericObjectOwner const &   )  [private]


Member Function Documentation

ROOT::Reflex::Object GenericObjectOwner::object (  )  const

Definition at line 74 of file GenericObjectOwner.cc.

00075 {
00076    return m_object;
00077 }

GenericObjectOwner const& edm::GenericObjectOwner::operator= ( GenericObjectOwner const &   )  [private]

void edm::GenericObjectOwner::release (  ) 

void GenericObjectOwner::swap ( GenericObjectOwner iOther  ) 

Definition at line 63 of file GenericObjectOwner.cc.

References m_object, and old.

00064 {
00065    ROOT::Reflex::Object old(m_object);
00066    m_object = iOther.m_object;
00067    iOther.m_object = m_object;
00068 }


Member Data Documentation

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

Definition at line 57 of file GenericObjectOwner.h.

Referenced by swap().

bool edm::GenericObjectOwner::m_ownData [private]

Definition at line 58 of file GenericObjectOwner.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:41:02 2009 for CMSSW by  doxygen 1.5.4