STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Uhash_compare< _Kty, _Hasher, _Keyeq > Class Template Reference
Inheritance diagram for _Uhash_compare< _Kty, _Hasher, _Keyeq >:
_Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq > _Hash_oper1<!is_empty< _Hasher >::value, _Hasher > _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, true > _Uset_traits< _Kty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > _Uset_traits< _Kty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, true > _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > > _Hash< _Umap_traits< _Kty, _Ty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, true > > _Hash< _Uset_traits< _Kty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, false > > _Hash< _Uset_traits< _Kty, _Uhash_compare< _Kty, _Hasher, _Keyeq >, _Alloc, true > > unordered_map< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > unordered_multimap< _Kty, _Ty, _Hasher, _Keyeq, _Alloc > unordered_set< _Kty, _Hasher, _Keyeq, _Alloc > unordered_multiset< _Kty, _Hasher, _Keyeq, _Alloc >

Public Types

enum  { bucket_size = 1 }
 
typedef _Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq > _Mybase
 
- Public Types inherited from _Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq >
typedef _Hash_oper1<!is_empty< _Hasher >::value, _Hasher > _Mybase
 
- Public Types inherited from _Hash_oper1<!is_empty< _Hasher >::value, _Hasher >
typedef _Hasher hasher
 

Public Member Functions

 _Uhash_compare (_Hasher _Hasharg=_Hasher(), _Keyeq _Keyeqarg=_Keyeq())
 
 _Uhash_compare (_Keyeq _Keyeqarg)
 
size_t operator() (const _Kty &_Keyval) const
 
bool operator() (const _Kty &_Keyval1, const _Kty &_Keyval2) const
 
- Public Member Functions inherited from _Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq >
 _Hash_oper2 (_Hasher _Hasharg=_Hasher(), _Keyeq _Keyeqarg=_Keyeq())
 
const _Keyeq & _Getkeyeq () const
 
- Public Member Functions inherited from _Hash_oper1<!is_empty< _Hasher >::value, _Hasher >
 _Hash_oper1 (_Hasher _Hasharg)
 
const hasher_Gethash () const
 

Additional Inherited Members

- Public Attributes inherited from _Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq >
_Keyeq _Keyeqobj
 
- Public Attributes inherited from _Hash_oper1<!is_empty< _Hasher >::value, _Hasher >
_Hasher _Hashobj
 

Member Typedef Documentation

template<class _Kty , class _Hasher , class _Keyeq >
typedef _Hash_oper2<!is_empty<_Keyeq>::value, _Hasher, _Keyeq> _Uhash_compare< _Kty, _Hasher, _Keyeq >::_Mybase

Member Enumeration Documentation

template<class _Kty , class _Hasher , class _Keyeq >
anonymous enum
Enumerator
bucket_size 
226  { // parameters for hash table
227  bucket_size = 1 // 0 < bucket_size
228  };
Definition: xhash:227

Constructor & Destructor Documentation

template<class _Kty , class _Hasher , class _Keyeq >
_Uhash_compare< _Kty, _Hasher, _Keyeq >::_Uhash_compare ( _Hasher  _Hasharg = _Hasher(),
_Keyeq  _Keyeqarg = _Keyeq() 
)
inline
231  : _Mybase(_Hasharg, _Keyeqarg)
232  { // construct with hasher and equality comparator
233  }
_Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq > _Mybase
Definition: xhash:223
template<class _Kty , class _Hasher , class _Keyeq >
_Uhash_compare< _Kty, _Hasher, _Keyeq >::_Uhash_compare ( _Keyeq  _Keyeqarg)
inline
236  : _Mybase(_Hasher(), _Keyeqarg)
237  { // construct with equality comparator
238  }
_Hash_oper2<!is_empty< _Keyeq >::value, _Hasher, _Keyeq > _Mybase
Definition: xhash:223

Member Function Documentation

template<class _Kty , class _Hasher , class _Keyeq >
size_t _Uhash_compare< _Kty, _Hasher, _Keyeq >::operator() ( const _Kty &  _Keyval) const
inline
241  { // hash _Keyval to size_t value
242  return ((size_t)this->_Gethash()(_Keyval));
243  }
const hasher & _Gethash() const
Definition: xhash:145
template<class _Kty , class _Hasher , class _Keyeq >
bool _Uhash_compare< _Kty, _Hasher, _Keyeq >::operator() ( const _Kty &  _Keyval1,
const _Kty &  _Keyval2 
) const
inline
246  { // test if _Keyval1 NOT equal to _Keyval2
247  return (!this->_Getkeyeq()(_Keyval1, _Keyval2));
248  }
const _Keyeq & _Getkeyeq() const
Definition: xhash:185

The documentation for this class was generated from the following file: