Octopus
list_node_oct_m Module Reference

This module implements a node of a polymorphic linked list. More...

Detailed Description

This module implements a node of a polymorphic linked list.

Data Types

interface  list_node_t
 class for a node in a polymorphic linked list More...
 

Functions/Subroutines

class(list_node_t) function, pointer list_node_constructor (value, next, clone)
 create a new node More...
 
class(list_node_t) function, pointer list_node_copy (this, next)
 copy a node More...
 
class(list_node_t) function, pointer list_node_next (this)
 get next node More...
 
subroutine list_node_set_next (this, next_node)
 
class(*) function, pointer list_node_get (this)
 get data of node More...
 
logical function list_node_is_equal (this, value)
 
subroutine list_node_finalize (this)
 

Function/Subroutine Documentation

◆ list_node_constructor()

class(list_node_t) function, pointer list_node_oct_m::list_node_constructor ( class(*), target  value,
class(list_node_t), pointer  next,
logical, intent(in)  clone 
)
private

create a new node

Parameters
valuedata to store in the node
nextpointer to the next node
[in]cloneis this node a clone?
Returns
pointer to the new node

Definition at line 139 of file list_node.F90.

◆ list_node_copy()

class(list_node_t) function, pointer list_node_oct_m::list_node_copy ( class(list_node_t), target  this,
class(list_node_t), pointer  next 
)
private

copy a node

Parameters
thisthe source node
nextpointer to the next node
Returns
pointer to the new copy

Definition at line 161 of file list_node.F90.

◆ list_node_next()

class(list_node_t) function, pointer list_node_oct_m::list_node_next ( class(list_node_t), intent(in)  this)
private

get next node

Definition at line 172 of file list_node.F90.

◆ list_node_set_next()

subroutine list_node_oct_m::list_node_set_next ( class(list_node_t), intent(inout)  this,
class(list_node_t), pointer  next_node 
)
private

Definition at line 181 of file list_node.F90.

◆ list_node_get()

class(*) function, pointer list_node_oct_m::list_node_get ( class(list_node_t), intent(in)  this)
private

get data of node

Definition at line 191 of file list_node.F90.

◆ list_node_is_equal()

logical function list_node_oct_m::list_node_is_equal ( class(list_node_t), intent(in)  this,
class(*), target  value 
)
private

Definition at line 200 of file list_node.F90.

◆ list_node_finalize()

subroutine list_node_oct_m::list_node_finalize ( type(list_node_t), intent(inout)  this)
private

Definition at line 243 of file list_node.F90.