10 #ifndef TPETRA_HASHTABLE_DECL_HPP
11 #define TPETRA_HASHTABLE_DECL_HPP
13 #include <Teuchos_Describable.hpp>
14 #include "Tpetra_ConfigDefs.hpp"
31 template <
typename KeyType,
typename ValueType>
39 Node(
const KeyType key = 0,
const ValueType value = 0, Node* ptr = NULL)
50 Node& operator=(
const Node& src) {
62 #ifdef HAVE_TPETRA_DEBUG
65 #endif // HAVE_TPETRA_DEBUG
69 int hashFunc(
const KeyType key);
71 int getRecommendedSize(
const int size);
80 HashTable(
const int size,
const unsigned int seed = (2654435761U));
86 void add(
const KeyType key,
const ValueType value);
89 ValueType
get(
const KeyType key);
99 const Teuchos::EVerbosityLevel verbLevel =
100 Teuchos::Describable::verbLevel_default)
const;
HashTable(const int size, const unsigned int seed=(2654435761U))
void add(const KeyType key, const ValueType value)
Add a key and its value to the hash table.
std::string description() const
Implementation of Teuchos::Describable.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print this object with the given verbosity to the output stream.