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

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Common/Wrapper.h"

Static Public Member Functions

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

Detailed Description

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

Definition at line 29 of file Wrapper.h.

Member Function Documentation

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

Definition at line 250 of file Wrapper.h.

References getGoodRuns4SAM::tag.

Referenced by art::Wrapper< T >::do_createEmptySampledProduct().

251  {
252  auto emptySampledProduct = std::make_unique<Sampled<T>>(tag);
253  return std::make_unique<Wrapper<Sampled<T>>>(move(emptySampledProduct));
254  }
template<typename T >
static void art::prevent_recursion< T >::insert_if_sampled_product ( T ,
std::string const &  dataset,
SubRunID const &  ,
std::unique_ptr< EDProduct  
)
inlinestatic

Definition at line 257 of file Wrapper.h.

References art::errors::LogicError, and T.

Referenced by art::Wrapper< T >::do_insertIfSampledProduct().

261  {
263  << "An attempt was made to insert a product from dataset '" << dataset
264  << "'\ninto a non-sampled product of type '"
265  << cet::demangle_symbol(typeid(T).name()) << "'.\n"
266  << "Please contact artists@fnal.gov for guidance.";
267  }
const XML_Char * name
Definition: expat.h:151
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
double T
Definition: Xdiff_gwt.C:5

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