RESPOND 2.5.1
Researching Effective Strategies to Prevent Opioid Death
Loading...
Searching...
No Matches
respond::Simulation::ModelSlotProxy Class Reference

Proxy for mutable model slot access with clone-based assignment.

#include <simulation.hpp>

Public Member Functions

 ModelSlotProxy (Simulation &owner, size_t idx)
 
Modeloperator-> ()
 Access the underlying model pointer for member access.
 
Modeloperator* ()
 Dereference to the underlying model.
 
 operator Model & ()
 Implicit conversion to underlying mutable model reference.
 
ModelSlotProxyoperator= (const ModelSlotProxy &other)
 Replace this slot by cloning from another proxy's model.
 
ModelSlotProxyoperator= (const Model &model)
 Replace this slot by cloning from a model reference.
 
ModelSlotProxyoperator= (const std::unique_ptr< Model > &model)
 Replace this slot by cloning from a model unique_ptr.
 

Member Function Documentation

◆ operator=()

ModelSlotProxy & respond::Simulation::ModelSlotProxy::operator= ( const std::unique_ptr< Model > &  model)
inline
Exceptions
std::invalid_argumentif model is nullptr.

The documentation for this class was generated from the following file: