CMS 3D CMS Logo

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,
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
edm::FillViewHelperVector
std::vector< std::pair< edm::ProductID, unsigned long > > FillViewHelperVector
Definition: FillViewHelperVector.h:30
edm::WrapperBase::do_setPtr
virtual void do_setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const =0
edm
HLT enums.
Definition: AlignableModifier.h:19
cms::cuda::assert
assert(be >=bs)
edm::ViewTypeChecker
Definition: ViewTypeChecker.h:13
edm::WrapperBase::fillPtrVector
void fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const
Definition: WrapperBase.cc:31
edm::WrapperBase::do_fillPtrVector
virtual void do_fillPtrVector(std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr) const =0
ProductID.h
edm::WrapperBase::setPtr
void setPtr(std::type_info const &iToType, unsigned long iIndex, void const *&oPtr) const
Definition: WrapperBase.cc:27
WrapperBase.h
helpers
Definition: makeCompositeCandidate.h:8
edm::WrapperBase::WrapperBase
WrapperBase()
Definition: WrapperBase.cc:10
edm::WrapperBase::~WrapperBase
~WrapperBase() override
Definition: WrapperBase.cc:12
edm::WrapperBase::do_fillView
virtual void do_fillView(ProductID const &id, std::vector< void const * > &pointers, FillViewHelperVector &helpers) const =0
edm::ProductID
Definition: ProductID.h:27
edm::WrapperBase::fillView
void fillView(ProductID const &id, std::vector< void const * > &view, FillViewHelperVector &helpers) const
Definition: WrapperBase.cc:14