CMS 3D CMS Logo

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 *iProd, ProductID const &iId)
 
void swap (OrphanHandleBase &other)
 
 ~OrphanHandleBase ()
 

Protected Member Functions

void const * productStorage () const
 

Private Attributes

ProductID id_
 
void const * product_
 

Detailed Description

Definition at line 28 of file OrphanHandleBase.h.

Constructor & Destructor Documentation

◆ OrphanHandleBase() [1/2]

edm::OrphanHandleBase::OrphanHandleBase ( )
inline

Definition at line 30 of file OrphanHandleBase.h.

30 : product_(), id_(ProductID()) {}

◆ OrphanHandleBase() [2/2]

edm::OrphanHandleBase::OrphanHandleBase ( void const *  iProd,
ProductID const &  iId 
)
inline

Definition at line 32 of file OrphanHandleBase.h.

32 : product_(iProd), id_(iId) { assert(iProd); }

References cms::cuda::assert().

◆ ~OrphanHandleBase()

edm::OrphanHandleBase::~OrphanHandleBase ( )
inline

Definition at line 34 of file OrphanHandleBase.h.

34 {}

Member Function Documentation

◆ clear()

void edm::OrphanHandleBase::clear ( void  )
inline

Definition at line 36 of file OrphanHandleBase.h.

36  {
37  product_ = nullptr;
38  id_ = ProductID();
39  }

References id_, and product_.

Referenced by BeautifulSoup.Tag::setString().

◆ id()

ProductID edm::OrphanHandleBase::id ( ) const

◆ isValid()

bool edm::OrphanHandleBase::isValid ( void  ) const
inline

◆ operator=()

OrphanHandleBase& edm::OrphanHandleBase::operator= ( OrphanHandleBase const &  rhs)
inline

Definition at line 47 of file OrphanHandleBase.h.

47  {
49  this->swap(temp);
50  return *this;
51  }

References swap(), and groupFilesInBlocks::temp.

◆ productStorage()

void const * edm::OrphanHandleBase::productStorage ( ) const
protected

Definition at line 4 of file OrphanHandleBase.cc.

4 { return product_; }

References product_.

◆ swap()

void edm::OrphanHandleBase::swap ( OrphanHandleBase other)
inline

Definition at line 41 of file OrphanHandleBase.h.

41  {
42  using std::swap;
43  swap(product_, other.product_);
44  std::swap(id_, other.id_);
45  }

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

Referenced by operator=().

Member Data Documentation

◆ id_

ProductID edm::OrphanHandleBase::id_
private

Definition at line 62 of file OrphanHandleBase.h.

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

◆ product_

void const* edm::OrphanHandleBase::product_
private

Definition at line 61 of file OrphanHandleBase.h.

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

edm::OrphanHandleBase::id_
ProductID id_
Definition: OrphanHandleBase.h:62
edm::OrphanHandleBase::swap
void swap(OrphanHandleBase &other)
Definition: OrphanHandleBase.h:41
cms::cuda::assert
assert(be >=bs)
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
trackingPlots.other
other
Definition: trackingPlots.py:1464
edm::OrphanHandleBase::product_
void const * product_
Definition: OrphanHandleBase.h:61
edm::OrphanHandleBase::OrphanHandleBase
OrphanHandleBase()
Definition: OrphanHandleBase.h:30