Lolly 1.4.28
|
Go to the source code of this file.
Classes | |
struct | hashentry< T, U > |
Hash entry template for key-value pairs. More... | |
class | hashmap_rep< T, U > |
class | hashmap< T, U > |
A simple hashmap class implementation. More... | |
Macros | |
#define | TMPL template <class T, class U> |
Functions | |
template<class T , class U > | |
int | N (hashmap< T, U > h) |
Returns the size of the given hashmap. | |
template<class T , class U > | |
tm_ostream & | operator<< (tm_ostream &out, hashmap< T, U > h) |
template<class T , class U > | |
hashmap< T, U > | copy (hashmap< T, U > h) |
template<class T , class U > | |
hashmap< T, U > | changes (hashmap< T, U > patch, hashmap< T, U > base) |
Creates a new hashmap containing entries that have changed in the 'patch' compared to 'base'. | |
template<class T , class U > | |
hashmap< T, U > | invert (hashmap< T, U > patch, hashmap< T, U > base) |
Creates a new hashmap containing entries that are different in the 'patch' compared to 'base', but with values taken from 'base'. | |
template<class T , class U > | |
bool | operator== (hashmap< T, U > h1, hashmap< T, U > h2) |
template<class T , class U > | |
bool | operator!= (hashmap< T, U > h1, hashmap< T, U > h2) |
CONCRETE_TEMPLATE_2_CODE (hashmap, class, T, class, U) | |
Returns the size of the given hashmap.
T | The type of the key in the hashmap. |
U | The type of the value in the hashmap. |
h | The hashmap whose size is to be determined. |
Definition at line 227 of file hashmap.hpp.
tm_ostream & operator<< | ( | tm_ostream & | out, |
hashmap< T, U > | h ) |
Definition at line 134 of file hashmap.ipp.
Definition at line 81 of file hashmap_extra.ipp.
Creates a new hashmap containing entries that have changed in the 'patch' compared to 'base'.
T | The type of the key in the hashmap. |
U | The type of the value in the hashmap. |
patch | The hashmap containing updated key-value pairs. |
base | The original hashmap that serves as the reference. |
Definition at line 91 of file hashmap_extra.ipp.
Creates a new hashmap containing entries that are different in the 'patch' compared to 'base', but with values taken from 'base'.
T | The type of the key in the hashmap. |
U | The type of the value in the hashmap. |
patch | The hashmap containing potentially updated key-value pairs. |
base | The original hashmap that serves as the reference. |
Definition at line 105 of file hashmap_extra.ipp.
Definition at line 160 of file hashmap.ipp.
Definition at line 172 of file hashmap.ipp.