Public Member Functions | Private Attributes
BT::Signal< CallableArgs > Class Template Reference

#include <signal.h>

List of all members.

Public Member Functions

void notify (CallableArgs...args)
Subscriber subscribe (CallableFunction func)

Private Attributes

std::vector< std::weak_ptr
< CallableFunction > > 
subscribers_

Detailed Description

template<typename... CallableArgs>
class BT::Signal< CallableArgs >

Super simple Signal/Slop implementation, AKA "Observable pattern". The subscriber is active until it goes out of scope or Subscriber::reset() is called.

Definition at line 15 of file signal.h.


Member Function Documentation

template<typename... CallableArgs>
void BT::Signal< CallableArgs >::notify ( CallableArgs...  args) [inline]

Definition at line 21 of file signal.h.

template<typename... CallableArgs>
Subscriber BT::Signal< CallableArgs >::subscribe ( CallableFunction  func) [inline]

Definition at line 37 of file signal.h.


Member Data Documentation

template<typename... CallableArgs>
std::vector<std::weak_ptr<CallableFunction> > BT::Signal< CallableArgs >::subscribers_ [private]

Definition at line 45 of file signal.h.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 03:50:10