0
5
0
36
37
36
37
40
41
| ... | ... |
@@ -232,3 +232,3 @@ |
| 232 | 232 |
template <class T> |
| 233 |
struct |
|
| 233 |
struct SetPredMapTraits : public Traits {
|
|
| 234 | 234 |
typedef T PredMap; |
| ... | ... |
@@ -245,4 +245,4 @@ |
| 245 | 245 |
template <class T> |
| 246 |
struct DefPredMap : public Bfs< Digraph, DefPredMapTraits<T> > {
|
|
| 247 |
typedef Bfs< Digraph, DefPredMapTraits<T> > Create; |
|
| 246 |
struct SetPredMap : public Bfs< Digraph, SetPredMapTraits<T> > {
|
|
| 247 |
typedef Bfs< Digraph, SetPredMapTraits<T> > Create; |
|
| 248 | 248 |
}; |
| ... | ... |
@@ -250,3 +250,3 @@ |
| 250 | 250 |
template <class T> |
| 251 |
struct |
|
| 251 |
struct SetDistMapTraits : public Traits {
|
|
| 252 | 252 |
typedef T DistMap; |
| ... | ... |
@@ -263,4 +263,4 @@ |
| 263 | 263 |
template <class T> |
| 264 |
struct DefDistMap : public Bfs< Digraph, DefDistMapTraits<T> > {
|
|
| 265 |
typedef Bfs< Digraph, DefDistMapTraits<T> > Create; |
|
| 264 |
struct SetDistMap : public Bfs< Digraph, SetDistMapTraits<T> > {
|
|
| 265 |
typedef Bfs< Digraph, SetDistMapTraits<T> > Create; |
|
| 266 | 266 |
}; |
| ... | ... |
@@ -268,3 +268,3 @@ |
| 268 | 268 |
template <class T> |
| 269 |
struct |
|
| 269 |
struct SetReachedMapTraits : public Traits {
|
|
| 270 | 270 |
typedef T ReachedMap; |
| ... | ... |
@@ -281,4 +281,4 @@ |
| 281 | 281 |
template <class T> |
| 282 |
struct DefReachedMap : public Bfs< Digraph, DefReachedMapTraits<T> > {
|
|
| 283 |
typedef Bfs< Digraph, DefReachedMapTraits<T> > Create; |
|
| 282 |
struct SetReachedMap : public Bfs< Digraph, SetReachedMapTraits<T> > {
|
|
| 283 |
typedef Bfs< Digraph, SetReachedMapTraits<T> > Create; |
|
| 284 | 284 |
}; |
| ... | ... |
@@ -286,3 +286,3 @@ |
| 286 | 286 |
template <class T> |
| 287 |
struct |
|
| 287 |
struct SetProcessedMapTraits : public Traits {
|
|
| 288 | 288 |
typedef T ProcessedMap; |
| ... | ... |
@@ -299,7 +299,7 @@ |
| 299 | 299 |
template <class T> |
| 300 |
struct DefProcessedMap : public Bfs< Digraph, DefProcessedMapTraits<T> > {
|
|
| 301 |
typedef Bfs< Digraph, DefProcessedMapTraits<T> > Create; |
|
| 300 |
struct SetProcessedMap : public Bfs< Digraph, SetProcessedMapTraits<T> > {
|
|
| 301 |
typedef Bfs< Digraph, SetProcessedMapTraits<T> > Create; |
|
| 302 | 302 |
}; |
| 303 | 303 |
|
| 304 |
struct |
|
| 304 |
struct SetStandardProcessedMapTraits : public Traits {
|
|
| 305 | 305 |
typedef typename Digraph::template NodeMap<bool> ProcessedMap; |
| ... | ... |
@@ -316,6 +316,5 @@ |
| 316 | 316 |
///If you don't set it explicitly, it will be automatically allocated. |
| 317 |
template <class T> |
|
| 318 |
struct DefProcessedMapToBeDefaultMap : |
|
| 319 |
public Bfs< Digraph, DefDigraphProcessedMapTraits> {
|
|
| 320 |
typedef Bfs< Digraph, DefDigraphProcessedMapTraits> Create; |
|
| 317 |
struct SetStandardProcessedMap : |
|
| 318 |
public Bfs< Digraph, SetStandardProcessedMapTraits > {
|
|
| 319 |
typedef Bfs< Digraph, SetStandardProcessedMapTraits > Create; |
|
| 321 | 320 |
}; |
| ... | ... |
@@ -1067,6 +1066,6 @@ |
| 1067 | 1066 |
template<class T> |
| 1068 |
struct |
|
| 1067 |
struct SetPredMapBase : public Base {
|
|
| 1069 | 1068 |
typedef T PredMap; |
| 1070 | 1069 |
static PredMap *createPredMap(const Digraph &) { return 0; };
|
| 1071 |
|
|
| 1070 |
SetPredMapBase(const TR &b) : TR(b) {}
|
|
| 1072 | 1071 |
}; |
| ... | ... |
@@ -1078,6 +1077,6 @@ |
| 1078 | 1077 |
template<class T> |
| 1079 |
BfsWizard< |
|
| 1078 |
BfsWizard<SetPredMapBase<T> > predMap(const T &t) |
|
| 1080 | 1079 |
{
|
| 1081 | 1080 |
Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1082 |
return BfsWizard< |
|
| 1081 |
return BfsWizard<SetPredMapBase<T> >(*this); |
|
| 1083 | 1082 |
} |
| ... | ... |
@@ -1085,6 +1084,6 @@ |
| 1085 | 1084 |
template<class T> |
| 1086 |
struct |
|
| 1085 |
struct SetReachedMapBase : public Base {
|
|
| 1087 | 1086 |
typedef T ReachedMap; |
| 1088 | 1087 |
static ReachedMap *createReachedMap(const Digraph &) { return 0; };
|
| 1089 |
|
|
| 1088 |
SetReachedMapBase(const TR &b) : TR(b) {}
|
|
| 1090 | 1089 |
}; |
| ... | ... |
@@ -1096,6 +1095,6 @@ |
| 1096 | 1095 |
template<class T> |
| 1097 |
BfsWizard< |
|
| 1096 |
BfsWizard<SetReachedMapBase<T> > reachedMap(const T &t) |
|
| 1098 | 1097 |
{
|
| 1099 | 1098 |
Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1100 |
return BfsWizard< |
|
| 1099 |
return BfsWizard<SetReachedMapBase<T> >(*this); |
|
| 1101 | 1100 |
} |
| ... | ... |
@@ -1103,6 +1102,6 @@ |
| 1103 | 1102 |
template<class T> |
| 1104 |
struct |
|
| 1103 |
struct SetProcessedMapBase : public Base {
|
|
| 1105 | 1104 |
typedef T ProcessedMap; |
| 1106 | 1105 |
static ProcessedMap *createProcessedMap(const Digraph &) { return 0; };
|
| 1107 |
|
|
| 1106 |
SetProcessedMapBase(const TR &b) : TR(b) {}
|
|
| 1108 | 1107 |
}; |
| ... | ... |
@@ -1114,6 +1113,6 @@ |
| 1114 | 1113 |
template<class T> |
| 1115 |
BfsWizard< |
|
| 1114 |
BfsWizard<SetProcessedMapBase<T> > processedMap(const T &t) |
|
| 1116 | 1115 |
{
|
| 1117 | 1116 |
Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1118 |
return BfsWizard< |
|
| 1117 |
return BfsWizard<SetProcessedMapBase<T> >(*this); |
|
| 1119 | 1118 |
} |
| ... | ... |
@@ -1121,6 +1120,6 @@ |
| 1121 | 1120 |
template<class T> |
| 1122 |
struct |
|
| 1121 |
struct SetDistMapBase : public Base {
|
|
| 1123 | 1122 |
typedef T DistMap; |
| 1124 | 1123 |
static DistMap *createDistMap(const Digraph &) { return 0; };
|
| 1125 |
|
|
| 1124 |
SetDistMapBase(const TR &b) : TR(b) {}
|
|
| 1126 | 1125 |
}; |
| ... | ... |
@@ -1132,6 +1131,6 @@ |
| 1132 | 1131 |
template<class T> |
| 1133 |
BfsWizard< |
|
| 1132 |
BfsWizard<SetDistMapBase<T> > distMap(const T &t) |
|
| 1134 | 1133 |
{
|
| 1135 | 1134 |
Base::_dist=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1136 |
return BfsWizard< |
|
| 1135 |
return BfsWizard<SetDistMapBase<T> >(*this); |
|
| 1137 | 1136 |
} |
| ... | ... |
@@ -1356,3 +1355,3 @@ |
| 1356 | 1355 |
template <class T> |
| 1357 |
struct |
|
| 1356 |
struct SetReachedMapTraits : public Traits {
|
|
| 1358 | 1357 |
typedef T ReachedMap; |
| ... | ... |
@@ -1367,5 +1366,5 @@ |
| 1367 | 1366 |
template <class T> |
| 1368 |
struct DefReachedMap : public BfsVisit< Digraph, Visitor, |
|
| 1369 |
DefReachedMapTraits<T> > {
|
|
| 1370 |
|
|
| 1367 |
struct SetReachedMap : public BfsVisit< Digraph, Visitor, |
|
| 1368 |
SetReachedMapTraits<T> > {
|
|
| 1369 |
typedef BfsVisit< Digraph, Visitor, SetReachedMapTraits<T> > Create; |
|
| 1371 | 1370 |
}; |
| ... | ... |
@@ -61,3 +61,3 @@ |
| 61 | 61 |
|
| 62 |
// |
|
| 62 |
// Invalid arc constructor |
|
| 63 | 63 |
Arc(Invalid i) : Edge(i), forward(true) {}
|
| ... | ... |
@@ -76,7 +76,8 @@ |
| 76 | 76 |
|
| 77 |
/// First node of the edge |
|
| 78 |
Node u(const Edge &e) const {
|
|
| 79 |
return Parent::source(e); |
|
| 80 |
} |
|
| 77 | 81 |
|
| 78 |
|
|
| 79 |
using Parent::source; |
|
| 80 |
|
|
| 81 |
/// Source of the given Arc. |
|
| 82 |
/// Source of the given arc |
|
| 82 | 83 |
Node source(const Arc &e) const {
|
| ... | ... |
@@ -85,5 +86,8 @@ |
| 85 | 86 |
|
| 86 |
|
|
| 87 |
/// Second node of the edge |
|
| 88 |
Node v(const Edge &e) const {
|
|
| 89 |
return Parent::target(e); |
|
| 90 |
} |
|
| 87 | 91 |
|
| 88 |
/// Target of the given |
|
| 92 |
/// Target of the given arc |
|
| 89 | 93 |
Node target(const Arc &e) const {
|
| ... | ... |
@@ -94,11 +98,11 @@ |
| 94 | 98 |
/// |
| 95 |
/// Returns a directed arc corresponding to the specified Edge. |
|
| 96 |
/// If the given bool is true the given edge and the |
|
| 97 |
/// returned arc have the same source node. |
|
| 98 |
static Arc direct(const Edge &ue, bool d) {
|
|
| 99 |
|
|
| 99 |
/// Returns a directed arc corresponding to the specified edge. |
|
| 100 |
/// If the given bool is true, the first node of the given edge and |
|
| 101 |
/// the source node of the returned arc are the same. |
|
| 102 |
static Arc direct(const Edge &e, bool d) {
|
|
| 103 |
return Arc(e, d); |
|
| 100 | 104 |
} |
| 101 | 105 |
|
| 102 |
/// Returns whether the given directed arc is same orientation as the |
|
| 103 |
/// corresponding edge. |
|
| 106 |
/// Returns whether the given directed arc has the same orientation |
|
| 107 |
/// as the corresponding edge. |
|
| 104 | 108 |
/// |
| ... | ... |
@@ -106,4 +110,3 @@ |
| 106 | 110 |
/// concept. "What does the direction of an edge mean?" |
| 107 |
static bool direction(const Arc &e) { return e.forward; }
|
|
| 108 |
|
|
| 111 |
static bool direction(const Arc &a) { return a.forward; }
|
|
| 109 | 112 |
|
| ... | ... |
@@ -231,3 +234,2 @@ |
| 231 | 234 |
|
| 232 |
|
|
| 233 | 235 |
int arcNum() const {
|
| ... | ... |
@@ -232,3 +232,3 @@ |
| 232 | 232 |
template <class T> |
| 233 |
struct |
|
| 233 |
struct SetPredMapTraits : public Traits {
|
|
| 234 | 234 |
typedef T PredMap; |
| ... | ... |
@@ -245,4 +245,4 @@ |
| 245 | 245 |
template <class T> |
| 246 |
struct DefPredMap : public Dfs<Digraph, DefPredMapTraits<T> > {
|
|
| 247 |
typedef Dfs<Digraph, DefPredMapTraits<T> > Create; |
|
| 246 |
struct SetPredMap : public Dfs<Digraph, SetPredMapTraits<T> > {
|
|
| 247 |
typedef Dfs<Digraph, SetPredMapTraits<T> > Create; |
|
| 248 | 248 |
}; |
| ... | ... |
@@ -250,3 +250,3 @@ |
| 250 | 250 |
template <class T> |
| 251 |
struct |
|
| 251 |
struct SetDistMapTraits : public Traits {
|
|
| 252 | 252 |
typedef T DistMap; |
| ... | ... |
@@ -263,4 +263,4 @@ |
| 263 | 263 |
template <class T> |
| 264 |
struct DefDistMap : public Dfs< Digraph, DefDistMapTraits<T> > {
|
|
| 265 |
typedef Dfs<Digraph, DefDistMapTraits<T> > Create; |
|
| 264 |
struct SetDistMap : public Dfs< Digraph, SetDistMapTraits<T> > {
|
|
| 265 |
typedef Dfs<Digraph, SetDistMapTraits<T> > Create; |
|
| 266 | 266 |
}; |
| ... | ... |
@@ -268,3 +268,3 @@ |
| 268 | 268 |
template <class T> |
| 269 |
struct |
|
| 269 |
struct SetReachedMapTraits : public Traits {
|
|
| 270 | 270 |
typedef T ReachedMap; |
| ... | ... |
@@ -281,4 +281,4 @@ |
| 281 | 281 |
template <class T> |
| 282 |
struct DefReachedMap : public Dfs< Digraph, DefReachedMapTraits<T> > {
|
|
| 283 |
typedef Dfs< Digraph, DefReachedMapTraits<T> > Create; |
|
| 282 |
struct SetReachedMap : public Dfs< Digraph, SetReachedMapTraits<T> > {
|
|
| 283 |
typedef Dfs< Digraph, SetReachedMapTraits<T> > Create; |
|
| 284 | 284 |
}; |
| ... | ... |
@@ -286,3 +286,3 @@ |
| 286 | 286 |
template <class T> |
| 287 |
struct |
|
| 287 |
struct SetProcessedMapTraits : public Traits {
|
|
| 288 | 288 |
typedef T ProcessedMap; |
| ... | ... |
@@ -299,7 +299,7 @@ |
| 299 | 299 |
template <class T> |
| 300 |
struct DefProcessedMap : public Dfs< Digraph, DefProcessedMapTraits<T> > {
|
|
| 301 |
typedef Dfs< Digraph, DefProcessedMapTraits<T> > Create; |
|
| 300 |
struct SetProcessedMap : public Dfs< Digraph, SetProcessedMapTraits<T> > {
|
|
| 301 |
typedef Dfs< Digraph, SetProcessedMapTraits<T> > Create; |
|
| 302 | 302 |
}; |
| 303 | 303 |
|
| 304 |
struct |
|
| 304 |
struct SetStandardProcessedMapTraits : public Traits {
|
|
| 305 | 305 |
typedef typename Digraph::template NodeMap<bool> ProcessedMap; |
| ... | ... |
@@ -316,6 +316,5 @@ |
| 316 | 316 |
///If you don't set it explicitly, it will be automatically allocated. |
| 317 |
template <class T> |
|
| 318 |
struct DefProcessedMapToBeDefaultMap : |
|
| 319 |
public Dfs< Digraph, DefDigraphProcessedMapTraits> {
|
|
| 320 |
typedef Dfs< Digraph, DefDigraphProcessedMapTraits> Create; |
|
| 317 |
struct SetStandardProcessedMap : |
|
| 318 |
public Dfs< Digraph, SetStandardProcessedMapTraits > {
|
|
| 319 |
typedef Dfs< Digraph, SetStandardProcessedMapTraits > Create; |
|
| 321 | 320 |
}; |
| ... | ... |
@@ -1002,6 +1001,6 @@ |
| 1002 | 1001 |
template<class T> |
| 1003 |
struct |
|
| 1002 |
struct SetPredMapBase : public Base {
|
|
| 1004 | 1003 |
typedef T PredMap; |
| 1005 | 1004 |
static PredMap *createPredMap(const Digraph &) { return 0; };
|
| 1006 |
|
|
| 1005 |
SetPredMapBase(const TR &b) : TR(b) {}
|
|
| 1007 | 1006 |
}; |
| ... | ... |
@@ -1013,6 +1012,6 @@ |
| 1013 | 1012 |
template<class T> |
| 1014 |
DfsWizard< |
|
| 1013 |
DfsWizard<SetPredMapBase<T> > predMap(const T &t) |
|
| 1015 | 1014 |
{
|
| 1016 | 1015 |
Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1017 |
return DfsWizard< |
|
| 1016 |
return DfsWizard<SetPredMapBase<T> >(*this); |
|
| 1018 | 1017 |
} |
| ... | ... |
@@ -1020,6 +1019,6 @@ |
| 1020 | 1019 |
template<class T> |
| 1021 |
struct |
|
| 1020 |
struct SetReachedMapBase : public Base {
|
|
| 1022 | 1021 |
typedef T ReachedMap; |
| 1023 | 1022 |
static ReachedMap *createReachedMap(const Digraph &) { return 0; };
|
| 1024 |
|
|
| 1023 |
SetReachedMapBase(const TR &b) : TR(b) {}
|
|
| 1025 | 1024 |
}; |
| ... | ... |
@@ -1031,6 +1030,6 @@ |
| 1031 | 1030 |
template<class T> |
| 1032 |
DfsWizard< |
|
| 1031 |
DfsWizard<SetReachedMapBase<T> > reachedMap(const T &t) |
|
| 1033 | 1032 |
{
|
| 1034 | 1033 |
Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1035 |
return DfsWizard< |
|
| 1034 |
return DfsWizard<SetReachedMapBase<T> >(*this); |
|
| 1036 | 1035 |
} |
| ... | ... |
@@ -1038,6 +1037,6 @@ |
| 1038 | 1037 |
template<class T> |
| 1039 |
struct |
|
| 1038 |
struct SetProcessedMapBase : public Base {
|
|
| 1040 | 1039 |
typedef T ProcessedMap; |
| 1041 | 1040 |
static ProcessedMap *createProcessedMap(const Digraph &) { return 0; };
|
| 1042 |
|
|
| 1041 |
SetProcessedMapBase(const TR &b) : TR(b) {}
|
|
| 1043 | 1042 |
}; |
| ... | ... |
@@ -1049,6 +1048,6 @@ |
| 1049 | 1048 |
template<class T> |
| 1050 |
DfsWizard< |
|
| 1049 |
DfsWizard<SetProcessedMapBase<T> > processedMap(const T &t) |
|
| 1051 | 1050 |
{
|
| 1052 | 1051 |
Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1053 |
return DfsWizard< |
|
| 1052 |
return DfsWizard<SetProcessedMapBase<T> >(*this); |
|
| 1054 | 1053 |
} |
| ... | ... |
@@ -1056,6 +1055,6 @@ |
| 1056 | 1055 |
template<class T> |
| 1057 |
struct |
|
| 1056 |
struct SetDistMapBase : public Base {
|
|
| 1058 | 1057 |
typedef T DistMap; |
| 1059 | 1058 |
static DistMap *createDistMap(const Digraph &) { return 0; };
|
| 1060 |
|
|
| 1059 |
SetDistMapBase(const TR &b) : TR(b) {}
|
|
| 1061 | 1060 |
}; |
| ... | ... |
@@ -1067,6 +1066,6 @@ |
| 1067 | 1066 |
template<class T> |
| 1068 |
DfsWizard< |
|
| 1067 |
DfsWizard<SetDistMapBase<T> > distMap(const T &t) |
|
| 1069 | 1068 |
{
|
| 1070 | 1069 |
Base::_dist=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1071 |
return DfsWizard< |
|
| 1070 |
return DfsWizard<SetDistMapBase<T> >(*this); |
|
| 1072 | 1071 |
} |
| ... | ... |
@@ -1303,3 +1302,3 @@ |
| 1303 | 1302 |
template <class T> |
| 1304 |
struct |
|
| 1303 |
struct SetReachedMapTraits : public Traits {
|
|
| 1305 | 1304 |
typedef T ReachedMap; |
| ... | ... |
@@ -1314,5 +1313,5 @@ |
| 1314 | 1313 |
template <class T> |
| 1315 |
struct DefReachedMap : public DfsVisit< Digraph, Visitor, |
|
| 1316 |
DefReachedMapTraits<T> > {
|
|
| 1317 |
|
|
| 1314 |
struct SetReachedMap : public DfsVisit< Digraph, Visitor, |
|
| 1315 |
SetReachedMapTraits<T> > {
|
|
| 1316 |
typedef DfsVisit< Digraph, Visitor, SetReachedMapTraits<T> > Create; |
|
| 1318 | 1317 |
}; |
| ... | ... |
@@ -333,3 +333,3 @@ |
| 333 | 333 |
template <class T> |
| 334 |
struct |
|
| 334 |
struct SetPredMapTraits : public Traits {
|
|
| 335 | 335 |
typedef T PredMap; |
| ... | ... |
@@ -346,5 +346,5 @@ |
| 346 | 346 |
template <class T> |
| 347 |
struct DefPredMap |
|
| 348 |
: public Dijkstra< Digraph, LengthMap, DefPredMapTraits<T> > {
|
|
| 349 |
|
|
| 347 |
struct SetPredMap |
|
| 348 |
: public Dijkstra< Digraph, LengthMap, SetPredMapTraits<T> > {
|
|
| 349 |
typedef Dijkstra< Digraph, LengthMap, SetPredMapTraits<T> > Create; |
|
| 350 | 350 |
}; |
| ... | ... |
@@ -352,3 +352,3 @@ |
| 352 | 352 |
template <class T> |
| 353 |
struct |
|
| 353 |
struct SetDistMapTraits : public Traits {
|
|
| 354 | 354 |
typedef T DistMap; |
| ... | ... |
@@ -365,5 +365,5 @@ |
| 365 | 365 |
template <class T> |
| 366 |
struct DefDistMap |
|
| 367 |
: public Dijkstra< Digraph, LengthMap, DefDistMapTraits<T> > {
|
|
| 368 |
|
|
| 366 |
struct SetDistMap |
|
| 367 |
: public Dijkstra< Digraph, LengthMap, SetDistMapTraits<T> > {
|
|
| 368 |
typedef Dijkstra< Digraph, LengthMap, SetDistMapTraits<T> > Create; |
|
| 369 | 369 |
}; |
| ... | ... |
@@ -371,3 +371,3 @@ |
| 371 | 371 |
template <class T> |
| 372 |
struct |
|
| 372 |
struct SetProcessedMapTraits : public Traits {
|
|
| 373 | 373 |
typedef T ProcessedMap; |
| ... | ... |
@@ -384,8 +384,8 @@ |
| 384 | 384 |
template <class T> |
| 385 |
struct DefProcessedMap |
|
| 386 |
: public Dijkstra< Digraph, LengthMap, DefProcessedMapTraits<T> > {
|
|
| 387 |
|
|
| 385 |
struct SetProcessedMap |
|
| 386 |
: public Dijkstra< Digraph, LengthMap, SetProcessedMapTraits<T> > {
|
|
| 387 |
typedef Dijkstra< Digraph, LengthMap, SetProcessedMapTraits<T> > Create; |
|
| 388 | 388 |
}; |
| 389 | 389 |
|
| 390 |
struct |
|
| 390 |
struct SetStandardProcessedMapTraits : public Traits {
|
|
| 391 | 391 |
typedef typename Digraph::template NodeMap<bool> ProcessedMap; |
| ... | ... |
@@ -402,6 +402,5 @@ |
| 402 | 402 |
///If you don't set it explicitly, it will be automatically allocated. |
| 403 |
template <class T> |
|
| 404 |
struct DefProcessedMapToBeDefaultMap |
|
| 405 |
: public Dijkstra< Digraph, LengthMap, DefDigraphProcessedMapTraits> {
|
|
| 406 |
typedef Dijkstra< Digraph, LengthMap, DefDigraphProcessedMapTraits> |
|
| 403 |
struct SetStandardProcessedMap |
|
| 404 |
: public Dijkstra< Digraph, LengthMap, SetStandardProcessedMapTraits > {
|
|
| 405 |
typedef Dijkstra< Digraph, LengthMap, SetStandardProcessedMapTraits > |
|
| 407 | 406 |
Create; |
| ... | ... |
@@ -410,3 +409,3 @@ |
| 410 | 409 |
template <class H, class CR> |
| 411 |
struct |
|
| 410 |
struct SetHeapTraits : public Traits {
|
|
| 412 | 411 |
typedef CR HeapCrossRef; |
| ... | ... |
@@ -427,5 +426,5 @@ |
| 427 | 426 |
template <class H, class CR = typename Digraph::template NodeMap<int> > |
| 428 |
struct DefHeap |
|
| 429 |
: public Dijkstra< Digraph, LengthMap, DefHeapTraits<H, CR> > {
|
|
| 430 |
|
|
| 427 |
struct SetHeap |
|
| 428 |
: public Dijkstra< Digraph, LengthMap, SetHeapTraits<H, CR> > {
|
|
| 429 |
typedef Dijkstra< Digraph, LengthMap, SetHeapTraits<H, CR> > Create; |
|
| 431 | 430 |
}; |
| ... | ... |
@@ -433,3 +432,3 @@ |
| 433 | 432 |
template <class H, class CR> |
| 434 |
struct |
|
| 433 |
struct SetStandardHeapTraits : public Traits {
|
|
| 435 | 434 |
typedef CR HeapCrossRef; |
| ... | ... |
@@ -452,5 +451,5 @@ |
| 452 | 451 |
template <class H, class CR = typename Digraph::template NodeMap<int> > |
| 453 |
struct DefStandardHeap |
|
| 454 |
: public Dijkstra< Digraph, LengthMap, DefStandardHeapTraits<H, CR> > {
|
|
| 455 |
|
|
| 452 |
struct SetStandardHeap |
|
| 453 |
: public Dijkstra< Digraph, LengthMap, SetStandardHeapTraits<H, CR> > {
|
|
| 454 |
typedef Dijkstra< Digraph, LengthMap, SetStandardHeapTraits<H, CR> > |
|
| 456 | 455 |
Create; |
| ... | ... |
@@ -459,3 +458,3 @@ |
| 459 | 458 |
template <class T> |
| 460 |
struct |
|
| 459 |
struct SetOperationTraitsTraits : public Traits {
|
|
| 461 | 460 |
typedef T OperationTraits; |
| ... | ... |
@@ -469,5 +468,5 @@ |
| 469 | 468 |
template <class T> |
| 470 |
struct DefOperationTraits |
|
| 471 |
: public Dijkstra<Digraph, LengthMap, DefOperationTraitsTraits<T> > {
|
|
| 472 |
|
|
| 469 |
struct SetOperationTraits |
|
| 470 |
: public Dijkstra<Digraph, LengthMap, SetOperationTraitsTraits<T> > {
|
|
| 471 |
typedef Dijkstra<Digraph, LengthMap, SetOperationTraitsTraits<T> > |
|
| 473 | 472 |
Create; |
| ... | ... |
@@ -1207,6 +1206,6 @@ |
| 1207 | 1206 |
template<class T> |
| 1208 |
struct |
|
| 1207 |
struct SetPredMapBase : public Base {
|
|
| 1209 | 1208 |
typedef T PredMap; |
| 1210 | 1209 |
static PredMap *createPredMap(const Digraph &) { return 0; };
|
| 1211 |
|
|
| 1210 |
SetPredMapBase(const TR &b) : TR(b) {}
|
|
| 1212 | 1211 |
}; |
| ... | ... |
@@ -1218,6 +1217,6 @@ |
| 1218 | 1217 |
template<class T> |
| 1219 |
DijkstraWizard< |
|
| 1218 |
DijkstraWizard<SetPredMapBase<T> > predMap(const T &t) |
|
| 1220 | 1219 |
{
|
| 1221 | 1220 |
Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1222 |
return DijkstraWizard< |
|
| 1221 |
return DijkstraWizard<SetPredMapBase<T> >(*this); |
|
| 1223 | 1222 |
} |
| ... | ... |
@@ -1225,6 +1224,6 @@ |
| 1225 | 1224 |
template<class T> |
| 1226 |
struct |
|
| 1225 |
struct SetProcessedMapBase : public Base {
|
|
| 1227 | 1226 |
typedef T ProcessedMap; |
| 1228 | 1227 |
static ProcessedMap *createProcessedMap(const Digraph &) { return 0; };
|
| 1229 |
|
|
| 1228 |
SetProcessedMapBase(const TR &b) : TR(b) {}
|
|
| 1230 | 1229 |
}; |
| ... | ... |
@@ -1236,6 +1235,6 @@ |
| 1236 | 1235 |
template<class T> |
| 1237 |
DijkstraWizard< |
|
| 1236 |
DijkstraWizard<SetProcessedMapBase<T> > processedMap(const T &t) |
|
| 1238 | 1237 |
{
|
| 1239 | 1238 |
Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1240 |
return DijkstraWizard< |
|
| 1239 |
return DijkstraWizard<SetProcessedMapBase<T> >(*this); |
|
| 1241 | 1240 |
} |
| ... | ... |
@@ -1243,6 +1242,6 @@ |
| 1243 | 1242 |
template<class T> |
| 1244 |
struct |
|
| 1243 |
struct SetDistMapBase : public Base {
|
|
| 1245 | 1244 |
typedef T DistMap; |
| 1246 | 1245 |
static DistMap *createDistMap(const Digraph &) { return 0; };
|
| 1247 |
|
|
| 1246 |
SetDistMapBase(const TR &b) : TR(b) {}
|
|
| 1248 | 1247 |
}; |
| ... | ... |
@@ -1254,6 +1253,6 @@ |
| 1254 | 1253 |
template<class T> |
| 1255 |
DijkstraWizard< |
|
| 1254 |
DijkstraWizard<SetDistMapBase<T> > distMap(const T &t) |
|
| 1256 | 1255 |
{
|
| 1257 | 1256 |
Base::_dist=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1258 |
return DijkstraWizard< |
|
| 1257 |
return DijkstraWizard<SetDistMapBase<T> >(*this); |
|
| 1259 | 1258 |
} |
0 comments (0 inline)