typeentity_list_t
A list of entities. Indices start at 1, and 0 means no entity.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| box | type(entity_box_t) | allocatabledimension(:) | storage; only | |
| n | integer | 0 | number of entities | |
| names | type(name_index_t) | the first entity of each lowercase name, once built | ||
| next_named | integer | allocatabledimension(:) | the next entity with the same name, or 0 |
Type-bound procedures
| Name | Binds to | Attributes | Description |
|---|---|---|---|
| add | list_add | add an entity |
Source
Show the code
type, public :: entity_list_t
!! A list of entities. Indices start at 1, and 0 means no entity.
type(entity_box_t), allocatable :: box(:) !! storage; only `box(1:n)` is in use
integer :: n = 0 !! number of entities
type(name_index_t) :: names !! the first entity of each lowercase name, once built
integer, allocatable :: next_named(:) !! the next entity with the same name, or 0
contains
procedure :: add => list_add !! add an entity
end type entity_list_t