35 allocate (container_iterator, source=this%container%iterator())
44 subroutine add(this, mt)
48 class(*),
pointer :: obj => null()
49 character(len=LENMEMADDRESS) :: key
53 call this%container%add(key, obj)
60 function get(this, name, path)
result(mt)
62 character(len=*),
intent(in) :: name
63 character(len=*),
intent(in) :: path
66 character(len=LENMEMADDRESS) :: key
67 class(*),
pointer :: obj
70 obj => this%container%get(key)
84 function count(this)
result(cnt)
88 cnt = this%container%count()
97 call this%container%clear()
This module contains simulation constants.
integer(i4b), parameter lenmemaddress
maximum length of the full memory address, including variable name
This module defines variable data types.
character(len=lenmemaddress) function create_mem_address(mem_path, var_name)
returns the address string of the memory object
type(memorycontaineriteratortype) function iterator(this)
An iterator used to iterate through a MemoryContainer.
subroutine add(this, mt)
Add a MemoryType to the container.
type(memorytype) function, pointer get(this, name, path)
Get a MemoryType using a key.
subroutine clear(this)
Clears the memory container.
integer(i4b) function count(this)
The nummer of items in the container.
An iterator used to iterate through a MemoryContainer.
HashTable that stores void pointer items.