HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfHashSet< Key, HashFn, EqualKey, Alloc > Class Template Reference

#include <hashset.h>

+ Inheritance diagram for TfHashSet< Key, HashFn, EqualKey, Alloc >:

Public Types

typedef _Base::key_type key_type
 
typedef _Base::value_type value_type
 
typedef _Base::hasher hasher
 
typedef _Base::key_equal key_equal
 
typedef _Base::size_type size_type
 
typedef _Base::difference_type difference_type
 
typedef _Base::pointer pointer
 
typedef _Base::const_pointer const_pointer
 
typedef _Base::reference reference
 
typedef _Base::const_reference const_reference
 
typedef _Base::iterator iterator
 
typedef _Base::const_iterator const_iterator
 
typedef _Base::allocator_type allocator_type
 

Public Member Functions

 TfHashSet ()
 
 TfHashSet (size_type n, const hasher &hf=hasher(), const key_equal &eql=key_equal(), const allocator_type &alloc=allocator_type())
 
 TfHashSet (const allocator_type &alloc)
 
template<class InputIterator >
 TfHashSet (InputIterator first, InputIterator last, size_type n=0, const hasher &hf=hasher(), const key_equal &eql=key_equal(), const allocator_type &alloc=allocator_type())
 
 TfHashSet (const TfHashSet &other)
 
TfHashSetoperator= (const TfHashSet &rhs)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
iterator end ()
 
const_iterator end () const
 
size_type erase (const key_type &key)
 
void erase (const_iterator position)
 
void erase (const_iterator first, const_iterator last)
 
std::pair< iterator, bool > insert (const value_type &v)
 
iterator insert (const_iterator hint, const value_type &v)
 
template<class InputIterator >
void insert (InputIterator first, InputIterator last)
 
void swap (TfHashSet &other)
 

Friends

template<class Key2 , class HashFn2 , class EqualKey2 , class Alloc2 >
bool operator== (const TfHashSet< Key2, HashFn2, EqualKey2, Alloc2 > &, const TfHashSet< Key2, HashFn2, EqualKey2, Alloc2 > &)
 

Detailed Description

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
class TfHashSet< Key, HashFn, EqualKey, Alloc >

Definition at line 263 of file hashset.h.

Member Typedef Documentation

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::allocator_type TfHashSet< Key, HashFn, EqualKey, Alloc >::allocator_type

Definition at line 279 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::const_iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::const_iterator

Definition at line 278 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::const_pointer TfHashSet< Key, HashFn, EqualKey, Alloc >::const_pointer

Definition at line 274 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::const_reference TfHashSet< Key, HashFn, EqualKey, Alloc >::const_reference

Definition at line 276 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::difference_type TfHashSet< Key, HashFn, EqualKey, Alloc >::difference_type

Definition at line 272 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::hasher TfHashSet< Key, HashFn, EqualKey, Alloc >::hasher

Definition at line 269 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::iterator

Definition at line 277 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::key_equal TfHashSet< Key, HashFn, EqualKey, Alloc >::key_equal

Definition at line 270 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::key_type TfHashSet< Key, HashFn, EqualKey, Alloc >::key_type

Definition at line 267 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::pointer TfHashSet< Key, HashFn, EqualKey, Alloc >::pointer

Definition at line 273 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::reference TfHashSet< Key, HashFn, EqualKey, Alloc >::reference

Definition at line 275 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::size_type TfHashSet< Key, HashFn, EqualKey, Alloc >::size_type

Definition at line 271 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
typedef _Base::value_type TfHashSet< Key, HashFn, EqualKey, Alloc >::value_type

Definition at line 268 of file hashset.h.

Constructor & Destructor Documentation

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
TfHashSet< Key, HashFn, EqualKey, Alloc >::TfHashSet ( )
inline

Definition at line 282 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
TfHashSet< Key, HashFn, EqualKey, Alloc >::TfHashSet ( size_type  n,
const hasher hf = hasher(),
const key_equal eql = key_equal(),
const allocator_type alloc = allocator_type() 
)
inlineexplicit

Definition at line 284 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
TfHashSet< Key, HashFn, EqualKey, Alloc >::TfHashSet ( const allocator_type alloc)
inlineexplicit

Definition at line 289 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
template<class InputIterator >
TfHashSet< Key, HashFn, EqualKey, Alloc >::TfHashSet ( InputIterator  first,
InputIterator  last,
size_type  n = 0,
const hasher hf = hasher(),
const key_equal eql = key_equal(),
const allocator_type alloc = allocator_type() 
)
inline

Definition at line 291 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
TfHashSet< Key, HashFn, EqualKey, Alloc >::TfHashSet ( const TfHashSet< Key, HashFn, EqualKey, Alloc > &  other)
inline

Definition at line 296 of file hashset.h.

Member Function Documentation

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::begin ( void  )
inline

Definition at line 303 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
const_iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::begin ( void  ) const
inline

Definition at line 304 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
const_iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::cbegin ( ) const
inline

Definition at line 308 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
const_iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::cend ( ) const
inline

Definition at line 309 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::end ( void  )
inline

Definition at line 313 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
const_iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::end ( void  ) const
inline

Definition at line 314 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
size_type TfHashSet< Key, HashFn, EqualKey, Alloc >::erase ( const key_type key)
inline

Definition at line 316 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
void TfHashSet< Key, HashFn, EqualKey, Alloc >::erase ( const_iterator  position)
inline

Definition at line 317 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
void TfHashSet< Key, HashFn, EqualKey, Alloc >::erase ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 318 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
std::pair<iterator, bool> TfHashSet< Key, HashFn, EqualKey, Alloc >::insert ( const value_type v)
inline

Definition at line 324 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
iterator TfHashSet< Key, HashFn, EqualKey, Alloc >::insert ( const_iterator  hint,
const value_type v 
)
inline

Definition at line 327 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
template<class InputIterator >
void TfHashSet< Key, HashFn, EqualKey, Alloc >::insert ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 331 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
TfHashSet& TfHashSet< Key, HashFn, EqualKey, Alloc >::operator= ( const TfHashSet< Key, HashFn, EqualKey, Alloc > &  rhs)
inline

Definition at line 298 of file hashset.h.

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
void TfHashSet< Key, HashFn, EqualKey, Alloc >::swap ( TfHashSet< Key, HashFn, EqualKey, Alloc > &  other)
inline

Definition at line 343 of file hashset.h.

Friends And Related Function Documentation

template<class Key, class HashFn = std::hash<Key>, class EqualKey = std::equal_to<Key>, class Alloc = std::allocator<Key>>
template<class Key2 , class HashFn2 , class EqualKey2 , class Alloc2 >
bool operator== ( const TfHashSet< Key2, HashFn2, EqualKey2, Alloc2 > &  ,
const TfHashSet< Key2, HashFn2, EqualKey2, Alloc2 > &   
)
friend

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