MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
listnodemodule Module Reference

Data Types

type  listnodetype
 

Functions/Subroutines

class(*) function, pointer getitem (this)
 Return a pointer to this node's value. More...
 
subroutine deallocvalue (this, destroy)
 Nullify (optionally deallocating) this node's value. More...
 

Function/Subroutine Documentation

◆ deallocvalue()

subroutine listnodemodule::deallocvalue ( class(listnodetype), intent(inout)  this,
logical, intent(in), optional  destroy 
)
private

Definition at line 29 of file ListNode.f90.

30  class(ListNodeType), intent(inout) :: this
31  logical, intent(in), optional :: destroy
32 
33  if (associated(this%Value)) then
34  if (present(destroy)) then
35  if (destroy) then
36  deallocate (this%Value)
37  end if
38  end if
39  nullify (this%Value)
40  end if

◆ getitem()

class(*) function, pointer listnodemodule::getitem ( class(listnodetype), intent(inout)  this)
private

Definition at line 22 of file ListNode.f90.

23  class(ListNodeType), intent(inout) :: this
24  class(*), pointer :: valueObject
25  valueobject => this%Value