Skip to content

Engine → ECS → world.h

iteration_scope

Syntax

class CONJURE_API iteration_scope

Constructors

AccessSignatureDescription
publiciteration_scope() noexcept = default;A scope that locks nothing.
publicexplicit iteration_scope( world &target) noexcept;Locks target until destruction. Used by world::lock_iteration().
publiciteration_scope( iteration_scope &&other) noexcept;

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
public~iteration_scope();

Variables

AccessNameTypeDefaultDescription
privatemWorldworld *nullptr

Functions

Public

is_active

[[nodiscard]] bool is_active() const noexcept;

True while this scope holds a lock.

release

void release() noexcept;

Unlocks now; later destruction does nothing.

Operator Overloads

Public

operator=

iteration_scope &operator=(
    iteration_scope &&other) noexcept;