#include <DataFormats/Common/interface/FwdPtr.h>
Public Types | |
typedef unsigned long | key_type |
typedef T | value_type |
Public Member Functions | |
Ptr< value_type > const & | backPtr () const |
template<typename C > | |
FwdPtr (Ptr< C > f, Ptr< C > b) | |
FwdPtr () | |
T const * | get () const |
Returns C++ pointer to the item. | |
bool | hasProductCache () const |
ProductID | id () const |
Accessor for product ID. | |
bool | isAvailable () const |
bool | isNonnull () const |
Checks for non-null. | |
bool | isNull () const |
Checks for null. | |
bool | isTransient () const |
Checks if this FwdPtr is transient (i.e. not persistable). | |
key_type | key () const |
bool | operator! () const |
Checks for null. | |
T const & | operator* () const |
Dereference operator. | |
T const * | operator-> () const |
Member dereference operator. | |
void const * | product () const |
EDProductGetter const * | productGetter () const |
Accessor for product getter. | |
Ptr< value_type > const & | ptr () const |
RefCore const & | refCore () const |
~FwdPtr () | |
Destructor. | |
Private Attributes | |
Ptr< value_type > | backPtr_ |
Ptr< value_type > | ptr_ |
Friends | |
class | FwdPtrVectorBase |
Description: Persistent 'pointer' to an item in a collection where the collection is in the edm::Event
Usage: <usage>
typedef unsigned long edm::FwdPtr< T >::key_type |
typedef T edm::FwdPtr< T >::value_type |
edm::FwdPtr< T >::FwdPtr | ( | Ptr< C > | f, |
Ptr< C > | b | ||
) | [inline] |
edm::FwdPtr< T >::FwdPtr | ( | ) | [inline] |
edm::FwdPtr< T >::~FwdPtr | ( | ) | [inline] |
Ptr<value_type> const& edm::FwdPtr< T >::backPtr | ( | ) | const [inline] |
Definition at line 120 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_.
Referenced by TopProjectorFwdPtrOverlap< Top, Bottom >::operator()(), and reco::PFCandidateWithSrcPtrFactory::operator()().
{ return backPtr_;}
T const* edm::FwdPtr< T >::get | ( | void | ) | const [inline] |
Returns C++ pointer to the item.
Definition at line 82 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::get(), edm::Ptr< T >::isNonnull(), and edm::FwdPtr< T >::ptr_.
bool edm::FwdPtr< T >::hasProductCache | ( | ) | const [inline] |
Definition at line 112 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::hasProductCache(), and edm::FwdPtr< T >::ptr_.
ProductID edm::FwdPtr< T >::id | ( | void | ) | const [inline] |
Accessor for product ID.
Definition at line 102 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::id(), edm::Ptr< T >::isNonnull(), and edm::FwdPtr< T >::ptr_.
bool edm::FwdPtr< T >::isAvailable | ( | ) | const [inline] |
Checks if collection is in memory or available in the event. No type checking is done.
Definition at line 96 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isAvailable(), and edm::FwdPtr< T >::ptr_.
bool edm::FwdPtr< T >::isNonnull | ( | ) | const [inline] |
Checks for non-null.
Definition at line 90 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isNonnull(), and edm::FwdPtr< T >::ptr_.
Referenced by edm::FwdPtr< T >::isNull().
bool edm::FwdPtr< T >::isNull | ( | ) | const [inline] |
Checks for null.
Definition at line 86 of file FwdPtr.h.
References edm::FwdPtr< T >::isNonnull().
Referenced by edm::FwdPtr< T >::operator!().
{return !isNonnull(); }
bool edm::FwdPtr< T >::isTransient | ( | ) | const [inline] |
Checks if this FwdPtr is transient (i.e. not persistable).
Definition at line 99 of file FwdPtr.h.
References edm::Ptr< T >::isTransient(), and edm::FwdPtr< T >::ptr_.
{return ptr_.isTransient();}
key_type edm::FwdPtr< T >::key | ( | ) | const [inline] |
Definition at line 110 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isNonnull(), edm::Ptr< T >::key(), and edm::FwdPtr< T >::ptr_.
bool edm::FwdPtr< T >::operator! | ( | ) | const [inline] |
Checks for null.
Definition at line 92 of file FwdPtr.h.
References edm::FwdPtr< T >::isNull().
{return isNull();}
T const& edm::FwdPtr< T >::operator* | ( | ) | const [inline] |
Dereference operator.
Definition at line 75 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isNonnull(), and edm::FwdPtr< T >::ptr_.
T const* edm::FwdPtr< T >::operator-> | ( | ) | const [inline] |
Member dereference operator.
Definition at line 79 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isNonnull(), and edm::FwdPtr< T >::ptr_.
void const* edm::FwdPtr< T >::product | ( | ) | const [inline] |
EDProductGetter const* edm::FwdPtr< T >::productGetter | ( | ) | const [inline] |
Accessor for product getter.
Definition at line 105 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::productGetter(), and edm::FwdPtr< T >::ptr_.
Ptr<value_type> const& edm::FwdPtr< T >::ptr | ( | ) | const [inline] |
Definition at line 119 of file FwdPtr.h.
References edm::FwdPtr< T >::ptr_.
Referenced by TopProjectorFwdPtrOverlap< Top, Bottom >::operator()().
{ return ptr_;}
RefCore const& edm::FwdPtr< T >::refCore | ( | ) | const [inline] |
Definition at line 114 of file FwdPtr.h.
References edm::FwdPtr< T >::backPtr_, edm::Ptr< T >::isNonnull(), edm::FwdPtr< T >::ptr_, and edm::Ptr< T >::refCore().
Ptr<value_type> edm::FwdPtr< T >::backPtr_ [private] |
Definition at line 127 of file FwdPtr.h.
Referenced by edm::FwdPtr< T >::backPtr(), edm::FwdPtr< T >::get(), edm::FwdPtr< T >::hasProductCache(), edm::FwdPtr< T >::id(), edm::FwdPtr< T >::isAvailable(), edm::FwdPtr< T >::isNonnull(), edm::FwdPtr< T >::key(), edm::FwdPtr< T >::operator*(), edm::FwdPtr< T >::operator->(), edm::FwdPtr< T >::productGetter(), and edm::FwdPtr< T >::refCore().
Ptr<value_type> edm::FwdPtr< T >::ptr_ [private] |
Definition at line 126 of file FwdPtr.h.
Referenced by edm::FwdPtr< T >::get(), edm::FwdPtr< T >::hasProductCache(), edm::FwdPtr< T >::id(), edm::FwdPtr< T >::isAvailable(), edm::FwdPtr< T >::isNonnull(), edm::FwdPtr< T >::isTransient(), edm::FwdPtr< T >::key(), edm::FwdPtr< T >::operator*(), edm::FwdPtr< T >::operator->(), edm::FwdPtr< T >::productGetter(), edm::FwdPtr< T >::ptr(), and edm::FwdPtr< T >::refCore().