Template Struct WritableState¶
Defined in File WritableState.hpp
Struct Documentation¶
-
template<typename
Spec>
structdish2::WritableState: public dish2::internal::writable_state_parent_t<Spec>¶ Writable state refers to the collection of output values that evolving programs running within each cardinal can write to and read from.
Some of these outputs enable interaction with the simulation (i.e., control phenotypic characteristics). Each cardinal has an independent copy of each piece of writable state state.
Public Types
-
using
parent_t= dish2::internal::writable_state_parent_t<Spec>¶
Public Functions
-
void
AddTo(const size_t idx, const float val)¶
-
void
Multiply(const size_t idx, const float val)¶
-
void
Write(const size_t idx, const float val)¶
-
void
Assign(const size_t idx, const WritableState &other)¶
-
void
Swap(const size_t idx, WritableState &other)¶
-
using