fdoc

typeentity_list_t

A list of entities. Indices start at 1, and 0 means no entity.

Components

NameTypeAttributesDefaultDescription
boxtype(entity_box_t)allocatabledimension(:)

storage; only box(1:n) is in use

ninteger0

number of entities

namestype(name_index_t)

the first entity of each lowercase name, once built

next_namedintegerallocatabledimension(:)

the next entity with the same name, or 0

Type-bound procedures

NameBinds toAttributesDescription
addlist_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

Graphs

Inherits

Inherited by