CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::ValidHandle< T > Class Template Reference

#include <ValidHandle.h>

Public Types

using element_type = T
 

Public Member Functions

ProductID const & id () const noexcept(true)
 
T const & operator* () const noexcept(true)
 
T const * operator-> () const noexcept(true)
 
ValidHandle< T > & operator= (ValidHandle< T > const &rhs)=default
 
T const * product () const noexcept(true)
 
 ValidHandle ()=delete
 
 ValidHandle (T const *prod, ProductID id) noexcept(false)
 
 ValidHandle (T const &prod, ProductID id) noexcept(true)
 
 ValidHandle (const ValidHandle< T > &)=default
 
 ~ValidHandle ()=default
 

Private Attributes

ProductID id_
 
T const * product_
 

Detailed Description

template<typename T>
class edm::ValidHandle< T >

Definition at line 20 of file ValidHandle.h.

Member Typedef Documentation

template<typename T>
using edm::ValidHandle< T >::element_type = T

Definition at line 22 of file ValidHandle.h.

Constructor & Destructor Documentation

template<typename T>
edm::ValidHandle< T >::ValidHandle ( )
delete
template<typename T>
edm::ValidHandle< T >::ValidHandle ( T const *  prod,
ProductID  id 
)
inlinenoexcept

Definition at line 25 of file ValidHandle.h.

References parseEventContent::prod, and edm::vhhelper::throwIfNotValid().

25  :
26  product_(prod), id_(std::move(id)) {
28  }
ProductID id_
Definition: ValidHandle.h:50
T const * product_
Definition: ValidHandle.h:49
void throwIfNotValid(const void *) noexcept(false)
Definition: ValidHandle.cc:6
def move(src, dest)
Definition: eostools.py:511
template<typename T>
edm::ValidHandle< T >::ValidHandle ( T const &  prod,
ProductID  id 
)
inlinenoexcept

Definition at line 31 of file ValidHandle.h.

31  :
32  product_(&prod), id_(std::move(id)) {
33  }
ProductID id_
Definition: ValidHandle.h:50
T const * product_
Definition: ValidHandle.h:49
def move(src, dest)
Definition: eostools.py:511
template<typename T>
edm::ValidHandle< T >::ValidHandle ( const ValidHandle< T > &  )
default
template<typename T>
edm::ValidHandle< T >::~ValidHandle ( )
default

Member Function Documentation

template<typename T>
ProductID const& edm::ValidHandle< T >::id ( ) const
inlinenoexcept

Definition at line 39 of file ValidHandle.h.

39 { return id_; }
ProductID id_
Definition: ValidHandle.h:50
template<typename T>
T const& edm::ValidHandle< T >::operator* ( ) const
inlinenoexcept

Definition at line 46 of file ValidHandle.h.

46 { return *product();}
T const * product() const noexcept(true)
Definition: ValidHandle.h:41
template<typename T>
T const* edm::ValidHandle< T >::operator-> ( ) const
inlinenoexcept

Definition at line 45 of file ValidHandle.h.

45 { return product();}
T const * product() const noexcept(true)
Definition: ValidHandle.h:41
template<typename T>
ValidHandle<T>& edm::ValidHandle< T >::operator= ( ValidHandle< T > const &  rhs)
default
template<typename T>
T const* edm::ValidHandle< T >::product ( ) const
inlinenoexcept

Definition at line 41 of file ValidHandle.h.

41  {
42  return product_;
43  }
T const * product_
Definition: ValidHandle.h:49

Member Data Documentation

template<typename T>
ProductID edm::ValidHandle< T >::id_
private

Definition at line 50 of file ValidHandle.h.

template<typename T>
T const* edm::ValidHandle< T >::product_
private

Definition at line 49 of file ValidHandle.h.