Public Member Functions | Private Attributes | List of all members
arttest::MockRun Class Reference

#include <MockRun.h>

Public Member Functions

template<typename T , typename... ARGS>
void put (ARGS &&...args)
 
template<typename T >
get () const
 

Private Attributes

std::vector< art::EDProduct * > products_
 

Detailed Description

Definition at line 12 of file MockRun.h.

Member Function Documentation

template<typename T >
T arttest::MockRun::get ( ) const
inline

Definition at line 24 of file MockRun.h.

25  {
26  // Retrieve and aggregate the products
27  auto result = static_cast<art::Wrapper<T>&>(*products_[0]);
28  for (auto it = products_.cbegin() + 1, e = products_.cend(); it != e;
29  ++it) {
30  result.combine(*it);
31  }
32  return *result.product();
33  }
static QCString result
const double e
std::vector< art::EDProduct * > products_
Definition: MockRun.h:36
template<typename T , typename... ARGS>
void arttest::MockRun::put ( ARGS &&...  args)
inline

Definition at line 16 of file MockRun.h.

17  {
18  auto prod = std::make_unique<T>(std::forward<ARGS>(args)...);
19  products_.push_back(new art::Wrapper<T>(std::move(prod)));
20  }
static QCString args
Definition: declinfo.cpp:674
def move(depos, offset)
Definition: depos.py:107
std::vector< art::EDProduct * > products_
Definition: MockRun.h:36

Member Data Documentation

std::vector<art::EDProduct*> arttest::MockRun::products_
private

Definition at line 36 of file MockRun.h.


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