Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
test_gen_tree.C File Reference
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
#include <tpl_graph.H>
#include <graph_to_tree.H>
#include <generate_tree.H>
Include dependency graph for test_gen_tree.C:

Go to the source code of this file.

Classes

struct  Ciudad
 
struct  Via
 
struct  Ciudad_Igual
 
struct  GT_Tree< GT >
 
struct  Write_Ciudad
 

Macros

#define INDENT   " "
 

Typedefs

typedef Graph_Node< Ciudad > Nodo_Ciudad
 
typedef Graph_Arc< Via > Arco_Via
 
typedef List_Graph< Nodo_Ciudad, Arco_Via > Mapa
 
typedef List_Digraph< Nodo_Ciudad, Arco_Via > Dimapa
 

Functions

Mapa::Node * buscar_ciudad (Mapa &mapa, const string &nombre)
 
void insert_via (Mapa &mapa, const string &c1, const string &c2, int distancia)
 
void imprimir_camino (Path< Mapa > &path)
 
void imprimir_mapa (Mapa &g)
 
void construir_mapa (Mapa &g)
 
int main ()
 

Macro Definition Documentation

◆ INDENT

#define INDENT   " "

Definition at line 42 of file test_gen_tree.C.

Typedef Documentation

◆ Arco_Via

Definition at line 99 of file test_gen_tree.C.

◆ Dimapa

Definition at line 104 of file test_gen_tree.C.

◆ Mapa

Definition at line 102 of file test_gen_tree.C.

◆ Nodo_Ciudad

Definition at line 97 of file test_gen_tree.C.

Function Documentation

◆ buscar_ciudad()

Mapa::Node * buscar_ciudad ( Mapa &  mapa,
const string &  nombre 
)

Definition at line 117 of file test_gen_tree.C.

References GraphCommon< GT, Node, Arc >::search_node().

Referenced by insert_via(), and main().

◆ construir_mapa()

void construir_mapa ( Mapa &  g)

Definition at line 200 of file test_gen_tree.C.

References insert_via().

Referenced by main().

◆ imprimir_camino()

void imprimir_camino ( Path< Mapa > &  path)

Definition at line 145 of file test_gen_tree.C.

References Aleph::Const_Iterator< It >::has_curr().

◆ imprimir_mapa()

◆ insert_via()

void insert_via ( Mapa &  mapa,
const string &  c1,
const string &  c2,
int  distancia 
)

◆ main()

int main ( void  )

Definition at line 237 of file test_gen_tree.C.

References buscar_ciudad(), construir_mapa(), imprimir_mapa(), and test().