44#ifndef TPETRA_HASHTABLE_DECL_HPP
45#define TPETRA_HASHTABLE_DECL_HPP
47#include <Teuchos_Describable.hpp>
48#include "Tpetra_ConfigDefs.hpp"
65template<
typename KeyType,
typename ValueType>
74 : Key(
key), Value(value), Ptr(
ptr) {}
77 Node (
const Node& src) : Key(src.Key), Value(src.Value), Ptr(src.Ptr) {}
91#ifdef HAVE_TPETRA_DEBUG
100 int getRecommendedSize(
const int size );
128 const Teuchos::EVerbosityLevel
verbLevel=
129 Teuchos::Describable::verbLevel_default)
const;
Struct that holds views of the contents of a CrsMatrix.
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.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.