|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include <ctime>#include <cerrno>#include <climits>#include <ah-random.H>#include <cassert>#include <iostream>#include <ahFunctional.H>#include <ahSort.H>#include <tpl_sort_utils.H>#include <tpl_dynMapTree.H>Go to the source code of this file.
Macros | |
| #define | NumItems 10000 |
Functions | |
| unsigned long | insert_n_random_items_in_set (DynSetTree< unsigned long > &table, DynArray< unsigned long > &keys, unsigned long n) |
| DynSetTree< unsigned long > | create_table (const DynSetTree< unsigned long > &other) |
| void | test_DynSet (size_t n) |
| unsigned long | insert_n_random_items_in_map (DynMapTree< unsigned long, long > &table, DynArray< unsigned long > &keys, unsigned long n) |
| void | test_DynMap (size_t n) |
| int | main (int argc, char *argv[]) |
Variables | |
| Gsl_Compatible_Rng | r |
| #define NumItems 10000 |
Definition at line 44 of file testDynSetTree.C.
| DynSetTree< unsigned long > create_table | ( | const DynSetTree< unsigned long > & | other | ) |
Definition at line 70 of file testDynSetTree.C.
References FunctionalMethods< Container, T >::for_each(), and Aleph::DynSetTree< Key, Tree, Compare >::insert().
Referenced by test_DynSet().
| unsigned long insert_n_random_items_in_map | ( | DynMapTree< unsigned long, long > & | table, |
| DynArray< unsigned long > & | keys, | ||
| unsigned long | n | ||
| ) |
Definition at line 235 of file testDynSetTree.C.
References Aleph::Gsl_Compatible_Rng::get(), Aleph::DynMapTree< Key, Data, Tree, Compare >::has(), Aleph::DynMapTree< Key, Data, Tree, Compare >::insert(), keys, and r.
Referenced by test_DynMap().
| unsigned long insert_n_random_items_in_set | ( | DynSetTree< unsigned long > & | table, |
| DynArray< unsigned long > & | keys, | ||
| unsigned long | n | ||
| ) |
Definition at line 50 of file testDynSetTree.C.
References Aleph::Gsl_Compatible_Rng::get(), Aleph::DynSetTree< Key, Tree, Compare >::has(), Aleph::DynSetTree< Key, Tree, Compare >::insert(), keys, and r.
Referenced by test_DynSet().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 326 of file testDynSetTree.C.
References Aleph::Gsl_Compatible_Rng::max(), NumItems, r, Aleph::Gsl_Compatible_Rng::seed(), test_DynMap(), and test_DynSet().
| void test_DynMap | ( | size_t | n | ) |
Definition at line 256 of file testDynSetTree.C.
References Aleph::all(), insert_n_random_items_in_map(), GenericItems< Container, T >::items(), k, GenericItems< Container, T >::keys(), and keys.
Referenced by main().
| void test_DynSet | ( | size_t | n | ) |
Definition at line 81 of file testDynSetTree.C.
References Aleph::all(), Aleph::and, Aleph::DynArray< T >::append(), Aleph::binary_search(), Aleph::contains(), create_table(), Aleph::DynSetTree< Key, Tree, Compare >::empty(), EqualSortedMethod< Container >::equal_to(), Aleph::filter(), FunctionalMethods< Container, T >::filter(), Aleph::for_each(), Aleph::Gsl_Compatible_Rng::get(), Aleph::DynSetTree< Key, Tree, Compare >::has(), Aleph::HTList::Iterator::has_curr(), Aleph::DynSetTree< Key, Tree, Compare >::insert(), insert_n_random_items_in_set(), k, GenericItems< Container, T >::keys(), keys, l, r, Aleph::DynSetTree< Key, Tree, Compare >::remove(), Aleph::DynSetTree< Key, Tree, Compare >::search(), Aleph::DynSetTree< Key, Tree, Compare >::size(), Aleph::DynList< T >::size(), and Aleph::DynArray< T >::size().
Referenced by main().
Definition at line 48 of file testDynSetTree.C.
Referenced by insert_n_random_items_in_map(), insert_n_random_items_in_set(), main(), and test_DynSet().