Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
testLuka.C File Reference
#include <ctime>
#include <cstdlib>
#include <cassert>
#include <ah-random.H>
#include <cstring>
#include <iostream>
#include <ah-errors.H>
#include <tpl_binNode.H>
#include <tpl_binNodeUtils.H>
Include dependency graph for testLuka.C:

Go to the source code of this file.

Functions

void init_random (int seed)
 
size_t get_rand (const size_t &n)
 
template<class Node >
Node * random_tree (const size_t &n)
 
template<class Node >
string luka (Node *p)
 
template<class Node >
Node * luka_to_tree (char *&cod)
 
int main (int argc, char *argv[])
 

Variables

Gsl_Compatible_Rng r
 

Function Documentation

◆ get_rand()

size_t get_rand ( const size_t &  n)

Definition at line 53 of file testLuka.C.

References r, and Aleph::Gsl_Compatible_Rng::uniform_int().

Referenced by random_tree().

◆ init_random()

void init_random ( int  seed)

Definition at line 47 of file testLuka.C.

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

Referenced by main().

◆ luka()

template<class Node >
string luka ( Node *  p)

Definition at line 78 of file testLuka.C.

References LLINK, luka(), and RLINK.

Referenced by luka(), and main().

◆ luka_to_tree()

template<class Node >
Node * luka_to_tree ( char *&  cod)

Definition at line 87 of file testLuka.C.

References LLINK, and RLINK.

◆ main()

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

Definition at line 103 of file testLuka.C.

References Aleph::areSimilar(), Aleph::destroyRec(), init_random(), and luka().

◆ random_tree()

template<class Node >
Node * random_tree ( const size_t &  n)

Definition at line 60 of file testLuka.C.

References get_rand(), LLINK, RLINK, and root().

Variable Documentation

◆ r

Definition at line 44 of file testLuka.C.

Referenced by get_rand(), and init_random().