linked_list Module


Contents


Abstract Interfaces

abstract interface

  • public subroutine command_fun(command, ok)

    Arguments

    Type IntentOptional Attributes Name
    character, intent(in) :: command
    logical, intent(out) :: ok

Derived Types

type, public ::  llist

Type-Bound Procedures

procedure , public :: iterate => iterate_ll Function

type, public ::  llist_node


Functions

public function iterate_ll(this, f) result(r)

Arguments

Type IntentOptional Attributes Name
class(llist), intent(inout), target :: this
procedure(command_fun) :: f

Return Value logical

public function size(lst)

Arguments

Type IntentOptional Attributes Name
type(llist), intent(inout) :: lst

Return Value integer


Subroutines

public subroutine append(lst, data)

Arguments

Type IntentOptional Attributes Name
type(llist), intent(inout) :: lst
character, intent(in) :: data

public subroutine clear(lst)

Arguments

Type IntentOptional Attributes Name
type(llist), intent(inout) :: lst

public subroutine print(lst)

Arguments

Type IntentOptional Attributes Name
type(llist), intent(in) :: lst