(git:c5411e0)
Loading...
Searching...
No Matches
cp_linked_list_input::cp_sll_logical_type Type Reference

represent a single linked list that stores pointers to the elements More...

Data Fields

logical first_el = .FALSE.
 
type(cp_sll_logical_type), pointer rest => NULL()
 

Detailed Description

represent a single linked list that stores pointers to the elements

Parameters
first_elthe element that is stored in this node.
restthe rest of the list
emptytrue if the list pointer is not associated, if it points to to a not it is always false (as there is at least the first_el in the list)
lengththe number of elements in the list
Note
List are alway accessed through pointers, so every node of the linked list can be seen as a list, its first element a pointer to the position before itself, in a very natural way: all the insertions take place before the actual element, and you still can insert an element at the end. This way I could identify nodes, lists and pointers between the elements of the list. Indexing is 1 based.
History
none
Author
Fawzi Mohamed

Definition at line 289 of file cp_linked_list_input.F.

Field Documentation

◆ first_el

logical cp_linked_list_input::cp_sll_logical_type::first_el = .FALSE.

Definition at line 290 of file cp_linked_list_input.F.

◆ rest

type(cp_sll_logical_type), pointer cp_linked_list_input::cp_sll_logical_type::rest => NULL()

Definition at line 291 of file cp_linked_list_input.F.


The documentation for this type was generated from the following file: