# HG changeset patch # User Peter Kovacs # Date 1265968820 -3600 # Node ID 75e6020b19b1e96a1e51944ca100c87f0cb73b63 # Parent a7e93de12cbda2267756b130476b8e84572002bf Add doc for the traits class parameters (#315) diff -r a7e93de12cbd -r 75e6020b19b1 lemon/bellman_ford.h --- a/lemon/bellman_ford.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/bellman_ford.h Fri Feb 12 11:00:20 2010 +0100 @@ -171,6 +171,11 @@ /// \tparam LEN A \ref concepts::ReadMap "readable" arc map that specifies /// the lengths of the arcs. The default map type is /// \ref concepts::Digraph::ArcMap "GR::ArcMap". + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref BellmanFordDefaultTraits + /// "BellmanFordDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else @@ -933,6 +938,9 @@ /// /// This class should only be used through the \ref bellmanFord() /// function, which makes it easier to use the algorithm. + /// + /// \tparam TR The traits class that defines various types used by the + /// algorithm. template class BellmanFordWizard : public TR { typedef TR Base; diff -r a7e93de12cbd -r 75e6020b19b1 lemon/bfs.h --- a/lemon/bfs.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/bfs.h Fri Feb 12 11:00:20 2010 +0100 @@ -121,6 +121,11 @@ /// ///\tparam GR The type of the digraph the algorithm runs on. ///The default type is \ref ListDigraph. + ///\tparam TR The traits class that defines various types used by the + ///algorithm. By default, it is \ref BfsDefaultTraits + ///"BfsDefaultTraits". + ///In most cases, this parameter should not be set directly, + ///consider to use the named template parameters instead. #ifdef DOXYGEN template @@ -957,6 +962,9 @@ /// /// This class should only be used through the \ref bfs() function, /// which makes it easier to use the algorithm. + /// + /// \tparam TR The traits class that defines various types used by the + /// algorithm. template class BfsWizard : public TR { @@ -1295,11 +1303,11 @@ /// \ref BfsVisitor "BfsVisitor" is an empty visitor, which /// does not observe the BFS events. If you want to observe the BFS /// events, you should implement your own visitor class. - /// \tparam TR Traits class to set various data types used by the - /// algorithm. The default traits class is - /// \ref BfsVisitDefaultTraits "BfsVisitDefaultTraits". - /// See \ref BfsVisitDefaultTraits for the documentation of - /// a BFS visit traits class. + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref BfsVisitDefaultTraits + /// "BfsVisitDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else diff -r a7e93de12cbd -r 75e6020b19b1 lemon/capacity_scaling.h --- a/lemon/capacity_scaling.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/capacity_scaling.h Fri Feb 12 11:00:20 2010 +0100 @@ -77,9 +77,14 @@ /// /// \tparam GR The digraph type the algorithm runs on. /// \tparam V The number type used for flow amounts, capacity bounds - /// and supply values in the algorithm. By default it is \c int. + /// and supply values in the algorithm. By default, it is \c int. /// \tparam C The number type used for costs and potentials in the - /// algorithm. By default it is the same as \c V. + /// algorithm. By default, it is the same as \c V. + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref CapacityScalingDefaultTraits + /// "CapacityScalingDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. /// /// \warning Both number types must be signed and all input data must /// be integer. diff -r a7e93de12cbd -r 75e6020b19b1 lemon/circulation.h --- a/lemon/circulation.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/circulation.h Fri Feb 12 11:00:20 2010 +0100 @@ -173,6 +173,11 @@ The default map type is \c LM. \tparam SM The type of the supply map. The default map type is \ref concepts::Digraph::NodeMap "GR::NodeMap". + \tparam TR The traits class that defines various types used by the + algorithm. By default, it is \ref CirculationDefaultTraits + "CirculationDefaultTraits". + In most cases, this parameter should not be set directly, + consider to use the named template parameters instead. */ #ifdef DOXYGEN template< typename GR, diff -r a7e93de12cbd -r 75e6020b19b1 lemon/cost_scaling.h --- a/lemon/cost_scaling.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/cost_scaling.h Fri Feb 12 11:00:20 2010 +0100 @@ -104,9 +104,14 @@ /// /// \tparam GR The digraph type the algorithm runs on. /// \tparam V The number type used for flow amounts, capacity bounds - /// and supply values in the algorithm. By default it is \c int. + /// and supply values in the algorithm. By default, it is \c int. /// \tparam C The number type used for costs and potentials in the - /// algorithm. By default it is the same as \c V. + /// algorithm. By default, it is the same as \c V. + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref CostScalingDefaultTraits + /// "CostScalingDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. /// /// \warning Both number types must be signed and all input data must /// be integer. @@ -136,8 +141,7 @@ /// \brief The large cost type /// /// The large cost type used for internal computations. - /// Using the \ref CostScalingDefaultTraits "default traits class", - /// it is \c long \c long if the \c Cost type is integer, + /// By default, it is \c long \c long if the \c Cost type is integer, /// otherwise it is \c double. typedef typename TR::LargeCost LargeCost; diff -r a7e93de12cbd -r 75e6020b19b1 lemon/dfs.h --- a/lemon/dfs.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/dfs.h Fri Feb 12 11:00:20 2010 +0100 @@ -121,6 +121,11 @@ /// ///\tparam GR The type of the digraph the algorithm runs on. ///The default type is \ref ListDigraph. + ///\tparam TR The traits class that defines various types used by the + ///algorithm. By default, it is \ref DfsDefaultTraits + ///"DfsDefaultTraits". + ///In most cases, this parameter should not be set directly, + ///consider to use the named template parameters instead. #ifdef DOXYGEN template @@ -887,6 +892,9 @@ /// /// This class should only be used through the \ref dfs() function, /// which makes it easier to use the algorithm. + /// + /// \tparam TR The traits class that defines various types used by the + /// algorithm. template class DfsWizard : public TR { @@ -1237,11 +1245,11 @@ /// \ref DfsVisitor "DfsVisitor" is an empty visitor, which /// does not observe the DFS events. If you want to observe the DFS /// events, you should implement your own visitor class. - /// \tparam TR Traits class to set various data types used by the - /// algorithm. The default traits class is - /// \ref DfsVisitDefaultTraits "DfsVisitDefaultTraits". - /// See \ref DfsVisitDefaultTraits for the documentation of - /// a DFS visit traits class. + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref DfsVisitDefaultTraits + /// "DfsVisitDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else diff -r a7e93de12cbd -r 75e6020b19b1 lemon/dijkstra.h --- a/lemon/dijkstra.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/dijkstra.h Fri Feb 12 11:00:20 2010 +0100 @@ -192,6 +192,11 @@ ///relatively time consuming process to compute the arc lengths if ///it is necessary. The default map type is \ref ///concepts::Digraph::ArcMap "GR::ArcMap". + ///\tparam TR The traits class that defines various types used by the + ///algorithm. By default, it is \ref DijkstraDefaultTraits + ///"DijkstraDefaultTraits". + ///In most cases, this parameter should not be set directly, + ///consider to use the named template parameters instead. #ifdef DOXYGEN template #else @@ -1092,6 +1097,9 @@ /// /// This class should only be used through the \ref dijkstra() function, /// which makes it easier to use the algorithm. + /// + /// \tparam TR The traits class that defines various types used by the + /// algorithm. template class DijkstraWizard : public TR { diff -r a7e93de12cbd -r 75e6020b19b1 lemon/hartmann_orlin.h --- a/lemon/hartmann_orlin.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/hartmann_orlin.h Fri Feb 12 11:00:20 2010 +0100 @@ -106,6 +106,11 @@ /// \tparam GR The type of the digraph the algorithm runs on. /// \tparam LEN The type of the length map. The default /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap". + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref HartmannOrlinDefaultTraits + /// "HartmannOrlinDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else @@ -127,8 +132,7 @@ /// \brief The large value type /// /// The large value type used for internal computations. - /// Using the \ref HartmannOrlinDefaultTraits "default traits class", - /// it is \c long \c long if the \c Value type is integer, + /// By default, it is \c long \c long if the \c Value type is integer, /// otherwise it is \c double. typedef typename TR::LargeValue LargeValue; diff -r a7e93de12cbd -r 75e6020b19b1 lemon/howard.h --- a/lemon/howard.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/howard.h Fri Feb 12 11:00:20 2010 +0100 @@ -106,6 +106,11 @@ /// \tparam GR The type of the digraph the algorithm runs on. /// \tparam LEN The type of the length map. The default /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap". + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref HowardDefaultTraits + /// "HowardDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else @@ -127,8 +132,7 @@ /// \brief The large value type /// /// The large value type used for internal computations. - /// Using the \ref HowardDefaultTraits "default traits class", - /// it is \c long \c long if the \c Value type is integer, + /// By default, it is \c long \c long if the \c Value type is integer, /// otherwise it is \c double. typedef typename TR::LargeValue LargeValue; diff -r a7e93de12cbd -r 75e6020b19b1 lemon/karp.h --- a/lemon/karp.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/karp.h Fri Feb 12 11:00:20 2010 +0100 @@ -104,6 +104,11 @@ /// \tparam GR The type of the digraph the algorithm runs on. /// \tparam LEN The type of the length map. The default /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap". + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref KarpDefaultTraits + /// "KarpDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else @@ -125,8 +130,7 @@ /// \brief The large value type /// /// The large value type used for internal computations. - /// Using the \ref KarpDefaultTraits "default traits class", - /// it is \c long \c long if the \c Value type is integer, + /// By default, it is \c long \c long if the \c Value type is integer, /// otherwise it is \c double. typedef typename TR::LargeValue LargeValue; diff -r a7e93de12cbd -r 75e6020b19b1 lemon/min_cost_arborescence.h --- a/lemon/min_cost_arborescence.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/min_cost_arborescence.h Fri Feb 12 11:00:20 2010 +0100 @@ -112,17 +112,18 @@ /// relatively time consuming process to compute the arc costs if /// it is necessary. The default map type is \ref /// concepts::Digraph::ArcMap "Digraph::ArcMap". - /// \param TR Traits class to set various data types used - /// by the algorithm. The default traits class is - /// \ref MinCostArborescenceDefaultTraits + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref MinCostArborescenceDefaultTraits /// "MinCostArborescenceDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifndef DOXYGEN template , typename TR = MinCostArborescenceDefaultTraits > #else - template + template #endif class MinCostArborescence { public: diff -r a7e93de12cbd -r 75e6020b19b1 lemon/preflow.h --- a/lemon/preflow.h Tue Feb 09 23:29:51 2010 +0100 +++ b/lemon/preflow.h Fri Feb 12 11:00:20 2010 +0100 @@ -119,6 +119,11 @@ /// \tparam GR The type of the digraph the algorithm runs on. /// \tparam CAP The type of the capacity map. The default map /// type is \ref concepts::Digraph::ArcMap "GR::ArcMap". + /// \tparam TR The traits class that defines various types used by the + /// algorithm. By default, it is \ref PreflowDefaultTraits + /// "PreflowDefaultTraits". + /// In most cases, this parameter should not be set directly, + /// consider to use the named template parameters instead. #ifdef DOXYGEN template #else