Double precision based hash table.
More...
|
| procedure, pass(this) | init (this, size, data) |
| | Initialize a double precision based hash table.
|
| procedure, pass(this) | set (this, key, data) |
| | Insert a double precision key (with data) into the hash table.
|
| procedure, pass(this) | get (this, key, data) |
| | Retrive a double precision float with key key from the hash table.
|
| procedure, pass(this) | hash (this, k, c) |
| | Hash function for a double precision based hash table.
|
| procedure, pass(this) | remove (this, key) |
| | Remove a double precision 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 122 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_r8_t::get |
( |
class(htable_r8_t), intent(inout) | this, |
|
|
real(kind=dp), intent(inout) | key, |
|
|
class(*), intent(inout) | data ) |
- Parameters
-
| [in,out] | key | Key to retrieve |
| [in,out] | data | Retrieved data |
Definition at line 126 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_r8_t::hash |
( |
class(htable_r8_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_r8_t::init |
( |
class(htable_r8_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 124 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_r8_t::remove |
( |
class(htable_r8_t), intent(inout) | this, |
|
|
real(kind=dp), intent(inout) | key ) |
◆ set()
| procedure, pass(this) htable::htable_r8_t::set |
( |
class(htable_r8_t), intent(inout) | this, |
|
|
real(kind=dp), intent(inout) | key, |
|
|
class(*), intent(inout) | data ) |
- Parameters
-
| [in,out] | key | Table key |
| [in,out] | data | Data associated with key |
Definition at line 125 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: