iteration_scope
| Type | Class |
| Namespace | conjure::ecs |
| Include File Path | engine/include/conjure/ecs/world.h |
| Source File Path | engine/src/ecs/world.cpp |
| API ↗ | Archives and serialisation, Command buffers and observers, Entities and components, Entities, components and systems, Queries, views and systems |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | iteration_scope() noexcept = default; | A scope that locks nothing. |
| public | explicit iteration_scope(
world &target) noexcept; | Locks target until destruction. Used by world::lock_iteration(). |
| public | iteration_scope(
iteration_scope &&other) noexcept; |
Important
Copy constructor and assignment has been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~iteration_scope(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mWorld | world * | nullptr |
Functions
Public
is_active
is_active[[nodiscard]] bool is_active() const noexcept;True while this scope holds a lock.
release
releasevoid release() noexcept;Unlocks now; later destruction does nothing.
Operator Overloads
Public
operator=
operator=iteration_scope &operator=(
iteration_scope &&other) noexcept;