Changeset 525:9605e051942f in lemon for lemon/circulation.h
- Timestamp:
- 02/23/09 12:10:26 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/circulation.h
r463 r525 32 32 /// 33 33 /// Default traits class of Circulation class. 34 /// \tparam _DiraphDigraph type.35 /// \tparam _LCapMapLower bound capacity map type.36 /// \tparam _UCapMapUpper bound capacity map type.37 /// \tparam _DeltaMapDelta map type.38 template <typename _Diraph, typename _LCapMap,39 typename _UCapMap, typename _DeltaMap>34 /// \tparam GR Digraph type. 35 /// \tparam LM Lower bound capacity map type. 36 /// \tparam UM Upper bound capacity map type. 37 /// \tparam DM Delta map type. 38 template <typename GR, typename LM, 39 typename UM, typename DM> 40 40 struct CirculationDefaultTraits { 41 41 42 42 /// \brief The type of the digraph the algorithm runs on. 43 typedef _DiraphDigraph;43 typedef GR Digraph; 44 44 45 45 /// \brief The type of the map that stores the circulation lower … … 48 48 /// The type of the map that stores the circulation lower bound. 49 49 /// It must meet the \ref concepts::ReadMap "ReadMap" concept. 50 typedef _LCapMapLCapMap;50 typedef LM LCapMap; 51 51 52 52 /// \brief The type of the map that stores the circulation upper … … 55 55 /// The type of the map that stores the circulation upper bound. 56 56 /// It must meet the \ref concepts::ReadMap "ReadMap" concept. 57 typedef _UCapMapUCapMap;57 typedef UM UCapMap; 58 58 59 59 /// \brief The type of the map that stores the lower bound for … … 63 63 /// of the nodes. It must meet the \ref concepts::ReadMap "ReadMap" 64 64 /// concept. 65 typedef _DeltaMapDeltaMap;65 typedef DM DeltaMap; 66 66 67 67 /// \brief The type of the flow values. … … 138 138 in this way. 139 139 140 \tparam _DigraphThe type of the digraph the algorithm runs on.141 \tparam _LCapMapThe type of the lower bound capacity map. The default142 map type is \ref concepts::Digraph::ArcMap " _Digraph::ArcMap<int>".143 \tparam _UCapMapThe type of the upper bound capacity map. The default144 map type is \c _LCapMap.145 \tparam _DeltaMapThe type of the map that stores the lower bound140 \tparam GR The type of the digraph the algorithm runs on. 141 \tparam LM The type of the lower bound capacity map. The default 142 map type is \ref concepts::Digraph::ArcMap "GR::ArcMap<int>". 143 \tparam UM The type of the upper bound capacity map. The default 144 map type is \c LM. 145 \tparam DM The type of the map that stores the lower bound 146 146 for the supply of the nodes. The default map type is 147 \ c _Digraph::ArcMap<_UCapMap::Value>.147 \ref concepts::Digraph::NodeMap "GR::NodeMap<UM::Value>". 148 148 */ 149 149 #ifdef DOXYGEN 150 template< typename _Digraph,151 typename _LCapMap,152 typename _UCapMap,153 typename _DeltaMap,154 typename _Traits>150 template< typename GR, 151 typename LM, 152 typename UM, 153 typename DM, 154 typename TR > 155 155 #else 156 template< typename _Digraph, 157 typename _LCapMap = typename _Digraph::template ArcMap<int>, 158 typename _UCapMap = _LCapMap, 159 typename _DeltaMap = typename _Digraph:: 160 template NodeMap<typename _UCapMap::Value>, 161 typename _Traits=CirculationDefaultTraits<_Digraph, _LCapMap, 162 _UCapMap, _DeltaMap> > 156 template< typename GR, 157 typename LM = typename GR::template ArcMap<int>, 158 typename UM = LM, 159 typename DM = typename GR::template NodeMap<typename UM::Value>, 160 typename TR = CirculationDefaultTraits<GR, LM, UM, DM> > 163 161 #endif 164 162 class Circulation { … … 166 164 167 165 ///The \ref CirculationDefaultTraits "traits class" of the algorithm. 168 typedef _TraitsTraits;166 typedef TR Traits; 169 167 ///The type of the digraph the algorithm runs on. 170 168 typedef typename Traits::Digraph Digraph;
Note: See TracChangeset
for help on using the changeset viewer.