|
| | Subscription (Subscription &&other) noexcept |
| Subscription & | operator= (Subscription &&other) noexcept |
| | Subscription ()=default |
| | ~Subscription () |
| void | attachTo (std::shared_ptr< ObjectSource > src, std::shared_ptr< Interest > interest, bool notifyAboutExisting) |
| | Attaches this subscription to a source and registers the given interest. Objects matching the interest will start populating the list.
|
| void | release (bool notifyAboutExisting=true) |
| | Detaches from the source, unregistering the list as a subscriber. Called automatically on destruction. Pass notifyAboutExisting=false to suppress removal callbacks during explicit teardown.
|
| std::shared_ptr< ObjectSource > | getSource () const |
| | Returns the source currently attached to this subscription, or nullptr if none.
|
template<typename T>
struct sen::Subscription< T >
A list of objects and a reference to its source (to keep it alive).