|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Aggregate holder: owns multiple Subscriptions and drops them together. More...
#include <subscription.hpp>
Public Member Functions | |
| SubscriptionBag ()=default | |
| SubscriptionBag (const SubscriptionBag &)=delete | |
| SubscriptionBag & | operator= (const SubscriptionBag &)=delete |
| SubscriptionBag (SubscriptionBag &&other) noexcept | |
| SubscriptionBag & | operator= (SubscriptionBag &&other) noexcept |
| ~SubscriptionBag () noexcept | |
| void | add (Subscription s) |
| SubscriptionBag & | operator+= (Subscription s) |
| void | clear () noexcept |
| Disconnect the current contents in reverse insertion order. | |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
Aggregate holder: owns multiple Subscriptions and drops them together.
Typical use: a ViewModel keeps a bag and += every subscription it opens; destroying the VM tears everything down in one step.
|
default |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
Disconnect the current contents in reverse insertion order.
Reentrant additions belong to the new bag and survive this clear.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |