1 //===- Digraph.cpp --------------------------------------------------------===//
2 //
3 //                     The MCLinker Project
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #include <mcld/ADT/GraphLite/Digraph.h>
10 
11 using namespace mcld::graph;
12 
13 //===----------------------------------------------------------------------===//
14 // Digraph::Arc
15 //===----------------------------------------------------------------------===//
Arc()16 Digraph::Arc::Arc()
17 {
18 }
19 
operator ==(const Digraph::Node & pOther) const20 bool Digraph::Arc::operator==(const Digraph::Node& pOther) const
21 {
22   return true;
23 }
24 
operator !=(const Digraph::Node & pOther) const25 bool Digraph::Arc::operator!=(const Digraph::Node& pOther) const
26 {
27   return true;
28 }
29 
source() const30 Digraph::Node Digraph::Arc::source() const
31 {
32   return Node();
33 }
34 
target() const35 Digraph::Node Digraph::Arc::target() const
36 {
37   return Node();
38 }
39 
Arc(Digraph & pParent)40 Digraph::Arc::Arc(Digraph& pParent)
41 {
42 }
43 
44 
45 //===----------------------------------------------------------------------===//
46 // Digraph
47 //===----------------------------------------------------------------------===//
Digraph()48 Digraph::Digraph()
49 {
50 }
51 
52 
addNode()53 Digraph::Node Digraph::addNode()
54 {
55   return Node();
56 }
57 
58 
59 Digraph::Arc
addArc(const Digraph::Node & pSource,const Digraph::Node & pTarget)60 Digraph::addArc(const Digraph::Node& pSource, const Digraph::Node& pTarget)
61 {
62   return Arc();
63 }
64 
65 
erase(const Digraph::Node & pNode)66 void Digraph::erase(const Digraph::Node& pNode)
67 {
68 }
69 
70 
erase(const Digraph::Arc & pArc)71 void Digraph::erase(const Digraph::Arc& pArc)
72 {
73 }
74 
75 
clear()76 void Digraph::clear()
77 {
78 }
79 
numOfNodes() const80 unsigned int Digraph::numOfNodes() const
81 {
82   return 0;
83 }
84 
numOfArcs() const85 unsigned int Digraph::numOfArcs() const
86 {
87   return 0;
88 }
89