Utopia 2
Framework for studying models of complex & adaptive systems.
|
A cell is a slightly specialized state container. More...
#include <cell.hh>
Public Types | |
using | Self = Cell< Traits > |
The type of this cell. | |
using | State = typename Traits::State |
The type of the state. | |
Public Types inherited from Utopia::Entity< Cell< Traits >, Traits > | |
using | Traits = Traits |
The traits of this entity. | |
using | Self = Entity< Cell< Traits >, Traits > |
The type of this entity. | |
using | State = typename Traits::State |
The type of the state of this entity. | |
using | Tags = typename Traits::Tags |
The tags associated with this entity. | |
using | CustomLinkContainers = typename Traits::template CustomLinks< EntityContainer< Cell< Traits > > > |
A construct that has as members containers for custom-linked entities. | |
Public Member Functions | |
Cell (const IndexType id, const State initial_state) | |
Construct a cell. | |
Public Member Functions inherited from Utopia::Entity< Cell< Traits >, Traits > | |
Entity (const IndexType id, const State initial_state) | |
Construct an entity. | |
const IndexType & | id () const |
Return const reference to entity ID. | |
CustomLinkContainers & | custom_links () |
Return reference to custom link containers. | |
const CustomLinkContainers & | custom_links () const |
Return const reference to custom link containers. | |
Additional Inherited Members | |
Static Public Attributes inherited from Utopia::Entity< Cell< Traits >, Traits > | |
static constexpr Update | mode |
Whether this entity is updated synchronously. | |
A cell is a slightly specialized state container.
It can be extended with the use of tags and can be associated with so-called "custom links". These specializations are carried into the cell by means of the CellTraits struct. A cell is embedded into the CellManager, where the discretization allows assigning a position in space to the cell. The cell itself does not need to know anything about that ...
Traits | Valid Utopia::EntityTraits, describing the type of cell |
The type of the state.
Construct a cell.