Skip to content

Engine → Modules → module_consumer.h

reload_context

Syntax

class CONJURE_API reload_context

Constructors

AccessSignatureDescription
publicreload_context();

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
public~reload_context();

Variables

AccessNameTypeDefaultDescription
privatemBlobscore::flat_map<core::string_id, std::vector<std::byte>>{}

Functions

Public

contains

[[nodiscard]] bool contains(
    core::string_id key) const noexcept;

fetch

[[nodiscard]] std::span<const std::byte> fetch(
    core::string_id key) const noexcept;

The blob stored under the key; empty when missing.

size

[[nodiscard]] usize size() const noexcept;

Number of stored blobs.

store

void store(
    core::string_id key,
    std::span<const std::byte> bytes);

Stores a copy of the bytes under the key, replacing an earlier blob.