ignore .lib and .exe
[prop.git] / prop-src / graphreport.pcc
blob69fc68115846f348cc9b31821b651cd5abadb178
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 //  This file generates a readable report of the graph type representation.
4 //
5 ///////////////////////////////////////////////////////////////////////////////
6 #include <iostream.h>
7 #include "graphtype.ph"
8 #include "graphedges.ph"
10 ///////////////////////////////////////////////////////////////////////////////
12 //  Print a report on a graph type definition
14 ///////////////////////////////////////////////////////////////////////////////
15 void GraphTypeDef::print_report(CodeGen& f)
16 {  for_each(NodeDef *, n, node_defs)
17        n->print_report(f);
18    for_each(EdgeDef *, e, edge_defs)
19        e->print_report(f);
22 ///////////////////////////////////////////////////////////////////////////////
24 //  Describe the node 
26 ///////////////////////////////////////////////////////////////////////////////
27 void NodeDef::print_report(CodeGen& f)
31 ///////////////////////////////////////////////////////////////////////////////
33 //  Describe the edge 
35 ///////////////////////////////////////////////////////////////////////////////
36 void EdgeDef::print_report(CodeGen& f)
40 void MapEdge::print_report(CodeGen& f) 
41 {  Super::print_report(f);
44 void MultiMapEdge::print_report(CodeGen& f) 
45 {  Super::print_report(f);
48 void BijectionEdge::print_report(CodeGen& f) 
49 {  Super::print_report(f);
52 void EquivRelationEdge::print_report(CodeGen& f) 
53 {  Super::print_report(f);