Changeset 435:8f1dece01cc4 in lemon-0.x
- Timestamp:
- 04/27/04 11:26:32 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@583
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/makefile
r384 r435 1 #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++) 1 2 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) 2 3 CXX2 = g++-2.95 -
src/work/marci/graph_wrapper.h
r409 r435 1069 1069 }; 1070 1070 1071 template<typename Graph> 1072 class stGraphWrapper; 1073 1074 // template<typename Graph> 1075 // std::ostream& 1076 // operator<<(std::ostream& os, const typename stGraphWrapper<Graph>::Node& i) { 1077 // os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")"; 1078 // return os; 1079 // } 1080 // template<typename Graph> 1081 // std::ostream& 1082 // operator<<(std::ostream& os, const typename stGraphWrapper<Graph>::Edge& i) { 1083 // os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec << 1084 // " node: " << i.n << ")"; 1085 // return os; 1086 // } 1071 1087 1072 1088 /// experimentral, do not try it. … … 1123 1139 T_NODE(INVALID, 2) { } 1124 1140 1141 1142 // std::ostream& 1143 // operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i); 1144 // friend std::ostream& 1145 // operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i); 1146 // friend std::ostream& 1147 // operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Edge& i); 1148 1125 1149 class Node : public Graph::Node { 1126 1150 protected: … … 1148 1172 static_cast<typename Graph::Node>(v)); 1149 1173 } 1150 friend std::ostream& operator<<(std::ostream& os, const Node& i); 1174 // template<typename G> 1175 // friend std::ostream& 1176 // operator<<(std::ostream& os, const typename stGraphWrapper<G>::Node& i); 1177 friend std::ostream& operator<< (std::ostream& os, const Node& i); 1151 1178 int getSpec() const { return spec; } 1152 1179 }; … … 1193 1220 u.n!=v.n); 1194 1221 } 1195 friend std::ostream& operator<<(std::ostream& os, const Edge& i); 1222 // template<typename G> 1223 // friend std::ostream& 1224 // operator<<(std::ostream& os, const typename stGraphWrapper<G>::Edge& i); 1225 friend std::ostream& operator<< (std::ostream& os, const Edge& i); 1196 1226 int getSpec() const { return spec; } 1197 1227 }; … … 1602 1632 // }; 1603 1633 1604 friend std::ostream& operator<<(std::ostream& os, const Node& i) { 1634 // template<typename G> 1635 friend std::ostream& 1636 operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Node& i) { 1605 1637 os << "(node: " << typename Graph::Node(i) << " spec: " << i.spec <<")"; 1606 1638 return os; 1607 1639 } 1608 friend std::ostream& operator<<(std::ostream& os, const Edge& i) { 1640 // template<typename G> 1641 friend std::ostream& 1642 operator<<(std::ostream& os, const /*typename stGraphWrapper<Graph>::*/Edge& i) { 1609 1643 os << "(edge: " << typename Graph::Edge(i) << " spec: " << i.spec << 1610 1644 " node: " << i.n << ")";
Note: See TracChangeset
for help on using the changeset viewer.