58 hashtable.
put(as<Key>(1), as<Value>(1));
59 hashtable.
put(as<Key>(3), as<Value>(9));
60 hashtable.
put(as<Key>(5), as<Value>(7));
75 #define UNIT_TEST_GROUP( K, V ) \
76 TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT( Hashtable, test0, K, V )
Templated hashtable class.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
#define UNIT_TEST_GROUP(K, V)
#define TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL(TEST_GROUP, TEST_NAME, TYPE1, TYPE2)
Macro for defining a templated unit test with two template parameters.
Templated hashtable class.
bool containsKey(const Key &key) const
Check for the presence of a key.
TypeTo as(const TypeFrom &t)
Convert from one value type to another.
void put(const Key &key, const Value &value)
Put a new (key, value) pair in the table.
const Value & get(const Key &key) const
Get the value indexed by key.
Definition of Teuchos::as, for conversions between types.
int size() const
Get the number of elements in the table.