CMS 3D CMS Logo

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

#include <OrphanHandleBase.h>

Inheritance diagram for edm::OrphanHandleBase:
edm::OrphanHandle< T > edm::TestHandle< T > edm::OrphanHandle< reco::TrackCollection > edm::OrphanHandle< TrackCollection >

Public Member Functions

void clear ()
 
ProductID id () const
 
bool isValid () const
 
OrphanHandleBaseoperator= (OrphanHandleBase const &rhs)
 
 OrphanHandleBase ()
 
 OrphanHandleBase (void const *prod, ProductID const &id)
 
void swap (OrphanHandleBase &other)
 
 ~OrphanHandleBase ()
 

Protected Member Functions

void const * productStorage () const
 

Private Attributes

ProductID id_
 
void const * product_
 

Detailed Description

Definition at line 30 of file OrphanHandleBase.h.

Constructor & Destructor Documentation

edm::OrphanHandleBase::OrphanHandleBase ( )
inline

Definition at line 32 of file OrphanHandleBase.h.

32  :
33  product_(), id_(ProductID()) {
34  }
edm::OrphanHandleBase::OrphanHandleBase ( void const *  prod,
ProductID const &  id 
)
inline

Definition at line 36 of file OrphanHandleBase.h.

36  :
37  product_(prod), id_(id) {
38  assert (prod);
39  }
edm::OrphanHandleBase::~OrphanHandleBase ( )
inline

Definition at line 41 of file OrphanHandleBase.h.

41 {}

Member Function Documentation

void edm::OrphanHandleBase::clear ( void  )
inline
ProductID edm::OrphanHandleBase::id ( void  ) const

Definition at line 10 of file OrphanHandleBase.cc.

References id_.

Referenced by pat::PATGenCandsFromSimTracksProducer::produce().

10  {
11  return id_;
12  }
bool edm::OrphanHandleBase::isValid ( void  ) const
inline
OrphanHandleBase& edm::OrphanHandleBase::operator= ( OrphanHandleBase const &  rhs)
inline

Definition at line 54 of file OrphanHandleBase.h.

References swap(), and cond::rpcobtemp::temp.

54  {
56  this->swap(temp);
57  return *this;
58  }
void swap(OrphanHandleBase &other)
void const * edm::OrphanHandleBase::productStorage ( ) const
protected

Definition at line 5 of file OrphanHandleBase.cc.

References product_.

5  {
6  return product_;
7  }
void edm::OrphanHandleBase::swap ( OrphanHandleBase other)
inline

Definition at line 48 of file OrphanHandleBase.h.

References id_, product_, and std::swap().

Referenced by operator=(), edm::OrphanHandle< GenericObjectOwner >::operator=(), and edm::swap().

48  {
49  using std::swap;
50  swap(product_, other.product_);
51  std::swap(id_, other.id_);
52  }
void swap(OrphanHandleBase &other)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)

Member Data Documentation

ProductID edm::OrphanHandleBase::id_
private
void const* edm::OrphanHandleBase::product_
private

Definition at line 70 of file OrphanHandleBase.h.

Referenced by clear(), isValid(), productStorage(), and swap().