|
|
|
HashSet< Key, Hash > Class Template ReferenceA HashTable with keys but without contents. More...
Inheritance diagram for HashSet< Key, Hash >:
![]()
Collaboration diagram for HashSet< Key, Hash >:
![]()
Detailed Descriptiontemplate<class Key = word, class Hash = string::hash>
A HashTable with keys but without contents.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef HashTable<nil, Key, Hash>::const_iterator const_iterator |
Construct from the keys of another HashTable,.
the type of values held is arbitrary.
Definition at line 27 of file HashSet.C.
References HashTable< T, Key, Hash >::cbegin(), and HashTable< T, Key, Hash >::cend().

| bool insert | ( | const Key & | key | ) | [inline] |
Insert a new entry.
Definition at line 118 of file HashSet.H.
Referenced by HashSet< label, Hash< label > >::HashSet(), HashSet< Key, Hash >::operator&=(), HashSet< Key, Hash >::operator-=(), HashSet< Key, Hash >::operator[](), Foam::parseNASCoord(), mapDistribute::schedule(), and HashSet< label, Hash< label > >::set().

| bool set | ( | const Key & | key | ) | [inline] |
| bool operator[] | ( | const Key & | key | ) | const [inline] |
Return true if the entry exists, same as found().
Reimplemented from HashTable< nil, Key, Hash >.
Definition at line 46 of file HashSet.C.
References HashSet< Key, Hash >::insert().

Equality. Two hashtables are equal when their contents are equal.
Independent of table size or order.
Definition at line 53 of file HashSet.C.
References HashTable< nil, Key, Hash >::found().
Referenced by HashSet< Key, Hash >::operator|=().


Combine entries from HashSets.
Definition at line 85 of file HashSet.C.
References HashSet< Key, Hash >::operator==().

Only retain entries found in both HashSets.
Definition at line 96 of file HashSet.C.
References HashSet< Key, Hash >::insert().

Only retain unique entries (xor).
Definition at line 110 of file HashSet.C.
References HashTable< nil, Key, Hash >::erase().

Remove entries listed in the given HashSet from this HashSet.
Definition at line 129 of file HashSet.C.
References HashSet< Key, Hash >::insert().
