|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <cstdlib>#include <cassert>#include <charconv>#include <ctime>#include <gsl/gsl_rng.h>#include <fstream>#include <iostream>#include <string_view>#include <ah-errors.H>#include <aleph.H>#include <tpl_treap.H>#include <gmpfrxx.h>#include <tpl_binNodeUtils.H>Go to the source code of this file.
Functions | |
| long | randomLong () |
| void | print_pair (Treap< int >::Node *node, int, int) |
| void | print_key (Treap< int >::Node *node, int, int) |
| void | print_treap (Treap< int >::Node *node, int, int) |
| void | print_prio (Treap< int >::Node *node, int, int) |
| int | main (int argc, char *argv[]) |
Variables | |
| ofstream | output |
| fstream | fig_file |
| fstream | tex_file |
| Treap< int >::Node * | last_node = nullptr |
| gsl_rng * | rand_gen = nullptr |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 98 of file writeTreap.C.
References ah_invalid_argument_if, ah_runtime_error_if, Aleph::destroyRec(), Aleph::divide_and_conquer_partition_dp(), fig_file, Aleph::find_max(), Aleph::Gen_Treap< NodeType, Key, Compare >::getRoot(), Aleph::Gen_Treap< NodeType, Key, Compare >::gsl_rng_object(), Aleph::inOrderRec(), Aleph::Gen_Treap< NodeType, Key, Compare >::insert(), Aleph::is_treap(), last_node, output, Aleph::preOrderRec(), print_key(), print_pair(), print_prio(), print_treap(), Aleph::rand_gen, Aleph::Gen_Treap< NodeType, Key, Compare >::search(), Aleph::Gen_Treap< NodeType, Key, Compare >::set_seed(), and tex_file.
Definition at line 60 of file writeTreap.C.
References Aleph::divide_and_conquer_partition_dp(), last_node, Aleph::rand_gen, and tex_file.
Referenced by main().
Definition at line 87 of file writeTreap.C.
References Aleph::divide_and_conquer_partition_dp(), fig_file, and Aleph::rand_gen.
Referenced by main().
| long randomLong | ( | ) |
Definition at line 46 of file writeTreap.C.
References Aleph::divide_and_conquer_partition_dp().
| fstream fig_file |
Definition at line 52 of file writeTreap.C.
Referenced by main(), print_key(), and print_prio().
Definition at line 55 of file writeTreap.C.
Referenced by Aleph::Path< GT >::append(), Aleph::Path< GT >::append(), Aleph::Path< GT >::append_directed(), Aleph::Path< GT >::append_directed(), main(), print_pair(), TEST(), and TEST().
| ofstream output |
Definition at line 51 of file writeTreap.C.
Referenced by main(), and print_treap().
| gsl_rng* rand_gen = nullptr |
Definition at line 58 of file writeTreap.C.
| fstream tex_file |
Definition at line 53 of file writeTreap.C.
Referenced by main(), main(), and print_pair().