Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
/*----------------------------------------------------------------------

----------------------------------------------------------------------*/

#include "DataFormats/Common/interface/WrapperBase.h"
#include "DataFormats/Provenance/interface/ProductID.h"
#include <cassert>

namespace edm {
  WrapperBase::WrapperBase() : ViewTypeChecker() {}

  WrapperBase::~WrapperBase() {}

  void WrapperBase::fillView(ProductID const& id,
                             std::vector<void const*>& pointers,
                             FillViewHelperVector& helpers) const {
    // This should never be called with non-empty arguments, or an
    // invalid ID; any attempt to do so is an indication of a coding
    // error.
    assert(id.isValid());
    assert(pointers.empty());
    assert(helpers.empty());

    do_fillView(id, pointers, helpers);
  }

  void WrapperBase::setPtr(std::type_info const& iToType, unsigned long iIndex, void const*& oPtr) const {
    do_setPtr(iToType, iIndex, oPtr);
  }

  void WrapperBase::fillPtrVector(std::type_info const& iToType,
                                  std::vector<unsigned long> const& iIndicies,
                                  std::vector<void const*>& oPtr) const {
    do_fillPtrVector(iToType, iIndicies, oPtr);
  }

}  // namespace edm