Engine → Core → event.h
event::state
Syntax
class state final : public detail::subscription_target
Inheritance Hierarchy
detail::subscription_target → event::state
Constructors
| Access | Signature | Description |
| public | state() = default; | |
Destructors
| Access | Signature | Description |
| public | ~state() override = default; | |
Variables
| Access | Name | Type | Default | Description |
| private | mEmitDepth | u32 | 0 | |
| private | mNeedsCompaction | bool | false | |
| private | mNextId | u64 | 1 | |
| private | mPending | std::vector<slot> | {} | |
| private | mSlots | std::vector<slot> | {} | |
Functions
Public
add
count
[[nodiscard]] usize count() const noexcept;
emit
template <typename... Params> void emit(
Params &...params);
is_subscribed
[[nodiscard]] bool is_subscribed(
u64 id) const noexcept override;
unsubscribe
void unsubscribe(
u64 id) noexcept override;
Private
finish_emit