Macro total_space::agent_states_iter [−][src]
A macro for iterating on all the agents of some type in a configuration.
Usage is agent_states_iter!(configuration, TYPE_NAME, iterations)
to iterate on the states of
the instances of the configuration’s agents of the global TYPE_NAME
variable declared by
declare_agent_type_data
. Iteration is some iterator method, as if we wrote
states.iter().iteration
(e.g., iteration
could be for_each(|state| ...)
.