10#ifndef TPETRA_HASHTABLE_DECL_HPP
11#define TPETRA_HASHTABLE_DECL_HPP
13#include <Teuchos_Describable.hpp>
14#include "Tpetra_ConfigDefs.hpp"
31template <
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
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))
ValueType get(const KeyType key)
Get the value corresponding to the given key.
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.
void add(const KeyType key, const ValueType value)
Add a key and its value to the hash table.
Nonmember function that computes a residual Computes R = B - A * X.
Namespace Tpetra contains the class and methods constituting the Tpetra library.