|
Teuchos - Trilinos Tools Package Version of the Day
|
Templated hashtable-based set. More...
#include <Teuchos_HashSet.hpp>
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. | |
| std::string | toString () const |
| Write to a std::string. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<class Key > | |
| std::ostream & | operator<< (std::ostream &os, const HashSet< Key > &h) |
| Write HashSet to a stream. | |
Templated hashtable-based set.
HashSet is a hashtable-based set, similar to the STL set class or the Java HashSet class.
Definition at line 32 of file Teuchos_HashSet.hpp.
|
inline |
Create an empty HashSet.
Definition at line 84 of file Teuchos_HashSet.hpp.
Check for the presence of a key.
Definition at line 91 of file Teuchos_HashSet.hpp.
Put a new object into the table.
Definition at line 108 of file Teuchos_HashSet.hpp.
Remove from the table the element given by key.
Definition at line 210 of file Teuchos_HashSet.hpp.
|
inline |
Get the number of elements in the table.
Definition at line 49 of file Teuchos_HashSet.hpp.
Get list of keys in Array form.
Definition at line 158 of file Teuchos_HashSet.hpp.
Get list of keys in Array form.
Definition at line 175 of file Teuchos_HashSet.hpp.
|
inline |
Write to a std::string.
Definition at line 189 of file Teuchos_HashSet.hpp.
Write HashSet to a stream.
Definition at line 236 of file Teuchos_HashSet.hpp.