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()16Digraph::Arc::Arc() 17 { 18 } 19 operator ==(const Digraph::Node & pOther) const20bool Digraph::Arc::operator==(const Digraph::Node& pOther) const 21 { 22 return true; 23 } 24 operator !=(const Digraph::Node & pOther) const25bool Digraph::Arc::operator!=(const Digraph::Node& pOther) const 26 { 27 return true; 28 } 29 source() const30Digraph::Node Digraph::Arc::source() const 31 { 32 return Node(); 33 } 34 target() const35Digraph::Node Digraph::Arc::target() const 36 { 37 return Node(); 38 } 39 Arc(Digraph & pParent)40Digraph::Arc::Arc(Digraph& pParent) 41 { 42 } 43 44 45 //===----------------------------------------------------------------------===// 46 // Digraph 47 //===----------------------------------------------------------------------===// Digraph()48Digraph::Digraph() 49 { 50 } 51 52 addNode()53Digraph::Node Digraph::addNode() 54 { 55 return Node(); 56 } 57 58 59 Digraph::Arc addArc(const Digraph::Node & pSource,const Digraph::Node & pTarget)60Digraph::addArc(const Digraph::Node& pSource, const Digraph::Node& pTarget) 61 { 62 return Arc(); 63 } 64 65 erase(const Digraph::Node & pNode)66void Digraph::erase(const Digraph::Node& pNode) 67 { 68 } 69 70 erase(const Digraph::Arc & pArc)71void Digraph::erase(const Digraph::Arc& pArc) 72 { 73 } 74 75 clear()76void Digraph::clear() 77 { 78 } 79 numOfNodes() const80unsigned int Digraph::numOfNodes() const 81 { 82 return 0; 83 } 84 numOfArcs() const85unsigned int Digraph::numOfArcs() const 86 { 87 return 0; 88 } 89