CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WrapperBase.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3 ----------------------------------------------------------------------*/
4 
7 #include <cassert>
8 
9 namespace edm {
11 
13 
15  std::vector<void const*>& pointers,
16  helper_vector_ptr& helpers) const {
17  // This should never be called with non-empty arguments, or an
18  // invalid ID; any attempt to do so is an indication of a coding
19  // error.
20  assert(id.isValid());
21  assert(pointers.empty());
22  assert(helpers.get() == 0);
23 
24  do_fillView(id, pointers, helpers);
25  }
26 
27  void WrapperBase::setPtr(std::type_info const& iToType,
28  unsigned long iIndex,
29  void const*& oPtr) const {
30  do_setPtr(iToType, iIndex, oPtr);
31  }
32 
33  void
34  WrapperBase::fillPtrVector(std::type_info const& iToType,
35  std::vector<unsigned long> const& iIndicies,
36  std::vector<void const*>& oPtr) const {
37  do_fillPtrVector(iToType, iIndicies, oPtr);
38  }
39 
40 }
void setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const
Definition: WrapperBase.cc:27
virtual void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const =0
virtual void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const =0
virtual ~WrapperBase()
Definition: WrapperBase.cc:12
void fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const
Definition: WrapperBase.cc:34
std::shared_ptr< reftobase::RefVectorHolderBase > helper_vector_ptr
Definition: EDProductfwd.h:47
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, helper_vector_ptr &helpers) const =0
void fillView(ProductID const &id, std::vector< void const * > &view, helper_vector_ptr &helpers) const
Definition: WrapperBase.cc:14