Doubly-linked hash map.  
 More...
#include <kcmap.h>
List of all members.
Detailed Description
template<class KEY, class VALUE, class HASH = std::hash<KEY>, class EQUALTO = std::equal_to<KEY>>
class kyotocabinet::LinkedHashMap< KEY, VALUE, HASH, EQUALTO >
Doubly-linked hash map. 
- Parameters:
- 
  
    | KEY | the key type. |  | VALUE | the value type. |  | HASH | the hash functor. |  | EQUALTO | the equality checking functor. |  
 
Member Enumeration Documentation
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Moving Modes. 
- Enumerator: 
- 
| MCURRENT | keep the current position  |  | MFIRST | move to the first  |  | MLAST | move to the last  |  
 
 
 
Constructor & Destructor Documentation
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Constructor. 
- Parameters:
- 
  
    | bnum | the number of buckets of the hash table. |  
 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
 
Member Function Documentation
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Store a record. 
- Parameters:
- 
  
    | key | the key. |  | value | the value. |  | mode | the moving mode. |  
 
- Returns:
- the pointer to the value of the stored record. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Remove a record. 
- Parameters:
- 
  
  
- Returns:
- true on success, or false on failure. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Migrate a record to another map. 
- Parameters:
- 
  
    | key | the key. |  | dist | the destination map. |  | mode | the moving mode. |  
 
- Returns:
- the pointer to the value of the migrated record, or NULL on failure. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Retrieve a record. 
- Parameters:
- 
  
    | key | the key. |  | mode | the moving mode. |  
 
- Returns:
- the pointer to the value of the corresponding record, or NULL on failure. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get the number of records. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get an iterator at the first record. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get an iterator of the end sentry. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get an iterator at a record. 
- Parameters:
- 
  
  
- Returns:
- the pointer to the value of the corresponding record, or NULL on failure. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get the reference of the key of the first record. 
- Returns:
- the reference of the key of the first record. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get the reference of the value of the first record. 
- Returns:
- the reference of the value of the first record. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get the reference of the key of the last record. 
- Returns:
- the reference of the key of the last record. 
 
 
template<class KEY , class VALUE , class HASH  = std::hash<KEY>, class EQUALTO  = std::equal_to<KEY>> 
      
 
Get the reference of the value of the last record. 
- Returns:
- the reference of the value of the last record.