# HG changeset patch # User marci # Date 1083057992 0 # Node ID 8f1dece01cc4c9c355a98e0819d18445417ac551 # Parent 1ce1b4cd8dd58ac34119a205aefd235af95295ba misc diff -r 1ce1b4cd8dd5 -r 8f1dece01cc4 src/test/makefile --- a/src/test/makefile Tue Apr 27 08:31:00 2004 +0000 +++ b/src/test/makefile Tue Apr 27 09:26:32 2004 +0000 @@ -1,3 +1,4 @@ +#CXX3 := $(shell type -p g++-3.4 || shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) CXX2 = g++-2.95 CXX=$(CXX3) diff -r 1ce1b4cd8dd5 -r 8f1dece01cc4 src/work/marci/graph_wrapper.h --- a/src/work/marci/graph_wrapper.h Tue Apr 27 08:31:00 2004 +0000 +++ b/src/work/marci/graph_wrapper.h Tue Apr 27 09:26:32 2004 +0000 @@ -1068,6 +1068,22 @@ } }; + template + class stGraphWrapper; + +// template +// std::ostream& +// operator<<(std::ostream& os, const typename stGraphWrapper::Node& i) { +// os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")"; +// return os; +// } +// template +// std::ostream& +// operator<<(std::ostream& os, const typename stGraphWrapper::Edge& i) { +// os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec << +// " node: " << i.n << ")"; +// return os; +// } /// experimentral, do not try it. /// It eats a bipartite graph, oriented from S to T. @@ -1122,6 +1138,14 @@ S_NODE(INVALID, 1), T_NODE(INVALID, 2) { } + +// std::ostream& +// operator<<(std::ostream& os, const /*typename stGraphWrapper::*/Node& i); +// friend std::ostream& +// operator<<(std::ostream& os, const /*typename stGraphWrapper::*/Node& i); +// friend std::ostream& +// operator<<(std::ostream& os, const /*typename stGraphWrapper::*/Edge& i); + class Node : public Graph::Node { protected: friend class GraphWrapper; @@ -1147,7 +1171,10 @@ static_cast(u)!= static_cast(v)); } - friend std::ostream& operator<<(std::ostream& os, const Node& i); +// template +// friend std::ostream& +// operator<<(std::ostream& os, const typename stGraphWrapper::Node& i); + friend std::ostream& operator<< (std::ostream& os, const Node& i); int getSpec() const { return spec; } }; @@ -1192,7 +1219,10 @@ static_cast(v) || u.n!=v.n); } - friend std::ostream& operator<<(std::ostream& os, const Edge& i); +// template +// friend std::ostream& +// operator<<(std::ostream& os, const typename stGraphWrapper::Edge& i); + friend std::ostream& operator<< (std::ostream& os, const Edge& i); int getSpec() const { return spec; } }; @@ -1601,11 +1631,15 @@ // } // }; - friend std::ostream& operator<<(std::ostream& os, const Node& i) { +// template + friend std::ostream& + operator<<(std::ostream& os, const /*typename stGraphWrapper::*/Node& i) { os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")"; return os; } - friend std::ostream& operator<<(std::ostream& os, const Edge& i) { +// template + friend std::ostream& + operator<<(std::ostream& os, const /*typename stGraphWrapper::*/Edge& i) { os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec << " node: " << i.n << ")"; return os;