Static Public Member Functions | List of all members
art::prevent_recursion< Sampled< T > > Struct Template Reference

#include <Wrapper.h>

Static Public Member Functions

static std::unique_ptr< EDProductcreate_empty_sampled_product (InputTag const &)
 
static void insert_if_sampled_product (Sampled< T > &obj, std::string const &dataset, SubRunID const &id, std::unique_ptr< EDProduct > product)
 

Detailed Description

template<typename T>
struct art::prevent_recursion< Sampled< T > >

Definition at line 282 of file Wrapper.h.

Member Function Documentation

template<typename T >
static std::unique_ptr<EDProduct> art::prevent_recursion< Sampled< T > >::create_empty_sampled_product ( InputTag const &  )
inlinestatic

Definition at line 284 of file Wrapper.h.

285  {
287  << "An attempt was made to create an empty sampled product\n"
288  << "for a sampled product. This type of recursion is not allowed.\n"
289  << "Please contact artists@fnal.gov for guidance.";
290  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
template<typename T >
static void art::prevent_recursion< Sampled< T > >::insert_if_sampled_product ( Sampled< T > &  obj,
std::string const &  dataset,
SubRunID const &  id,
std::unique_ptr< EDProduct product 
)
inlinestatic

Definition at line 293 of file Wrapper.h.

297  {
298  auto& wp = dynamic_cast<Wrapper<T>&>(*product);
299  obj.insert(dataset, id, std::move(wp.obj));
300  }
def move(depos, offset)
Definition: depos.py:107

The documentation for this struct was generated from the following file: