Macro total_space::declare_agent_type_data [−][src]
A macro for declaring a global variable containing an agent type.
Usage is declare_agent_type_data! { TYPE_NAME, StateTypeName, ModelTypeName }
. It declares a
global variable named TYPE_NAME
which contains
std::cell::RefCell<Option<std::rc::Rc<AgentTypeData::<StateTypeName, <ModelTypeName as MetaModel>::StateId, <ModelTypeName as MetaModel>::Payload >>>
, the details of which shouldn’t
interest you much since other macros access this in a friendly way.