Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
testBinNodeUtils.C File Reference
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
#include <tpl_dynArray.H>
#include <tpl_binTree.H>
#include <tpl_binNodeUtils.H>
#include <cassert>
Include dependency graph for testBinNodeUtils.C:

Go to the source code of this file.

Classes

struct  Clave
 Key structure for DFS tree nodes. More...
 
struct  Cargar_Clave
 

Functions

static void printNode (BinTree< int >::Node *node, int, int)
 
static void print_node (BinTree< int >::Node *node, int, int)
 
static void print_node (BinTree< int >::Node *node, int, bool)
 
static void fill_preorder (BinTree< int >::Node *node, int, int pos)
 
static void fill_inorder (BinTree< int >::Node *node, int, int pos)
 
static void fill_postorder (BinTree< int >::Node *node, int, int pos)
 
int main (int argc, char *argv[])
 

Variables

DynArray< int > preorder
 
DynArray< int > inorder
 
DynArray< int > postorder
 

Function Documentation

◆ fill_inorder()

static void fill_inorder ( BinTree< int >::Node node,
int  ,
int  pos 
)
static

Definition at line 68 of file testBinNodeUtils.C.

References inorder.

Referenced by main().

◆ fill_postorder()

static void fill_postorder ( BinTree< int >::Node node,
int  ,
int  pos 
)
static

Definition at line 76 of file testBinNodeUtils.C.

References postorder.

Referenced by main().

◆ fill_preorder()

static void fill_preorder ( BinTree< int >::Node node,
int  ,
int  pos 
)
static

Definition at line 60 of file testBinNodeUtils.C.

References preorder.

Referenced by main().

◆ main()

◆ print_node() [1/2]

static void print_node ( BinTree< int >::Node node,
int  ,
bool   
)
static

Definition at line 52 of file testBinNodeUtils.C.

◆ print_node() [2/2]

static void print_node ( BinTree< int >::Node node,
int  ,
int   
)
static

Definition at line 47 of file testBinNodeUtils.C.

Referenced by main().

◆ printNode()

static void printNode ( BinTree< int >::Node node,
int  ,
int   
)
static

Definition at line 42 of file testBinNodeUtils.C.

Referenced by main().

Variable Documentation

◆ inorder

◆ postorder

◆ preorder