Changeset 987:87f7c54892df in lemon-0.x for src/work/marci
- Timestamp:
- 11/13/04 18:07:10 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1377
- Location:
- src/work/marci
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/augmenting_flow.h
r986 r987 113 113 int* number_of_augmentations; 114 114 public: 115 typedef Node Key Type;116 typedef bool Value Type;115 typedef Node Key; 116 typedef bool Value; 117 117 TrickyReachedMap(IntMap& _map, int& _number_of_augmentations) : 118 118 map(&_map), number_of_augmentations(&_number_of_augmentations) { } -
src/work/marci/bfs_mm.h
r986 r987 141 141 /// Guess what? 142 142 /// \deprecated 143 typename ReachedMap::Value Typereached(const Node& n) const {143 typename ReachedMap::Value reached(const Node& n) const { 144 144 return (*reached_map)[n]; 145 145 } … … 243 243 /// Guess what? 244 244 /// \deprecated 245 typename PredMap::Value Typepred(const Node& n) const {245 typename PredMap::Value pred(const Node& n) const { 246 246 return (*pred_map)[n]; 247 247 } … … 251 251 /// Guess what? 252 252 /// \deprecated 253 typename PredNodeMap::Value TypepredNode(const Node& n) const {253 typename PredNodeMap::Value predNode(const Node& n) const { 254 254 return (*pred_node_map)[n]; 255 255 } … … 259 259 /// Guess what? 260 260 /// \deprecated 261 typename DistMap::Value Typedist(const Node& n) const {261 typename DistMap::Value dist(const Node& n) const { 262 262 return (*dist_map)[n]; 263 263 } -
src/work/marci/bipartite_graph_wrapper.h
r986 r987 795 795 template<typename NM> class NodeMapWrapper { 796 796 public: 797 typedef Node Key Type;798 typedef typename NM::Value Type ValueType;797 typedef Node Key; 798 typedef typename NM::Value Value; 799 799 protected: 800 800 NM* nm; 801 Value Type* s_value, t_value;802 public: 803 NodeMapWrapper(NM& _nm, Value Type& _s_value, ValueType& _t_value) :801 Value* s_value, t_value; 802 public: 803 NodeMapWrapper(NM& _nm, Value& _s_value, Value& _t_value) : 804 804 nm(&_nm), s_value(&_s_value), t_value(&_t_value) { } 805 Value Typeoperator[](const Node& n) const {805 Value operator[](const Node& n) const { 806 806 switch (n.getSpec()) { 807 807 case 0: … … 814 814 } 815 815 } 816 void set(const Node& n, Value Typet) {816 void set(const Node& n, Value t) { 817 817 switch (n.getSpec()) { 818 818 case 0: … … 874 874 class EdgeMapWrapper { 875 875 public: 876 typedef Edge Key Type;877 typedef typename EM::Value Type ValueType;876 typedef Edge Key; 877 typedef typename EM::Value Value; 878 878 protected: 879 879 EM* em; … … 881 881 public: 882 882 EdgeMapWrapper(EM& _em, NM& _nm) : em(&_em), nm(&_nm) { } 883 Value Typeoperator[](const Edge& e) const {883 Value operator[](const Edge& e) const { 884 884 switch (e.getSpec()) { 885 885 case 0: … … 892 892 } 893 893 } 894 void set(const Edge& e, Value Typet) {894 void set(const Edge& e, Value t) { 895 895 switch (e.getSpec()) { 896 896 case 0: -
src/work/marci/experiment/list_graph.h
r986 r987 39 39 std::vector<T> container; 40 40 public: 41 typedef T Value Type;42 typedef Node Key Type;41 typedef T Value; 42 typedef Node Key; 43 43 NodeMap(const ListGraph& _G) : G(_G), container(G.node_id) { } 44 44 NodeMap(const ListGraph& _G, T a) : … … 60 60 std::vector<T> container; 61 61 public: 62 typedef T Value Type;63 typedef Edge Key Type;62 typedef T Value; 63 typedef Edge Key; 64 64 EdgeMap(const ListGraph& _G) : G(_G), container(G.edge_id) { } 65 65 EdgeMap(const ListGraph& _G, T a) : -
src/work/marci/graph_concept.h
r986 r987 168 168 { 169 169 public: 170 typedef T Value Type;171 typedef Node Key Type;170 typedef T Value; 171 typedef Node Key; 172 172 173 173 NodeMap(const GraphConcept& g) { } … … 206 206 { 207 207 public: 208 typedef T Value Type;209 typedef Edge Key Type;208 typedef T Value; 209 typedef Edge Key; 210 210 211 211 EdgeMap(const GraphConcept& g) {} -
src/work/marci/leda/leda_graph_wrapper.h
r986 r987 262 262 leda_node_map<T> leda_stuff; 263 263 public: 264 typedef T Value Type;265 typedef Node Key Type;264 typedef T Value; 265 typedef Node Key; 266 266 267 267 NodeMap(const LedaGraphWrapper &G) : leda_stuff(*(G.l_graph)) {} … … 282 282 leda_edge_map<T> leda_stuff; 283 283 public: 284 typedef T Value Type;285 typedef Edge Key Type;284 typedef T Value; 285 typedef Edge Key; 286 286 287 287 EdgeMap(const LedaGraphWrapper &G) : leda_stuff(*(G.l_graph)) {} … … 304 304 leda_node_array<T>* leda_stuff; 305 305 public: 306 typedef T Value Type;307 typedef Node Key Type;306 typedef T Value; 307 typedef Node Key; 308 308 309 309 NodeMapWrapper(leda_node_array<T>& _leda_stuff) : … … 326 326 leda_edge_array<T>* leda_stuff; 327 327 public: 328 typedef T Value Type;329 typedef Edge Key Type;328 typedef T Value; 329 typedef Edge Key; 330 330 331 331 EdgeMapWrapper(leda_edge_array<T>& _leda_stuff) :
Note: See TracChangeset
for help on using the changeset viewer.