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

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

#include <timestep.hpp>

Public Member Functions

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

Member Function Documentation

◆ operator=()

TransitionSlotProxy & respond::Timestep::TransitionSlotProxy::operator= ( const std::unique_ptr< Transition > &  transition)
inline
Exceptions
std::invalid_argumentif model is nullptr.

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