#include <eventsource.h>
|
| void | AddListener (const std::shared_ptr< T > &listener) |
| |
| bool | RemoveListener (const std::shared_ptr< T > &listener) |
| |
| void | ClearListeners () |
| |
| void | Invoke (std::function< void(const std::shared_ptr< T > &)> callback) |
| |
| void | Invoke (std::function< void(const std::shared_ptr< T > &)> callback, const std::vector< std::shared_ptr< T >> &listeners) |
| |
| bool | Empty () |
| |
| void | CaptureListeners (std::vector< std::shared_ptr< T >> &listeners) |
| |
◆ IterType
◆ ListenerType
◆ ListType
◆ AddListener()
template<typename T>
| void ttv::EventSource< T >::AddListener |
( |
const std::shared_ptr< T > & |
listener | ) |
|
|
inline |
◆ CaptureListeners()
template<typename T>
| void ttv::EventSource< T >::CaptureListeners |
( |
std::vector< std::shared_ptr< T >> & |
listeners | ) |
|
|
inline |
◆ ClearListeners()
◆ Empty()
◆ FindListener()
◆ Invoke() [1/2]
template<typename T>
| void ttv::EventSource< T >::Invoke |
( |
std::function< void(const std::shared_ptr< T > &)> |
callback | ) |
|
|
inline |
◆ Invoke() [2/2]
template<typename T>
| void ttv::EventSource< T >::Invoke |
( |
std::function< void(const std::shared_ptr< T > &)> |
callback, |
|
|
const std::vector< std::shared_ptr< T >> & |
listeners |
|
) |
| |
|
inline |
◆ RemoveListener()
template<typename T>
| bool ttv::EventSource< T >::RemoveListener |
( |
const std::shared_ptr< T > & |
listener | ) |
|
|
inline |
◆ Tidy()
◆ mListeners
The documentation for this class was generated from the following file: