CP2K 2.4 (Revision 12889)
Private Attributes

cp_linked_list_pw::cp_sll_pw_type Struct Reference

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

Collaboration diagram for cp_linked_list_pw::cp_sll_pw_type:

List of all members.

Private Attributes

TYPE(pw_type), pointer first_el
TYPE(cp_sll_pw_type), pointer rest

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 188 of file cp_linked_list_pw.f90.


Member Data Documentation

Definition at line 189 of file cp_linked_list_pw.f90.

Definition at line 190 of file cp_linked_list_pw.f90.


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