Documentation for module list

An array-based list which grows on demand. When the internal array is full, a new array of twice the size will be allocated and the items are copied over.

source: list.F
Loading...

Forwarded symbols:

list_callstackentry_type
list_callstackentry::list_callstackentry_type
...
list_routinereport_type
list_routinereport::list_routinereport_type
...
list_routinestat_type
list_routinestat::list_routinestat_type
...
list_timerenv_type
list_timerenv::list_timerenv_type
...

Generic procedures:

list_destroy
list_get
list_init
list_isready
list_peek
list_pop
list_push
list_size

Generic procedure list_destroy

Deallocated the internal data-structures of the given list. Caution: If the stored values are pointers, their targets will not get deallocated by this routine.

INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×

Generic procedure list_get

Returns the value at the given position from the list.

INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTEGER,
INTENT(in)
:: pos × × × ×

Generic procedure list_init

Allocates the internal data-structures of the given list. This has to be called before any of the other routines. For deallocation call list_[valuetype]_destroy.

INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTEGER,
INTENT(in),
OPTIONAL
:: initial_capacity × × × ×

Generic procedure list_isready

Test if the given list has been initialized.

INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×

Generic procedure list_peek

...

INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×

Generic procedure list_pop

...

INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×

Generic procedure list_push

Appends the given value at the end of the list.

INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(inout)
:: list ×
INTENT(in),
POINTER
:: value ×
INTENT(in),
POINTER
:: value ×
INTENT(in),
POINTER
:: value ×
INTENT(in)
:: value ×

Generic procedure list_size

Returns the current size of the list.

INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×
INTENT(in)
:: list ×