| Teuchos Package Browser (Single Doxygen Collection)
    Version of the Day
    | 
Templated hashtable-based set. More...
#include <Teuchos_HashSet.hpp>
| Public Member Functions | |
| HashSet (int capacity=19) | |
| Create an empty HashSet.  More... | |
| bool | containsKey (const Key &key) const | 
| Check for the presence of a key.  More... | |
| void | put (const Key &key) | 
| Put a new object into the table.  More... | |
| void | remove (const Key &key) | 
| Remove from the table the element given by key.  More... | |
| int | size () const | 
| Get the number of elements in the table.  More... | |
| Array< Key > | arrayify () const | 
| Get list of keys in Array form.  More... | |
| void | arrayify (Array< Key > &keys) const | 
| Get list of keys in Array form.  More... | |
| std::string | toString () const | 
| Write to a std::string.  More... | |
| Private Member Functions | |
| void | rehash () | 
| int | nextPrime (int newCap) const | 
| Private Attributes | |
| Array< Array< Key > > | data_ | 
| int | count_ | 
| int | capacity_ | 
| Key | mostRecentKey_ | 
| Related Functions | |
| (Note that these are not member functions.) | |
| template<class Key > | |
| std::ostream & | operator<< (std::ostream &os, const HashSet< Key > &h) | 
| Write HashSet to a stream.  More... | |
Templated hashtable-based set.
HashSet is a hashtable-based set, similar to the STL set class or the Java HashSet class.
Definition at line 64 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Create an empty HashSet.
Definition at line 116 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Check for the presence of a key.
Definition at line 123 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Put a new object into the table.
Definition at line 140 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Remove from the table the element given by key.
Definition at line 242 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Get the number of elements in the table.
Definition at line 81 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Get list of keys in Array form.
Definition at line 190 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Get list of keys in Array form.
Definition at line 207 of file Teuchos_HashSet.hpp.
| 
 | inline | 
Write to a std::string.
Definition at line 221 of file Teuchos_HashSet.hpp.
| 
 | inlineprivate | 
rebuild the hashtable when the size has changed
Definition at line 173 of file Teuchos_HashSet.hpp.
| 
 | inlineprivate | 
get the next prime number near a given capacity
| 
 | related | 
Write HashSet to a stream.
Definition at line 268 of file Teuchos_HashSet.hpp.
| 
 | private | 
Definition at line 98 of file Teuchos_HashSet.hpp.
| 
 | private | 
Definition at line 99 of file Teuchos_HashSet.hpp.
| 
 | private | 
Definition at line 100 of file Teuchos_HashSet.hpp.
| 
 | mutableprivate | 
Definition at line 101 of file Teuchos_HashSet.hpp.
 1.8.5
 1.8.5