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

Go to the source code of this file.

Functions

static void print_key (const Rb_Tree< int >::Node *p, int, int)
 
static void print_color (const Rb_Tree< int >::Node *p, int, int pos)
 
static void print_key_ex (const Rb_Tree< int >::Node *p, int, int)
 
static void print_color_ex (const Rb_Tree< int >::Node *p, int, int pos)
 
int main (int argc, char *argv[])
 

Variables

ofstream output
 
ofstream file
 

Function Documentation

◆ main()

◆ print_color()

static void print_color ( const Rb_Tree< int >::Node p,
int  ,
int  pos 
)
static

Definition at line 54 of file writeRb.C.

References COLOR, file, and RED.

Referenced by main().

◆ print_color_ex()

static void print_color_ex ( const Rb_Tree< int >::Node p,
int  ,
int  pos 
)
static

Definition at line 67 of file writeRb.C.

References COLOR, output, and RED.

Referenced by main().

◆ print_key()

static void print_key ( const Rb_Tree< int >::Node p,
int  ,
int   
)
static

Definition at line 48 of file writeRb.C.

References file.

Referenced by main().

◆ print_key_ex()

static void print_key_ex ( const Rb_Tree< int >::Node p,
int  ,
int   
)
static

Definition at line 61 of file writeRb.C.

References output.

Referenced by main().

Variable Documentation

◆ file

◆ output

ofstream output

Definition at line 43 of file writeRb.C.

Referenced by main(), print_color_ex(), and print_key_ex().