CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Friends
edm::reftobase::IndirectHolder< T > Class Template Reference

#include <EDProductfwd.h>

Inheritance diagram for edm::reftobase::IndirectHolder< T >:
edm::reftobase::BaseHolder< T >

Public Member Functions

virtual BaseHolder< T > * clone () const
 
virtual bool fillRefIfMyTypeMatches (RefHolderBase &fillme, std::string &msg) const
 
virtual T const * getPtr () const
 
virtual bool hasProductCache () const
 
virtual std::auto_ptr
< RefHolderBase
holder () const
 
virtual ProductID id () const
 
 IndirectHolder ()
 
 IndirectHolder (std::shared_ptr< RefHolderBase > p)
 
 IndirectHolder (IndirectHolder const &other)
 
virtual bool isAvailable () const
 
virtual bool isEqualTo (BaseHolder< T > const &rhs) const
 
virtual size_t key () const
 
virtual std::auto_ptr
< RefVectorHolderBase
makeVectorBaseHolder () const
 
virtual std::auto_ptr
< BaseVectorHolder< T > > 
makeVectorHolder () const
 
IndirectHolderoperator= (IndirectHolder const &rhs)
 
virtual void const * product () const
 
virtual EDProductGetter const * productGetter () const
 
void swap (IndirectHolder &other)
 
virtual ~IndirectHolder ()
 
- Public Member Functions inherited from edm::reftobase::BaseHolder< T >
 BaseHolder ()
 
void swap (BaseHolder &)
 
virtual ~BaseHolder ()
 

Static Public Member Functions

static short Class_Version ()
 
- Static Public Member Functions inherited from edm::reftobase::BaseHolder< T >
static short Class_Version ()
 

Private Attributes

RefHolderBasehelper_
 

Friends

class IndirectVectorHolder< T >
 
class RefToBase< T >
 

Additional Inherited Members

- Protected Member Functions inherited from edm::reftobase::BaseHolder< T >
 BaseHolder (BaseHolder const &other)
 
BaseHolderoperator= (BaseHolder const &rhs)
 

Detailed Description

template<typename T>
class edm::reftobase::IndirectHolder< T >

Definition at line 37 of file EDProductfwd.h.

Constructor & Destructor Documentation

template<typename T>
edm::reftobase::IndirectHolder< T >::IndirectHolder ( )
inline

Definition at line 29 of file IndirectHolder.h.

29 : BaseHolder<T>(), helper_( 0 ) { }
template<typename T >
edm::reftobase::IndirectHolder< T >::IndirectHolder ( std::shared_ptr< RefHolderBase p)
inline

Definition at line 68 of file IndirectHolder.h.

68  :
69  BaseHolder<T>(), helper_(p->clone())
70  { }
template<typename T >
edm::reftobase::IndirectHolder< T >::IndirectHolder ( IndirectHolder< T > const &  other)
inline

Definition at line 74 of file IndirectHolder.h.

74  :
75  BaseHolder<T>(other), helper_(other.helper_->clone())
76  { }
template<typename T >
edm::reftobase::IndirectHolder< T >::~IndirectHolder ( )
virtual

Definition at line 98 of file IndirectHolder.h.

99  {
100  delete helper_;
101  }

Member Function Documentation

template<typename T>
static short edm::reftobase::IndirectHolder< T >::Class_Version ( )
inlinestatic

Definition at line 56 of file IndirectHolder.h.

