Changes in lemon/path.h [517:afd134142111:313:64f8f7cc6168] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/path.h
r517 r313 930 930 931 931 template <typename Target, typename Source, 932 bool buildEnable = BuildTagIndicator<Target>::value> 933 struct PathCopySelectorForward { 932 bool buildEnable = BuildTagIndicator<Target>::value, 933 bool revEnable = RevPathTagIndicator<Source>::value> 934 struct PathCopySelector { 934 935 static void copy(Target& target, const Source& source) { 935 936 target.clear(); … … 941 942 942 943 template <typename Target, typename Source> 943 struct PathCopySelectorForward<Target, Source, true> { 944 static void copy(Target& target, const Source& source) { 945 target.clear(); 946 target.build(source); 947 } 948 }; 949 950 template <typename Target, typename Source, 951 bool buildEnable = BuildTagIndicator<Target>::value> 952 struct PathCopySelectorBackward { 944 struct PathCopySelector<Target, Source, false, true> { 953 945 static void copy(Target& target, const Source& source) { 954 946 target.clear(); … … 960 952 961 953 template <typename Target, typename Source> 962 struct PathCopySelectorBackward<Target, Source, true> { 954 struct PathCopySelector<Target, Source, true, false> { 955 static void copy(Target& target, const Source& source) { 956 target.clear(); 957 target.build(source); 958 } 959 }; 960 961 template <typename Target, typename Source> 962 struct PathCopySelector<Target, Source, true, true> { 963 963 static void copy(Target& target, const Source& source) { 964 964 target.clear(); 965 965 target.buildRev(source); 966 966 } 967 };968 969 970 template <typename Target, typename Source,971 bool revEnable = RevPathTagIndicator<Source>::value>972 struct PathCopySelector {973 static void copy(Target& target, const Source& source) {974 PathCopySelectorForward<Target, Source>::copy(target, source);975 }976 };977 978 template <typename Target, typename Source>979 struct PathCopySelector<Target, Source, true> {980 static void copy(Target& target, const Source& source) {981 PathCopySelectorBackward<Target, Source>::copy(target, source);982 }983 967 }; 984 968
Note: See TracChangeset
for help on using the changeset viewer.