MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
List.f90 File Reference

Go to the source code of this file.

Data Types

type  listmodule::listtype
 A generic heterogeneous doubly-linked list. More...
 
type  listmodule::listnodetype
 
interface  listmodule::isEqualIface
 

Modules

module  listmodule
 

Functions/Subroutines

subroutine listmodule::add (this, objptr)
 Append the given item to the list. More...
 
subroutine listmodule::clear (this, destroy)
 Deallocate all items in list. More...
 
integer(i4b) function listmodule::count (this)
 Return number of nodes in list. More...
 
logical function listmodule::containsobject (this, obj, isEqual)
 Determine whether the list contains the given object. More...
 
subroutine listmodule::deallocatebackward (this, fromNode)
 Deallocate fromNode and all previous nodes, and reassign firstNode. More...
 
integer(i4b) function listmodule::getindex (this, obj)
 Get the index of the given item in the list. More...
 
class(*) function, pointer listmodule::getnextitem (this)
 Get the next item in the list. More...
 
class(*) function, pointer listmodule::getpreviousitem (this)
 Get the previous item in the list. More...
 
subroutine listmodule::insertafter (this, objptr, indx)
 Insert the given item after the given index. More...
 
subroutine listmodule::insertbefore (this, objptr, targetNode)
 Insert the given item before the given node. More...
 
subroutine listmodule::next (this)
 Move the list's current node pointer and index one node forwards. More...
 
subroutine listmodule::previous (this)
 Move the list's current node pointer and index one node backwards. More...
 
subroutine listmodule::reset (this)
 Reset the list's current node pointer and index. More...
 
subroutine listmodule::remove_node_by_index (this, i, destroyValue)
 Remove the node at the given index, optionally destroying its value. More...
 
subroutine listmodule::remove_this_node (this, node, destroyValue)
 Remove the given node, optionally destroying its value. More...
 
class(*) function, pointer listmodule::get_current_item (this)
 Get a pointer to the item at the current node. More...
 
class(*) function, pointer listmodule::get_item_by_index (this, indx)
 Get a pointer to the item at the given index. More...
 
type(listnodetype) function, pointer listmodule::get_node_by_index (this, indx)
 Get the node at the given index. More...
 
class(*) function, pointer listmodule::getitem (this)
 Return a pointer to this node's value. More...
 
subroutine listmodule::deallocvalue (this, destroy)
 Nullify (optionally deallocating) this node's value. More...