Items in hash tables.
More...
#include <ogdf/lib/abacus/hash.h>
|
| AbaHashItem (const KeyType &key, const ItemType &item) |
| The constructor.
|
|
AbaHashItem< KeyType, ItemType > * | next () |
| Returns a pointer to the next hash-item stored in the linked list corresponding to the slot of this item.
|
|
const AbaHashItem< KeyType, ItemType > * | next () const |
| Returns a const pointer to the next hash-item stored in the linked list corresponding to the slot of this item.
|
|
virtual | ~AbacusRoot () |
| The destructor.
|
|
|
static bool | ascii2bool (const string &str) |
| Converts the string str to a boolean value.
|
|
static bool | endsWith (const string &str, const string &end) |
| Returns true if str ends with end, false otherwise.
|
|
static double | fracPart (double x) |
| Returns the absolute value of the fractional part of x.
|
|
static const char * | onOff (bool value) |
| Converts a boolean variable to the strings "on" and "off".
|
|
template<class KeyType, class ItemType>
class abacus::AbaHashItem< KeyType, ItemType >
Items in hash tables.
Definition at line 58 of file hash.h.
◆ AbaHashItem()
template<class KeyType , class ItemType >
abacus::AbaHashItem< KeyType, ItemType >::AbaHashItem |
( |
const KeyType & |
key, |
|
|
const ItemType & |
item |
|
) |
| |
The constructor.
- Parameters
-
key | The key of the item. |
item | The value of the item. |
◆ next() [1/2]
template<class KeyType , class ItemType >
Returns a pointer to the next hash-item stored in the linked list corresponding to the slot of this item.
◆ next() [2/2]
template<class KeyType , class ItemType >
Returns a const pointer to the next hash-item stored in the linked list corresponding to the slot of this item.
◆ AbaHash< KeyType, ItemType >
template<class KeyType , class ItemType >
friend class AbaHash< KeyType, ItemType > |
|
friend |
◆ operator<<
template<class KeyType , class ItemType >
std::ostream & operator<< |
( |
std::ostream & |
, |
|
|
const AbaHashItem< KeyType, ItemType > & |
|
|
) |
| |
|
friend |
The output operator writes the key and the value of the item on the stream out.
- Returns
- A reference to the output stream.
◆ item_
template<class KeyType , class ItemType >
◆ key_
template<class KeyType , class ItemType >
◆ next_
template<class KeyType , class ItemType >
The documentation for this class was generated from the following file:
- include/ogdf/lib/abacus/hash.h