MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
memorylistmodule Module Reference

Data Types

type  memorylisttype
 

Functions/Subroutines

subroutine add (this, mt)
 
type(memorytype) function, pointer get (this, ipos)
 
integer(i4b) function count (this)
 
subroutine clear (this)
 
subroutine remove (this, ipos, destroyValue)
 

Function/Subroutine Documentation

◆ add()

subroutine memorylistmodule::add ( class(memorylisttype this,
type(memorytype), pointer  mt 
)
private

Definition at line 20 of file MemoryList.f90.

21  class(MemoryListType) :: this
22  type(MemoryType), pointer :: mt
23  class(*), pointer :: obj => null()
24  obj => mt
25  call this%list%add(obj)

◆ clear()

subroutine memorylistmodule::clear ( class(memorylisttype this)
private

Definition at line 48 of file MemoryList.f90.

49  class(MemoryListType) :: this
50  call this%list%Clear()

◆ count()

integer(i4b) function memorylistmodule::count ( class(memorylisttype this)
private

Definition at line 41 of file MemoryList.f90.

42  class(MemoryListType) :: this
43  integer(I4B) :: nval
44  nval = this%list%count()
45  return

◆ get()

type(memorytype) function, pointer memorylistmodule::get ( class(memorylisttype this,
integer(i4b), intent(in)  ipos 
)
private

Definition at line 28 of file MemoryList.f90.

29  class(MemoryListType) :: this
30  integer(I4B), intent(in) :: ipos
31  type(MemoryType), pointer :: res
32  class(*), pointer :: obj => null()
33  obj => this%list%getitem(ipos)
34  select type (obj)
35  type is (memorytype)
36  res => obj
37  end select
38  return

◆ remove()

subroutine memorylistmodule::remove ( class(memorylisttype this,
integer(i4b), intent(in)  ipos,
logical, intent(in)  destroyValue 
)
private

Definition at line 53 of file MemoryList.f90.

54  class(MemoryListType) :: this
55  integer(I4B), intent(in) :: ipos
56  logical, intent(in) :: destroyValue
57  call this%list%RemoveNode(ipos, destroyvalue)