Integer 2-tuple based hash table.
More...
|
| procedure, pass(this) | init (this, size, data) |
| | Initialize an integer 2-tuple hash table.
|
| procedure, pass(this) | set (this, key, data) |
| | Insert an integer 2-tuple into the hash table.
|
| procedure, pass(this) | get (this, key, data) |
| | Retrive an integer 2-tuple with key key from the hash table.
|
| procedure, pass(this) | hash (this, k, c) |
| | Hash function for an integer 2-tuple hash table.
|
| procedure, pass(this) | remove (this, key) |
| | Remove an integer 2-tuple with key key from the hash table.
|
| procedure(htable_hash), deferred, pass | hash (this, k, c) |
| procedure, pass(this), public | clear (this) |
| | Clear all entries in a hash table.
|
| procedure, pass(this), public | free (this) |
| | Destroy a hash table.
|
| procedure, pass(this), public | num_entries (this) |
| | Return number of entries in the table.
|
| procedure, pass(this), public | get_size (this) |
| | Return total size of htable.
|
|
| integer, private | size = 0 |
| integer, private | entries = 0 |
| type(h_tuple_t), dimension(:), allocatable, private | t |
Definition at line 142 of file htable.f90.
◆ clear()
| procedure, pass(this), public htable::htable_t::clear |
( |
class(htable_t), intent(inout) | this | ) |
|
|
inherited |
◆ free()
| procedure, pass(this), public htable::htable_t::free |
( |
class(htable_t), intent(inout) | this | ) |
|
|
inherited |
◆ get()
| procedure, pass(this) htable::htable_i4t2_t::get |
( |
class(htable_i4t2_t), intent(inout) | this, |
|
|
type(tuple_i4_t), intent(inout) | key, |
|
|
class(*), intent(inout) | data ) |
- Parameters
-
| [in,out] | key | Key to retrieve |
| [in,out] | data | Retrieved data |
Definition at line 146 of file htable.f90.
◆ get_size()
| procedure, pass(this), public htable::htable_t::get_size |
( |
class(htable_t), intent(in) | this | ) |
|
|
inherited |
◆ hash() [1/2]
| procedure, pass(this) htable::htable_i4t2_t::hash |
( |
class(htable_i4t2_t), intent(in) | this, |
|
|
class(*), intent(in) | k, |
|
|
integer, value | c ) |
◆ hash() [2/2]
| procedure(htable_hash), deferred, pass htable::htable_t::hash |
( |
class(htable_t), intent(in) | this, |
|
|
class(*), intent(in) | k, |
|
|
integer, value | c ) |
|
pure virtualinherited |
◆ init()
| procedure, pass(this) htable::htable_i4t2_t::init |
( |
class(htable_i4t2_t), intent(inout) | this, |
|
|
integer, value | size, |
|
|
class(*), intent(inout), optional | data ) |
- Parameters
-
| size | Initial size of the table |
| [in,out] | data | Data to associate with key |
Definition at line 144 of file htable.f90.
◆ num_entries()
| procedure, pass(this), public htable::htable_t::num_entries |
( |
class(htable_t), intent(in) | this | ) |
|
|
inherited |
◆ remove()
| procedure, pass(this) htable::htable_i4t2_t::remove |
( |
class(htable_i4t2_t), intent(inout) | this, |
|
|
type(tuple_i4_t), intent(inout) | key ) |
◆ set()
| procedure, pass(this) htable::htable_i4t2_t::set |
( |
class(htable_i4t2_t), intent(inout) | this, |
|
|
type(tuple_i4_t), intent(inout) | key, |
|
|
class(*), intent(inout) | data ) |
- Parameters
-
| [in,out] | key | Table key |
| [in,out] | data | Data associated with key |
Definition at line 145 of file htable.f90.
◆ entries
| integer, private htable::htable_t::entries = 0 |
|
privateinherited |
◆ head
| type(h_tuple_t), pointer htable::htable_t::head => null() |
|
inherited |
◆ size
| integer, private htable::htable_t::size = 0 |
|
privateinherited |
| type(h_tuple_t), dimension(:), allocatable, private htable::htable_t::t |
|
privateinherited |
◆ tail
| type(h_tuple_t), pointer htable::htable_t::tail => null() |
|
inherited |
The documentation for this type was generated from the following file: