Public Member Functions | Private Attributes | List of all members
art::UpdateOutputCallbacks Class Reference

#include <UpdateOutputCallbacks.h>

Public Member Functions

 UpdateOutputCallbacks ()=default
 
 UpdateOutputCallbacks (UpdateOutputCallbacks const &)=delete
 
void registerCallback (ProductListUpdatedCallback cb)
 
void invoke (ProductTables const &)
 

Private Attributes

std::vector< ProductListUpdatedCallbackcallbacks_ {}
 

Detailed Description

Definition at line 56 of file UpdateOutputCallbacks.h.

Constructor & Destructor Documentation

art::UpdateOutputCallbacks::UpdateOutputCallbacks ( )
explicitdefault
art::UpdateOutputCallbacks::UpdateOutputCallbacks ( UpdateOutputCallbacks const &  )
delete

Member Function Documentation

void art::UpdateOutputCallbacks::invoke ( ProductTables const &  tables)

Definition at line 10 of file UpdateOutputCallbacks.cc.

11 {
12  HEP_CONCURRENCY_ASSERT_ONLY_ONE_THREAD();
14  [&tables](auto const& callback) { callback(tables); });
15 }
std::vector< ProductListUpdatedCallback > callbacks_
auto for_all(FwdCont &, Func)
void art::UpdateOutputCallbacks::registerCallback ( ProductListUpdatedCallback  cb)

Definition at line 18 of file UpdateOutputCallbacks.cc.

19 {
20  HEP_CONCURRENCY_ASSERT_ONLY_ONE_THREAD();
21  callbacks_.push_back(cb);
22 }
std::vector< ProductListUpdatedCallback > callbacks_

Member Data Documentation

std::vector<ProductListUpdatedCallback> art::UpdateOutputCallbacks::callbacks_ {}
private

Definition at line 66 of file UpdateOutputCallbacks.h.


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