|
GridFire v0.7.6rc4.0
General Purpose Nuclear Network
|
Scratchpad for storing working memory used by AdaptiveEngineView computations. More...
#include <engine_adaptive_scratchpad.h>
Public Member Functions | |
| bool | is_initialized () const override |
| Check whether the scratchpad has been initialized. | |
| void | initialize (const AdaptiveEngineView &engine) |
| Initialize the scratchpad from an AdaptiveEngineView. | |
| std::unique_ptr< AbstractScratchPad > | clone () const override |
| Create a deep copy of this scratchpad. | |
Public Member Functions inherited from gridfire::engine::scratch::AbstractScratchPad | |
| virtual | ~AbstractScratchPad ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Public Attributes | |
| bool | has_initialized = false |
| Flag indicating whether the scratchpad has been initialized. | |
| std::vector< fourdst::atomic::Species > | active_species |
| Vector of species currently active in the adaptive network. | |
| reaction::ReactionSet | active_reactions |
| Set of reactions currently active in the adaptive network. | |
Static Public Attributes | |
| static constexpr auto | ID = ScratchPadType::ADAPTIVE_ENGINE_VIEW_SCRATCHPAD |
| Unique identifier for this scratchpad type. | |
Scratchpad for storing working memory used by AdaptiveEngineView computations.
AdaptiveEngineViewScratchPad provides temporary storage for the active species and reactions determined by the adaptive network algorithm. This allows the engine to avoid recalculating network topology on every evaluation.
|
inlineoverridevirtual |
Create a deep copy of this scratchpad.
Creates an independent copy of all internal state, including active species and reactions. The clone can be modified without affecting the original.
Implements gridfire::engine::scratch::AbstractScratchPad.
|
inline |
Initialize the scratchpad from an AdaptiveEngineView.
Clears any existing state and prepares the scratchpad for use. This method is idempotent; calling it multiple times has no effect after the first successful initialization.
| engine | The AdaptiveEngineView to initialize from. |
|
inlinenodiscardoverridevirtual |
Check whether the scratchpad has been initialized.
Implements gridfire::engine::scratch::AbstractScratchPad.
| reaction::ReactionSet gridfire::engine::scratch::AdaptiveEngineViewScratchPad::active_reactions |
Set of reactions currently active in the adaptive network.
| std::vector<fourdst::atomic::Species> gridfire::engine::scratch::AdaptiveEngineViewScratchPad::active_species |
Vector of species currently active in the adaptive network.
| bool gridfire::engine::scratch::AdaptiveEngineViewScratchPad::has_initialized = false |
Flag indicating whether the scratchpad has been initialized.
|
staticconstexpr |
Unique identifier for this scratchpad type.