#include <src/vt/pipe/signal/signal_holder.h>
template<typename SignalT>
SignalHolder struct
Public types
- using DataType = typename SignalT::DataType
- using DataPtrType = DataType*
- using SigCountType = int32_t
- using SignalListType = std::vector<SignalT>
-
using ListenerBaseType = callback::
CallbackBase<SignalT> - using ListenerType = std::unique_ptr<ListenerBaseType>
- using ListenerListType = std::list<ListenerType>
- using ListenerListIterType = typename ListenerListType::iterator
- using ListenerPtrType = ListenerBaseType*
- using ListenerMapType = std::unordered_map<PipeType, ListenerListType>
- using SignalMapType = std::unordered_map<PipeType, SignalListType>
- using CountMapType = std::unordered_map<PipeType, SigCountType>
- using ListenerMapIterType = typename ListenerMapType::iterator
Constructors, destructors, conversion operators
Public functions
- void addSignal(PipeType const& pid, DataPtrType in_data)
- void removeListener(PipeType const& pid, ListenerPtrType listener)
- auto removeListener(ListenerMapIterType map_iter, ListenerListIterType iter) -> ListenerListIterType
- void clearAllListeners(PipeType const& pid)
- void clearAllSignals(PipeType const& pid)
- void clearPipe(PipeType const& pid)
- void deliverAll(PipeType const& pid, DataPtrType data)
- void addListener(PipeType const& pid, ListenerType&& cb)
- void setCount(PipeType const& pid, SigCountType const& count)
- auto getCount(PipeType const& pid) -> SigCountType
- void applySignal(ListenerPtrType listener, DataPtrType data, PipeType const& pid)
- auto finished(ListenerPtrType listener) const -> bool
- auto exists(PipeType const& pipe) const -> bool
- auto getID() const -> unsigned
- void clearAll()