CMS 3D CMS Logo

Public Member Functions | Private Member Functions

edm::reftobase::RefHolderBase Class Reference

#include <RefHolderBase.h>

Inheritance diagram for edm::reftobase::RefHolderBase:
edm::reftobase::RefHolder< REF >

List of all members.

Public Member Functions

virtual RefHolderBaseclone () const =0
virtual bool fillRefIfMyTypeMatches (RefHolderBase &ref, std::string &msg) const =0
template<class T >
T const * getPtr () const
virtual bool hasProductCache () const =0
virtual ProductID id () const =0
virtual bool isAvailable () const =0
virtual bool isEqualTo (RefHolderBase const &rhs) const =0
virtual size_t key () const =0
virtual std::auto_ptr
< RefVectorHolderBase
makeVectorHolder () const =0
virtual void const * product () const =0
virtual EDProductGetter const * productGetter () const =0
 RefHolderBase ()
virtual ~RefHolderBase ()

Private Member Functions

virtual void const * pointerToType (Reflex::Type const &toType) const =0

Detailed Description

Definition at line 18 of file RefHolderBase.h.


Constructor & Destructor Documentation

edm::reftobase::RefHolderBase::RefHolderBase ( ) [inline]

Definition at line 20 of file RefHolderBase.h.

{ }
edm::reftobase::RefHolderBase::~RefHolderBase ( ) [inline, virtual]

Definition at line 63 of file RefHolderBase.h.

    { }

Member Function Documentation

virtual RefHolderBase* edm::reftobase::RefHolderBase::clone ( ) const [pure virtual]
virtual bool edm::reftobase::RefHolderBase::fillRefIfMyTypeMatches ( RefHolderBase ref,
std::string &  msg 
) const [pure virtual]
template<class T >
T const * edm::reftobase::RefHolderBase::getPtr ( ) const

Definition at line 68 of file RefHolderBase.h.

References compareJSON::const, and pointerToType().

    {
      static Reflex::Type s_type(Reflex::Type::ByTypeInfo(typeid(T)));
      return static_cast<T const*>(pointerToType(s_type));
    }
virtual bool edm::reftobase::RefHolderBase::hasProductCache ( ) const [pure virtual]
virtual ProductID edm::reftobase::RefHolderBase::id ( ) const [pure virtual]
virtual bool edm::reftobase::RefHolderBase::isAvailable ( ) const [pure virtual]

Checks if product collection is in memory or available in the Event. No type checking is done.

Implemented in edm::reftobase::RefHolder< REF >.

Referenced by edm::reftobase::IndirectHolder< T >::isAvailable().

virtual bool edm::reftobase::RefHolderBase::isEqualTo ( RefHolderBase const &  rhs) const [pure virtual]
virtual size_t edm::reftobase::RefHolderBase::key ( ) const [pure virtual]
virtual std::auto_ptr<RefVectorHolderBase> edm::reftobase::RefHolderBase::makeVectorHolder ( ) const [pure virtual]
virtual void const* edm::reftobase::RefHolderBase::pointerToType ( Reflex::Type const &  toType) const [private, pure virtual]

Implemented in edm::reftobase::RefHolder< REF >.

Referenced by getPtr().

virtual void const* edm::reftobase::RefHolderBase::product ( ) const [pure virtual]
virtual EDProductGetter const* edm::reftobase::RefHolderBase::productGetter ( ) const [pure virtual]