Engine → Modules → module_consumer.h
reload_context
| Type | Class |
| Namespace | conjure::modules |
| Include File Path | engine/include/conjure/modules/module_consumer.h |
| Source File Path | engine/src/modules/module_consumer.cpp |
| API ↗ | Loading and managing modules |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | reload_context(); |
Important
Copy constructor and assignment has been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~reload_context(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mBlobs | core:: | {} |
Functions
Public
contains
contains[[nodiscard]] bool contains(
core::string_id key) const noexcept;fetch
fetch[[nodiscard]] std::span<const std::byte> fetch(
core::string_id key) const noexcept;The blob stored under the key; empty when missing.
store
storevoid store(
core::string_id key,
std::span<const std::byte> bytes);Stores a copy of the bytes under the key, replacing an earlier blob.