#include <Signal.h>
Public Types | |
typedef std::vector< slot_type > | slot_list_type |
typedef std::function< T > | slot_type |
Public Member Functions | |
template<typename U > | |
void | connect (U iFunc) |
template<typename U > | |
void | connect_front (U iFunc) |
template<typename... Args> | |
void | emit (Args &&...args) const |
template<typename... Args> | |
void | operator() (Args &&...args) const |
Signal () | |
slot_list_type const & | slots () const |
~Signal () | |
Private Member Functions | |
const Signal & | operator= (const Signal &) |
Signal (const Signal &) | |
Private Attributes | |
slot_list_type | m_slots |
typedef std::vector<slot_type> edm::signalslot::Signal< T >::slot_list_type |
typedef std::function<T> edm::signalslot::Signal< T >::slot_type |
edm::signalslot::Signal< T >::Signal | ( | ) |
edm::signalslot::Signal< T >::~Signal | ( | ) |
edm::signalslot::Signal< T >::Signal | ( | const Signal< T > & | ) | [private] |
void edm::signalslot::Signal< T >::connect | ( | U | iFunc | ) | [inline] |
Definition at line 64 of file Signal.h.
Referenced by edm::ActivityRegistry::connectGlobals(), edm::ActivityRegistry::connectLocals(), PrintLoadingPlugins::PrintLoadingPlugins(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPreBeginLumi(), edm::ActivityRegistry::watchPreBeginRun(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEndLumi(), edm::ActivityRegistry::watchPreEndRun(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginLumi(), edm::ActivityRegistry::watchPreModuleBeginRun(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndLumi(), edm::ActivityRegistry::watchPreModuleEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathBeginLumi(), edm::ActivityRegistry::watchPrePathBeginRun(), edm::ActivityRegistry::watchPrePathEndLumi(), edm::ActivityRegistry::watchPrePathEndRun(), edm::ActivityRegistry::watchPreProcessEvent(), edm::ActivityRegistry::watchPreProcessPath(), edm::ActivityRegistry::watchPreSource(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceLumi(), and edm::ActivityRegistry::watchPreSourceRun().
{ m_slots.push_back(std::function<T>(iFunc)); }
void edm::signalslot::Signal< T >::connect_front | ( | U | iFunc | ) | [inline] |
Definition at line 69 of file Signal.h.
Referenced by edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginLumi(), edm::ActivityRegistry::watchPostBeginRun(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEndLumi(), edm::ActivityRegistry::watchPostEndRun(), edm::ActivityRegistry::watchPostForkReacquireResources(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginLumi(), edm::ActivityRegistry::watchPostModuleBeginRun(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndLumi(), edm::ActivityRegistry::watchPostModuleEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathBeginLumi(), edm::ActivityRegistry::watchPostPathBeginRun(), edm::ActivityRegistry::watchPostPathEndLumi(), edm::ActivityRegistry::watchPostPathEndRun(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostProcessPath(), edm::ActivityRegistry::watchPostSource(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), and edm::ActivityRegistry::watchPreForkReleaseResources().
void edm::signalslot::Signal< T >::emit | ( | Args &&... | args | ) | const [inline] |
Definition at line 48 of file Signal.h.
Referenced by edm::signalslot::Signal< void(const std::string &, const std::string &)>::operator()().
{ for(auto& slot:m_slots) { slot(std::forward<Args>(args)...); } }
void edm::signalslot::Signal< T >::operator() | ( | Args &&... | args | ) | const [inline] |
const Signal& edm::signalslot::Signal< T >::operator= | ( | const Signal< T > & | ) | [private] |
slot_list_type const& edm::signalslot::Signal< T >::slots | ( | ) | const [inline] |
slot_list_type edm::signalslot::Signal< T >::m_slots [private] |
Definition at line 79 of file Signal.h.
Referenced by edm::signalslot::Signal< void(const std::string &, const std::string &)>::connect(), edm::signalslot::Signal< void(const std::string &, const std::string &)>::connect_front(), edm::signalslot::Signal< void(const std::string &, const std::string &)>::emit(), and edm::signalslot::Signal< void(const std::string &, const std::string &)>::slots().