Octopus
linked_list_oct_m::list_t Type Reference

This class implements a linked list of unlimited polymorphic values. More...

Detailed Description

This class implements a linked list of unlimited polymorphic values.

Iterating over the list is done using the associated iterator and there are two ways of doing so. The first is by using a "do while" construct:

call iter%start(list)
do while (iter%has_next())
value => iter%get_next()
...
end do
the second method is with a simple "do":
call iter%start(list)
do
if (.not. iter%has_next()) exit
value => iter%get_next()
...
end do

Definition at line 184 of file linked_list.F90.

Inheritance diagram for linked_list_oct_m::list_t:
Inheritance graph

Private Member Functions

procedure add => list_add_node
 

Additional Inherited Members

- Public Attributes inherited from linked_list_oct_m::linked_list_t
integer, public size = 0
 

Member Function/Subroutine Documentation

◆ add()

procedure linked_list_oct_m::list_t::add
private

Definition at line 187 of file linked_list.F90.


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