Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
testOhash.C File Reference
#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>
Include dependency graph for testOhash.C:

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
 

Function Documentation

◆ create_table()

template<template< typename, class > class HashTable, typename Key , class Cmp = Aleph::equal_to<Key>>
HashTable< Key, Cmp > create_table ( const HashTable< Key, Cmp > &  s)

Definition at line 53 of file testOhash.C.

Referenced by test_hash_table().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 254 of file testOhash.C.

References DEFAULT_N, Aleph::Gsl_Compatible_Rng::max(), and r.

◆ test_hash_table()

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 
)

Variable Documentation

◆ DEFAULT_N

constexpr int DEFAULT_N = 100
constexpr

Definition at line 49 of file testOhash.C.

Referenced by main().

◆ tbl_size

unsigned long tbl_size = 0
static

Definition at line 47 of file testOhash.C.

Referenced by test_hash_table().