CMS 3D CMS Logo

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< TrackCollection >

List of all members.

Public Member Functions

void clear ()
ProductID id () const
bool isValid () const
OrphanHandleBaseoperator= (OrphanHandleBase const &rhs)
 OrphanHandleBase (void const *prod, ProductID const &id)
 OrphanHandleBase ()
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.

                        :
      product_(), id_(ProductID()) {
    }
edm::OrphanHandleBase::OrphanHandleBase ( void const *  prod,
ProductID const &  id 
) [inline]

Definition at line 36 of file OrphanHandleBase.h.

                                                             :
      product_(prod), id_(id) {
      assert (prod);
    }
edm::OrphanHandleBase::~OrphanHandleBase ( ) [inline]

Definition at line 41 of file OrphanHandleBase.h.

{}

Member Function Documentation

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

Definition at line 43 of file OrphanHandleBase.h.

References id_, and product_.

                 {
      product_ = 0;
      id_ = ProductID();
    }
ProductID edm::OrphanHandleBase::id ( void  ) const

Definition at line 10 of file OrphanHandleBase.cc.

References id_.

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

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

                                                             {
      OrphanHandleBase temp(rhs);
      this->swap(temp);
      return *this;
    }
void const * edm::OrphanHandleBase::productStorage ( ) const [protected]

Definition at line 5 of file OrphanHandleBase.cc.

References product_.

                                         {
    return product_;
  }
void edm::OrphanHandleBase::swap ( OrphanHandleBase other) [inline]

Member Data Documentation

void const* edm::OrphanHandleBase::product_ [private]

Definition at line 70 of file OrphanHandleBase.h.

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