CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  FillViewHelperVector& 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.empty());
23 
24  do_fillView(id, pointers, helpers);
25  }
26 
27  void WrapperBase::setPtr(std::type_info const& iToType, unsigned long iIndex, void const*& oPtr) const {
28  do_setPtr(iToType, iIndex, oPtr);
29  }
30 
31  void WrapperBase::fillPtrVector(std::type_info const& iToType,
32  std::vector<unsigned long> const& iIndicies,
33  std::vector<void const*>& oPtr) const {
34  do_fillPtrVector(iToType, iIndicies, oPtr);
35  }
36 
37 } // namespace edm
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
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
assert(be >=bs)
void fillView(ProductID const &id, std::vector< void const * > &view, FillViewHelperVector &helpers) const
Definition: WrapperBase.cc:14
~WrapperBase() override
Definition: WrapperBase.cc:12
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const =0
void fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const
Definition: WrapperBase.cc:31
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector