hash< K, T, H, E > Class Template Reference

Ratpac-two: stlplus::hash< K, T, H, E > Class Template Reference
Ratpac-two
stlplus::hash< K, T, H, E > Class Template Reference

Public Types

typedef unsigned size_type
 
typedef K key_type
 
typedef T data_type
 
typedef T mapped_type
 
typedef std::pair< const K, T > value_type
 
typedef hash_iterator< K, T, H, E, value_type > iterator
 
typedef hash_iterator< K, T, H, E, const value_type > const_iterator
 

Public Member Functions

 hash (unsigned bins=0)
 
 hash (const hash &)
 
hashoperator= (const hash &)
 
bool empty (void) const
 
unsigned size (void) const
 
bool operator== (const hash &) const
 
bool operator!= (const hash &) const
 
void auto_rehash (void)
 
void manual_rehash (void)
 
void rehash (unsigned bins=0)
 
float loading (void) const
 
bool present (const K &key) const
 
size_type count (const K &key) const
 
iterator insert (const K &key, const T &data)
 
std::pair< iterator, bool > insert (const value_type &value)
 
iterator insert (const K &key)
 
bool erase (const K &key)
 
void erase (void)
 
void clear (void)
 
const_iterator find (const K &key) const
 
iterator find (const K &key)
 
const T & operator[] (const K &key) const
 
T & operator[] (const K &key)
 
const_iterator begin (void) const
 
iterator begin (void)
 
const_iterator end (void) const
 
iterator end (void)
 
void debug_report (otext &, unsigned indent=0) const
 
std::string debug_report (unsigned indent=0) const
 
void dump (dump_context &) const throw ()
 
void restore (restore_context &) throw ()
 

Friends

class hash_element< K, T >
 
class hash_iterator< K, T, H, E, std::pair< const K, T > >
 
class hash_iterator< K, T, H, E, const std::pair< const K, T > >
 

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/external/stlplus/include/stlplus/hash.hpp