VectorInputSourceDescription

Macros

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
#ifndef FWCore_Sources_VectorInputSourceDescription_h
#define FWCore_Sources_VectorInputSourceDescription_h

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

VectorInputSourceDescription : the stuff that is needed to configure
a VectorinputSource that does not come in through the ParameterSet  
----------------------------------------------------------------------*/

#include "FWCore/Framework/interface/PreallocationConfiguration.h"

#include <memory>

namespace edm {
  class PreallocationConfiguration;
  class ProductRegistry;

  struct VectorInputSourceDescription {
    VectorInputSourceDescription() : productRegistry_(nullptr) {}

    VectorInputSourceDescription(std::shared_ptr<ProductRegistry> preg, PreallocationConfiguration const& allocations)
        : productRegistry_(preg), allocations_(&allocations) {}

    std::shared_ptr<ProductRegistry> productRegistry_;
    PreallocationConfiguration const* allocations_;
  };
}  // namespace edm

#endif