#include <Teuchos_HashSet.hpp>
Collaboration diagram for Teuchos::HashSet< Key >:
Public Member Functions | |
| HashSet (int capacity=19) | |
| Create an empty HashSet. | |
| bool | containsKey (const Key &key) const |
| Check for the presence of a key. | |
| void | put (const Key &key) |
| Put a new object into the table. | |
| void | remove (const Key &key) |
| Remove from the table the element given by key. | |
| int | size () const |
| Get the number of elements in the table. | |
| Array< Key > | arrayify () const |
| Get list of keys in Array form. | |
| void | arrayify (Array< Key > &keys) const |
| Get list of keys in Array form. | |
| string | toString () const |
| Write to a string. | |
Private Member Functions | |
| void | rehash () |
| int | nextPrime (int newCap) const |
Related Functions | |
| (Note that these are not member functions.) | |
| ostream & | operator<< (ostream &os, const HashSet< Key > &h) |
| Write HashSet to a stream. | |
HashSet is a hashtable-based set, similar to the STL set class or the Java HashSet class.
Definition at line 51 of file Teuchos_HashSet.hpp.
|
||||||||||
|
Create an empty HashSet.
Definition at line 103 of file Teuchos_HashSet.hpp. |
|
||||||||||
|
Check for the presence of a key.
Definition at line 110 of file Teuchos_HashSet.hpp. |
|
||||||||||
|
Put a new object into the table.
Definition at line 127 of file Teuchos_HashSet.hpp. |
|
||||||||||
|
Remove from the table the element given by key.
Definition at line 229 of file Teuchos_HashSet.hpp. |
|
|||||||||
|
Get the number of elements in the table.
Definition at line 68 of file Teuchos_HashSet.hpp. |
|
|||||||||
|
Get list of keys in Array form.
Definition at line 177 of file Teuchos_HashSet.hpp. |
|
||||||||||
|
Get list of keys in Array form.
Definition at line 194 of file Teuchos_HashSet.hpp. |
|
|||||||||
|
Write to a string.
Definition at line 208 of file Teuchos_HashSet.hpp. |
|
|||||||||
|
rebuild the hashtable when the size has changed Definition at line 160 of file Teuchos_HashSet.hpp. |
|
||||||||||
|
get the next prime number near a given capacity |
|
||||||||||||||||
|
Write HashSet to a stream.
Definition at line 255 of file Teuchos_HashSet.hpp. |
1.3.9.1