|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include <ah-random.H>#include <cassert>#include <iostream>#include <string>#include <aleph.H>#include <tpl_dynArray.H>#include <tpl_sort_utils.H>#include <tpl_olhash.H>#include <tpl_odhash.H>#include <ctime>Go to the source code of this file.
Functions | |
| template<template< typename, class > class HashTable, typename Key , class Cmp = Aleph::equal_to<Key>> | |
| HashTable< Key, Cmp > | create_table (const HashTable< Key, Cmp > &s) |
| template<template< typename, class > class HashTable, typename Key , class Cmp = Aleph::equal_to<Key>> | |
| void | test_hash_table (size_t n, Gsl_Compatible_Rng &r) |
| int | main (int argc, char *argv[]) |
Variables | |
| static unsigned long | tbl_size = 0 |
| constexpr int | DEFAULT_N = 100 |
| HashTable< Key, Cmp > create_table | ( | const HashTable< Key, Cmp > & | s | ) |
Definition at line 53 of file testOhash.C.
Referenced by test_hash_table().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 254 of file testOhash.C.
References DEFAULT_N, Aleph::Gsl_Compatible_Rng::max(), and r.
| void test_hash_table | ( | size_t | n, |
| Gsl_Compatible_Rng & | r | ||
| ) |
Definition at line 65 of file testOhash.C.
References Aleph::binary_search(), Aleph::count(), create_table(), Aleph::Gsl_Compatible_Rng::get(), k, keys, Aleph::quicksort_op(), r, tbl_size, and Aleph::Gsl_Compatible_Rng::uniform_int().
|
constexpr |
Definition at line 49 of file testOhash.C.
Referenced by main().
|
static |
Definition at line 47 of file testOhash.C.
Referenced by test_hash_table().