◆ SubscriberList() [1/2]
| active::event::Publisher::SubscriberList::SubscriberList |
( |
| ) |
|
|
inline |
◆ SubscriberList() [2/2]
| active::event::Publisher::SubscriberList::SubscriberList |
( |
const SubscriberList & | source | ) |
|
|
inline |
Copy constructor source: The object to copy
◆ ~SubscriberList()
| active::event::Publisher::SubscriberList::~SubscriberList |
( |
| ) |
|
|
inline |
◆ add() [1/2]
| bool active::event::Publisher::SubscriberList::add |
( |
std::shared_ptr< Subscriber > | subscriber | ) |
|
|
inline |
Add a managed subscriber, i.e. the subscription continues until the publisher is explicitly instructed to end it
- Parameters
-
| subscriber | The new subscriber |
- Returns
- True if subscriber was added
◆ add() [2/2]
| bool active::event::Publisher::SubscriberList::add |
( |
std::weak_ptr< Subscriber > | subscriber | ) |
|
|
inline |
Add a casual subscriber, i.e. the subscription ends as soon as the subscriber disappears
- Parameters
-
| subscriber | The new subscriber |
- Returns
- True if subscriber was added
◆ filter()
Filter the subscribers to remove redundant items and optionally find subscriptions to a specified event (from the remainder)
- Parameters
-
| eventID | An event identifier to filter the subscribers by (nullopt = pool all active subscribers) |
- Returns
- The filtered subscribers
◆ remove() [1/2]
| bool active::event::Publisher::SubscriberList::remove |
( |
const Subscriber & | subscriber | ) |
|
|
inline |
Remove a subscriber (by memory address)
- Parameters
-
| subscriber | A reference to the subscriber to remove |
- Returns
- True if subscriber was removed
◆ remove() [2/2]
| bool active::event::Publisher::SubscriberList::remove |
( |
const utility::Guid & | id | ) |
|
|
inline |
Remove a subscriber by ID
- Parameters
-
| id | The ID of the subscriber to remove |
- Returns
- True if subscriber was removed
The documentation for this class was generated from the following file:
- /Users/rwessel/Documents/Development/ActiveLib/Active/Event/Publisher.cpp