|
GridFire v0.7.6rc4.0
General Purpose Nuclear Network
|
Utility functions for convenient scratchpad retrieval with exception handling. More...
Namespaces | |
| namespace | gridfire |
| namespace | gridfire::engine |
| namespace | gridfire::engine::scratch |
| Scratchpad memory management for computational engines. | |
Functions | |
| template<IsScratchPad CTX> | |
| CTX * | gridfire::engine::scratch::get_state (StateBlob &ctx) |
| Retrieve a scratchpad from a StateBlob, throwing on error. | |
| template<IsScratchPad CTX> | |
| const CTX * | gridfire::engine::scratch::get_state (const StateBlob &ctx) |
| Retrieve a const scratchpad from a const StateBlob, throwing on error. | |
| template<IsScratchPad CTX, bool MUST_BE_INITIALIZED> | |
| CTX * | gridfire::engine::scratch::get_state (StateBlob &ctx) |
| Retrieve a scratchpad with optional initialization check, throwing on error. | |
| template<IsScratchPad CTX, bool MUST_BE_INITIALIZED> | |
| const CTX * | gridfire::engine::scratch::get_state (const StateBlob &ctx) |
| Retrieve a const scratchpad with optional initialization check, throwing on error. | |
Utility functions for convenient scratchpad retrieval with exception handling.
This header provides helper functions that wrap StateBlob's get() methods, converting error codes into exceptions for simpler error handling. These utilities eliminate the need to manually check std::expected results and switch on error codes at every call site.