Specialize the void case.
More...
#include <subscriber_list.hpp>
template<class T>
class rav::SubscriberList< T, void >
Specialize the void case.
Definition at line 220 of file subscriber_list.hpp.
◆ SubscriberList() [1/3]
◆ SubscriberList() [2/3]
◆ SubscriberList() [3/3]
◆ ~SubscriberList()
◆ add()
Adds the given subscriber to the list.
If subscriber is already in the list it will not be added.
- Parameters
-
| subscriber | The subscriber to add. |
- Returns
- true if the subscriber was added, or false if it was already in the list.
Definition at line 263 of file subscriber_list.hpp.
◆ add_or_update_context()
Adds the given subscriber to the list.
If subscriber is already in the list it will be updated with the new context.
- Parameters
-
| subscriber | The subscriber to add. |
| context | The context to add. |
- Returns
- true if the subscriber was added, or false if it was already in the list. In both cases the context will be updated.
Definition at line 109 of file subscriber_list.hpp.
◆ begin() [1/2]
◆ begin() [2/2]
◆ clear()
◆ contains()
Checks if the list contains the given subscriber.
- Parameters
-
| subscriber | The subscriber to check. |
- Returns
- true if the list contains the subscriber, or false if not.
Definition at line 327 of file subscriber_list.hpp.
◆ empty()
◆ end() [1/2]
◆ end() [2/2]
◆ foreach()
template<class T>
| void rav::SubscriberList< T, void >::foreach |
( |
const std::function< void(T *)> & | f, |
|
|
const T * | excluding = nullptr ) |
|
inline |
Calls given function for each subscriber.
- Parameters
-
| f | The function to call for each subscriber. Must be not null. |
| excluding | The subscriber to exclude from the call. |
Definition at line 300 of file subscriber_list.hpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ remove()
Removes the given subscriber from the list.
- Parameters
-
| subscriber | The subscriber to remove. |
- Returns
- true if the subscriber was removed, or false if it was not in the list.
Definition at line 279 of file subscriber_list.hpp.
◆ size()
◆ update_context()
Updates the context of the given subscriber.
- Parameters
-
| subscriber | The subscriber to update. |
| context | The new context. |
- Returns
- true if the subscriber was updated, or false if it was not in the list.
Definition at line 126 of file subscriber_list.hpp.
The documentation for this class was generated from the following file: