BehaviorTree
Core Library to create and execute Behavior Trees
Loading...
Searching...
No Matches
BT::Signal< CallableArgs > Class Template Reference

#include <signal.h>

Public Types

using CallableFunction = std::function< void(CallableArgs...)>
 
using Subscriber = std::shared_ptr< CallableFunction >
 

Public Member Functions

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

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.


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