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

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

Data Fields

real(kind=dp) first_el = 0.0_dp
 
type(cp_sll_real_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 263 of file cp_linked_list_input.F.

Field Documentation

◆ first_el

real(kind=dp) cp_linked_list_input::cp_sll_real_type::first_el = 0.0_dp

Definition at line 264 of file cp_linked_list_input.F.

◆ rest

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

Definition at line 265 of file cp_linked_list_input.F.


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