58 :
59  friend class RefToBase<T>;
long double T
template<typename T >
BaseHolder< T > * edm::reftobase::IndirectHolder< T >::clone ( void  ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 105 of file IndirectHolder.h.

106  {
107  return new IndirectHolder<T>(*this);
108  }
template<typename T >
bool edm::reftobase::IndirectHolder< T >::fillRefIfMyTypeMatches ( RefHolderBase fillme,
std::string &  msg 
) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 159 of file IndirectHolder.h.

161  {
162  return helper_->fillRefIfMyTypeMatches(fillme, msg);
163  }
virtual bool fillRefIfMyTypeMatches(RefHolderBase &ref, std::string &msg) const =0
template<typename T >
T const * edm::reftobase::IndirectHolder< T >::getPtr ( ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 112 of file IndirectHolder.h.

113  {
114  return helper_-> template getPtr<T>();
115  }
template<typename T >
bool edm::reftobase::IndirectHolder< T >::hasProductCache ( ) const
inlinevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 139 of file IndirectHolder.h.

139  {
140  return helper_->hasProductCache();
141  }
virtual bool hasProductCache() const =0
template<typename T >
std::auto_ptr< RefHolderBase > edm::reftobase::IndirectHolder< T >::holder ( ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 166 of file IndirectHolder.h.

166  {
167  return std::auto_ptr<RefHolderBase>( helper_->clone() );
168  }
virtual RefHolderBase * clone() const =0
template<typename T >
ProductID edm::reftobase::IndirectHolder< T >::id ( void  ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 119 of file IndirectHolder.h.

References edm::ProductID::id().

120  {
121  return helper_->id();
122  }
virtual ProductID id() const =0
template<typename T>
virtual bool edm::reftobase::IndirectHolder< T >::isAvailable ( ) const
inlinevirtual

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

Implements edm::reftobase::BaseHolder< T >.

Definition at line 53 of file IndirectHolder.h.

53 { return helper_->isAvailable(); }
virtual bool isAvailable() const =0
template<typename T>
bool edm::reftobase::IndirectHolder< T >::isEqualTo ( BaseHolder< T > const &  rhs) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 151 of file IndirectHolder.h.

References compareJSON::const, h, edm::reftobase::IndirectHolder< T >::helper_, and edm::reftobase::IndirectHolder< T >::isEqualTo().

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

152  {
153  IndirectHolder const* h = dynamic_cast<IndirectHolder const*>(&rhs);
154  return h && helper_->isEqualTo(*h->helper_);
155  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
string const
Definition: compareJSON.py:14
virtual bool isEqualTo(RefHolderBase const &rhs) const =0
template<typename T >
size_t edm::reftobase::IndirectHolder< T >::key ( ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 126 of file IndirectHolder.h.

127  {
128  return helper_->key();
129  }
virtual size_t key() const =0
template<typename T >
std::auto_ptr< RefVectorHolderBase > edm::reftobase::IndirectHolder< T >::makeVectorBaseHolder ( ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 194 of file IndirectHolder.h.

References edm::reftobase::IndirectHolder< T >::makeVectorHolder().

194  {
195  return helper_->makeVectorHolder();
196  }
virtual std::auto_ptr< RefVectorHolderBase > makeVectorHolder() const =0
template<typename T >
std::auto_ptr< BaseVectorHolder< T > > edm::reftobase::IndirectHolder< T >::makeVectorHolder ( ) const
virtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 187 of file IndirectHolder.h.

References AlCaHLTBitMon_ParallelJobs::p.

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

187  {
188  std::auto_ptr<RefVectorHolderBase> p = helper_->makeVectorHolder();
189  std::shared_ptr<RefVectorHolderBase> sp( p.release() );
190  return std::auto_ptr<BaseVectorHolder<T> >( new IndirectVectorHolder<T>( sp ) );
191  }
virtual std::auto_ptr< RefVectorHolderBase > makeVectorHolder() const =0
template<typename T >
IndirectHolder< T > & edm::reftobase::IndirectHolder< T >::operator= ( IndirectHolder< T > const &  rhs)
inline

Definition at line 90 of file IndirectHolder.h.

References edm::reftobase::swap(), and groupFilesInBlocks::temp.

91  {
92  IndirectHolder temp(rhs);
93  swap(temp);
94  return *this;
95  }
void swap(IndirectHolder &other)
template<typename T >
void const * edm::reftobase::IndirectHolder< T >::product ( ) const
inlinevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 145 of file IndirectHolder.h.

145  {
146  return helper_->product();
147  }
virtual void const * product() const =0
template<typename T >
EDProductGetter const * edm::reftobase::IndirectHolder< T >::productGetter ( ) const
inlinevirtual

Implements edm::reftobase::BaseHolder< T >.

Definition at line 133 of file IndirectHolder.h.

133  {
134  return helper_->productGetter();
135  }
virtual EDProductGetter const * productGetter() const =0
template<typename T >
void edm::reftobase::IndirectHolder< T >::swap ( IndirectHolder< T > &  other)
inline

Definition at line 81 of file IndirectHolder.h.

References edm::reftobase::IndirectHolder< T >::helper_, edm::reftobase::BaseHolder< T >::swap(), and std::swap().

Referenced by edm::reftobase::swap().

82  {
83  this->BaseHolder<T>::swap(other);
84  std::swap(helper_, other.helper_);
85  }
void swap(BaseHolder &)
Definition: BaseHolder.h:109
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)

Friends And Related Function Documentation

template<typename T>
friend class IndirectVectorHolder< T >
friend

Definition at line 60 of file IndirectHolder.h.

template<typename T>
friend class RefToBase< T >
friend

Definition at line 59 of file IndirectHolder.h.

Member Data Documentation

template<typename T>
RefHolderBase* edm::reftobase::IndirectHolder< T >::helper_
private