|
VoltMod
C++23 framework for CS2 server plugins
|
Holds the subscriptions an object makes and releases them together, newest first. More...
#include <Subscriptions.hpp>
Public Member Functions | |
| Subscriptions ()=default | |
| ~Subscriptions () | |
| Subscriptions (Subscriptions &&) noexcept=default | |
| Subscriptions & | operator= (Subscriptions &&other) noexcept |
| Subscriptions (const Subscriptions &)=delete | |
| Subscriptions & | operator= (const Subscriptions &)=delete |
| void | Add (Subscription subscription) |
| void | Clear () |
| bool | Empty () const noexcept |
Holds the subscriptions an object makes and releases them together, newest first.
Declare it after whatever its handlers touch, the same as a single Subscription. A handler that has to be dropped on its own still wants its own Subscription member.
Definition at line 21 of file Subscriptions.hpp.
|
default |
|
inline |
Definition at line 25 of file Subscriptions.hpp.
References Clear().
|
defaultnoexcept |
|
delete |
|
inline |
Keep subscription for as long as this lives.
Definition at line 43 of file Subscriptions.hpp.
References VoltMod::ReadFile().
Referenced by VoltMod::EngineHooks::EngineHooks(), and VoltMod::PanoramaMenu::PanoramaMenu().
|
inline |
Release everything now, newest first.
Definition at line 46 of file Subscriptions.hpp.
Referenced by operator=(), and ~Subscriptions().
|
inlinenoexcept |
True while this holds nothing - also how a caller asks "have I subscribed yet?" for a registration deferred to first use.
Definition at line 56 of file Subscriptions.hpp.
|
delete |
|
inlinenoexcept |
Releases what this held before taking other's.
Definition at line 29 of file Subscriptions.hpp.
References Clear(), and VoltMod::ReadFile().