HashTable that stores void pointer items.
More...
|
| procedure | iterator (this) |
| | An iterator used to iterate through the HashTable.
|
| procedure | add (this, key, val) |
| | Add a void pointer to the HashTable.
|
| procedure | get (this, key) |
| | Get a void pointer from the HashTable using a key.
|
| procedure | contains (this, key) |
| | Boolean indicating if an item exists in the hashtable.
|
| procedure | count (this) |
| | The nummer of items in the HashTable.
|
| procedure | clear (this) |
| | Clears the HashTable.
|
|
| integer(i4b) | cnt = 0 |
| | the number of items in the HashTable
|
Definition at line 20 of file PtrHashTable.f90.
◆ add()
| procedure ptrhashtablemodule::ptrhashtabletype::add |
( |
class(ptrhashtabletype), target | this, |
|
|
character(len=*), intent(in) | key, |
|
|
class(*), intent(in), pointer | val ) |
- Parameters
-
| [in] | key | key of the item to be added |
| [in] | val | value to be added |
Definition at line 26 of file PtrHashTable.f90.
◆ clear()
| procedure ptrhashtablemodule::ptrhashtabletype::clear |
( |
class(ptrhashtabletype), target | this | ) |
|
Loops over all the buckets and clears them.
Definition at line 30 of file PtrHashTable.f90.
◆ contains()
| procedure ptrhashtablemodule::ptrhashtabletype::contains |
( |
class(ptrhashtabletype), target | this, |
|
|
character(len=*), intent(in) | key ) |
- Parameters
-
| [in] | key | key of the item to retrieve |
- Returns
- item found
Definition at line 28 of file PtrHashTable.f90.
◆ count()
| procedure ptrhashtablemodule::ptrhashtabletype::count |
( |
class(ptrhashtabletype) | this | ) |
|
◆ get()
| procedure ptrhashtablemodule::ptrhashtabletype::get |
( |
class(ptrhashtabletype), target | this, |
|
|
character(len=*), intent(in) | key ) |
- Parameters
-
| [in] | key | key of the item to retrieve |
- Returns
- item associated with the key
Definition at line 27 of file PtrHashTable.f90.
◆ iterator()
| procedure ptrhashtablemodule::ptrhashtabletype::iterator |
( |
class(ptrhashtabletype), target | this | ) |
|
◆ buckets
Definition at line 22 of file PtrHashTable.f90.
22 type(KeyValueListType) :: buckets(BUCKET_SIZE)
◆ cnt
| integer(i4b) ptrhashtablemodule::ptrhashtabletype::cnt = 0 |
The documentation for this type was generated from the following file: