#include <signal.h>
Public Member Functions | |
void | notify (CallableArgs...args) |
Subscriber | subscribe (CallableFunction func) |
Private Attributes | |
std::vector< std::weak_ptr < CallableFunction > > | subscribers_ |
Super simple Signal/Slop implementation, AKA "Observable pattern". The subscriber is active until it goes out of scope or Subscriber::reset() is called.
void BT::Signal< CallableArgs >::notify | ( | CallableArgs... | args | ) | [inline] |
Subscriber BT::Signal< CallableArgs >::subscribe | ( | CallableFunction | func | ) | [inline] |
std::vector<std::weak_ptr<CallableFunction> > BT::Signal< CallableArgs >::subscribers_ [private] |