Changeset 1710:f531c16dd923 in lemon-0.x for lemon/floyd_warshall.h
- Timestamp:
- 10/06/05 11:37:53 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2237
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/floyd_warshall.h
r1699 r1710 171 171 /// \author Balazs Dezso 172 172 173 173 #ifdef DOXYGEN 174 template <typename _Graph, typename _LengthMap typename _Traits > 175 #else 174 176 template <typename _Graph=ListGraph, 175 177 typename _LengthMap=typename _Graph::template EdgeMap<int>, 176 178 typename _Traits=FloydWarshallDefaultTraits<_Graph,_LengthMap> > 179 #endif 177 180 class FloydWarshall { 178 181 public: … … 257 260 /// 258 261 template <class T> 259 class DefPredMap 260 : public FloydWarshall< Graph, LengthMap, DefPredMapTraits<T> > {}; 262 struct DefPredMap 263 : public FloydWarshall< Graph, LengthMap, DefPredMapTraits<T> > { 264 typedef FloydWarshall< Graph, LengthMap, DefPredMapTraits<T> > Create; 265 }; 261 266 262 267 template <class T> … … 273 278 /// 274 279 template <class T> 275 class DefDistMap 276 : public FloydWarshall< Graph, LengthMap, DefDistMapTraits<T> > {}; 280 struct DefDistMap 281 : public FloydWarshall< Graph, LengthMap, DefDistMapTraits<T> > { 282 typedef FloydWarshall< Graph, LengthMap, DefDistMapTraits<T> > Create; 283 }; 277 284 278 285 template <class T> … … 286 293 /// \ref named-templ-param "Named parameter" for setting PredMap type 287 294 template <class T> 288 classDefOperationTraits295 struct DefOperationTraits 289 296 : public FloydWarshall< Graph, LengthMap, DefOperationTraitsTraits<T> > { 297 typedef FloydWarshall< Graph, LengthMap, DefOperationTraitsTraits<T> > 298 Create; 290 299 }; 291 300 292 301 ///@} 293 302 303 protected: 304 305 FloydWarshall() {} 306 294 307 public: 308 309 typedef FloydWarshall Create; 295 310 296 311 /// \brief Constructor.
Note: See TracChangeset
for help on using the changeset viewer.