Neko 0.9.99
A portable framework for high-order spectral element flow simulations
|
C pointer based hash table. More...
Public Member Functions | |
procedure, pass(this) | init (this, size, data) |
Initialize a C pointer based hash table. | |
procedure, pass(this) | set (this, key, data) |
Insert a C pointer into the hash table. | |
procedure, pass(this) | get (this, key, data) |
Retrive a C pointer with key key from the hash table. | |
procedure, pass(this) | hash (this, k, c) |
Hash function for an integer 4-tuple hash table. | |
procedure, pass(this) | remove (this, key) |
Remove a C pointer 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. | |
Private Attributes | |
integer, private | size |
integer, private | entries |
type(h_tuple_t), dimension(:), allocatable, private | t |
Definition at line 142 of file htable.f90.
|
inherited |
Definition at line 61 of file htable.f90.
|
inherited |
Definition at line 62 of file htable.f90.
procedure, pass(this) htable::htable_cptr_t::get | ( | class(htable_cptr_t), intent(inout), target | this, |
type(h_cptr_t), intent(inout) | key, | ||
class(*), intent(inout) | data | ||
) |
[in,out] | key | Key to retrieve |
[in,out] | data | Retrieved data |
Definition at line 146 of file htable.f90.
|
inherited |
Definition at line 64 of file htable.f90.
|
pure virtualinherited |
Definition at line 60 of file htable.f90.
procedure, pass(this) htable::htable_cptr_t::hash | ( | class(htable_cptr_t), intent(in) | this, |
class(*), intent(in) | k, | ||
integer, value | c | ||
) |
Definition at line 147 of file htable.f90.
procedure, pass(this) htable::htable_cptr_t::init | ( | class(htable_cptr_t), intent(inout) | this, |
integer, value | size, | ||
class(*), intent(inout), optional | data | ||
) |
size | Initial size of the table | |
[in,out] | data | Data to associate with key |
Definition at line 144 of file htable.f90.
|
inherited |
Definition at line 63 of file htable.f90.
procedure, pass(this) htable::htable_cptr_t::remove | ( | class(htable_cptr_t), intent(inout), target | this, |
type(h_cptr_t), intent(inout) | key | ||
) |
[in,out] | key | Table key |
Definition at line 148 of file htable.f90.
procedure, pass(this) htable::htable_cptr_t::set | ( | class(htable_cptr_t), intent(inout), target | this, |
type(h_cptr_t), intent(inout) | key, | ||
class(*), intent(inout) | data | ||
) |
[in,out] | key | Table key |
[in,out] | data | Data associated with key |
Definition at line 145 of file htable.f90.
Definition at line 57 of file htable.f90.
Definition at line 56 of file htable.f90.
|
privateinherited |
Definition at line 58 of file htable.f90.