CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WrapperInterfaceBase.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3 ----------------------------------------------------------------------*/
4 
7 
8 namespace edm {
10 
12 
13  void WrapperInterfaceBase::fillView(void const* me,
14  ProductID const& id,
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(me, id, pointers, helpers);
25  }
26 
27  void WrapperInterfaceBase::setPtr(void const* me,
28  std::type_info const& iToType,
29  unsigned long iIndex,
30  void const*& oPtr) const {
31  do_setPtr(me, iToType, iIndex, oPtr);
32  }
33 
34  void
36  std::type_info const& iToType,
37  std::vector<unsigned long> const& iIndicies,
38  std::vector<void const*>& oPtr) const {
39  do_fillPtrVector(me, iToType, iIndicies, oPtr);
40  }
41 }
boost::shared_ptr< reftobase::RefVectorHolderBase > helper_vector_ptr
Definition: EDProductfwd.h:46
virtual void do_fillPtrVector(void const *me, std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const =0
virtual void do_setPtr(void const *me, std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const =0
virtual void do_fillView(void const *me, ProductID const &id, std::vector< void const * > &pointers, helper_vector_ptr &helpers) const =0
void fillView(void const *me, ProductID const &id, std::vector< void const * > &view, helper_vector_ptr &helpers) const
void setPtr(void const *me, std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const
void fillPtrVector(void const *me, std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const