... | ... |
@@ -995,70 +995,70 @@ |
995 | 995 |
template<class T> |
996 | 996 |
BfsWizard<DefPredMapBase<T> > predMap(const T &t) |
997 | 997 |
{ |
998 | 998 |
Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
999 | 999 |
return BfsWizard<DefPredMapBase<T> >(*this); |
1000 | 1000 |
} |
1001 | 1001 |
|
1002 | 1002 |
|
1003 | 1003 |
template<class T> |
1004 | 1004 |
struct DefReachedMapBase : public Base { |
1005 | 1005 |
typedef T ReachedMap; |
1006 | 1006 |
static ReachedMap *createReachedMap(const Digraph &) { return 0; }; |
1007 | 1007 |
DefReachedMapBase(const TR &b) : TR(b) {} |
1008 | 1008 |
}; |
1009 | 1009 |
|
1010 | 1010 |
///\brief \ref named-templ-param "Named parameter" |
1011 | 1011 |
///function for setting ReachedMap |
1012 | 1012 |
/// |
1013 | 1013 |
/// \ref named-templ-param "Named parameter" |
1014 | 1014 |
///function for setting ReachedMap |
1015 | 1015 |
/// |
1016 | 1016 |
template<class T> |
1017 | 1017 |
BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) |
1018 | 1018 |
{ |
1019 |
Base:: |
|
1019 |
Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
|
1020 | 1020 |
return BfsWizard<DefReachedMapBase<T> >(*this); |
1021 | 1021 |
} |
1022 | 1022 |
|
1023 | 1023 |
|
1024 | 1024 |
template<class T> |
1025 | 1025 |
struct DefProcessedMapBase : public Base { |
1026 | 1026 |
typedef T ProcessedMap; |
1027 | 1027 |
static ProcessedMap *createProcessedMap(const Digraph &) { return 0; }; |
1028 | 1028 |
DefProcessedMapBase(const TR &b) : TR(b) {} |
1029 | 1029 |
}; |
1030 | 1030 |
|
1031 | 1031 |
///\brief \ref named-templ-param "Named parameter" |
1032 | 1032 |
///function for setting ProcessedMap |
1033 | 1033 |
/// |
1034 | 1034 |
/// \ref named-templ-param "Named parameter" |
1035 | 1035 |
///function for setting ProcessedMap |
1036 | 1036 |
/// |
1037 | 1037 |
template<class T> |
1038 | 1038 |
BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) |
1039 | 1039 |
{ |
1040 |
Base:: |
|
1040 |
Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
|
1041 | 1041 |
return BfsWizard<DefProcessedMapBase<T> >(*this); |
1042 | 1042 |
} |
1043 | 1043 |
|
1044 | 1044 |
|
1045 | 1045 |
template<class T> |
1046 | 1046 |
struct DefDistMapBase : public Base { |
1047 | 1047 |
typedef T DistMap; |
1048 | 1048 |
static DistMap *createDistMap(const Digraph &) { return 0; }; |
1049 | 1049 |
DefDistMapBase(const TR &b) : TR(b) {} |
1050 | 1050 |
}; |
1051 | 1051 |
|
1052 | 1052 |
///\brief \ref named-templ-param "Named parameter" |
1053 | 1053 |
///function for setting DistMap type |
1054 | 1054 |
/// |
1055 | 1055 |
/// \ref named-templ-param "Named parameter" |
1056 | 1056 |
///function for setting DistMap type |
1057 | 1057 |
/// |
1058 | 1058 |
template<class T> |
1059 | 1059 |
BfsWizard<DefDistMapBase<T> > distMap(const T &t) |
1060 | 1060 |
{ |
1061 | 1061 |
Base::_dist=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1062 | 1062 |
return BfsWizard<DefDistMapBase<T> >(*this); |
1063 | 1063 |
} |
1064 | 1064 |
|
... | ... |
@@ -978,70 +978,70 @@ |
978 | 978 |
template<class T> |
979 | 979 |
DfsWizard<DefPredMapBase<T> > predMap(const T &t) |
980 | 980 |
{ |
981 | 981 |
Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
982 | 982 |
return DfsWizard<DefPredMapBase<T> >(*this); |
983 | 983 |
} |
984 | 984 |
|
985 | 985 |
|
986 | 986 |
template<class T> |
987 | 987 |
struct DefReachedMapBase : public Base { |
988 | 988 |
typedef T ReachedMap; |
989 | 989 |
static ReachedMap *createReachedMap(const Digraph &) { return 0; }; |
990 | 990 |
DefReachedMapBase(const TR &b) : TR(b) {} |
991 | 991 |
}; |
992 | 992 |
|
993 | 993 |
///\brief \ref named-templ-param "Named parameter" |
994 | 994 |
///function for setting ReachedMap |
995 | 995 |
/// |
996 | 996 |
/// \ref named-templ-param "Named parameter" |
997 | 997 |
///function for setting ReachedMap |
998 | 998 |
/// |
999 | 999 |
template<class T> |
1000 | 1000 |
DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) |
1001 | 1001 |
{ |
1002 |
Base:: |
|
1002 |
Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
|
1003 | 1003 |
return DfsWizard<DefReachedMapBase<T> >(*this); |
1004 | 1004 |
} |
1005 | 1005 |
|
1006 | 1006 |
|
1007 | 1007 |
template<class T> |
1008 | 1008 |
struct DefProcessedMapBase : public Base { |
1009 | 1009 |
typedef T ProcessedMap; |
1010 | 1010 |
static ProcessedMap *createProcessedMap(const Digraph &) { return 0; }; |
1011 | 1011 |
DefProcessedMapBase(const TR &b) : TR(b) {} |
1012 | 1012 |
}; |
1013 | 1013 |
|
1014 | 1014 |
///\brief \ref named-templ-param "Named parameter" |
1015 | 1015 |
///function for setting ProcessedMap |
1016 | 1016 |
/// |
1017 | 1017 |
/// \ref named-templ-param "Named parameter" |
1018 | 1018 |
///function for setting ProcessedMap |
1019 | 1019 |
/// |
1020 | 1020 |
template<class T> |
1021 | 1021 |
DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) |
1022 | 1022 |
{ |
1023 |
Base:: |
|
1023 |
Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
|
1024 | 1024 |
return DfsWizard<DefProcessedMapBase<T> >(*this); |
1025 | 1025 |
} |
1026 | 1026 |
|
1027 | 1027 |
template<class T> |
1028 | 1028 |
struct DefDistMapBase : public Base { |
1029 | 1029 |
typedef T DistMap; |
1030 | 1030 |
static DistMap *createDistMap(const Digraph &) { return 0; }; |
1031 | 1031 |
DefDistMapBase(const TR &b) : TR(b) {} |
1032 | 1032 |
}; |
1033 | 1033 |
|
1034 | 1034 |
///\brief \ref named-templ-param "Named parameter" |
1035 | 1035 |
///function for setting DistMap type |
1036 | 1036 |
/// |
1037 | 1037 |
/// \ref named-templ-param "Named parameter" |
1038 | 1038 |
///function for setting DistMap type |
1039 | 1039 |
/// |
1040 | 1040 |
template<class T> |
1041 | 1041 |
DfsWizard<DefDistMapBase<T> > distMap(const T &t) |
1042 | 1042 |
{ |
1043 | 1043 |
Base::_dist=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1044 | 1044 |
return DfsWizard<DefDistMapBase<T> >(*this); |
1045 | 1045 |
} |
1046 | 1046 |
|
1047 | 1047 |
/// Sets the source node, from which the Dfs algorithm runs. |
0 comments (0 inline)