COIN-OR::LEMON - Graph Library

Changeset 1198:2236d00ca778 in lemon-main for lemon/concepts


Ignore:
Timestamp:
11/01/18 19:49:51 (17 months ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Parents:
1196:959d78f3fe0e (diff), 1197:f179aa1045a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge #615

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/path.h

    r1130 r1198  
    7272      /// \brief Template copy constructor
    7373      template <typename CPath>
    74       Path(const CPath& cpath) {}
     74      Path(const CPath& cpath) {
     75        ::lemon::ignore_unused_variable_warning(cpath);
     76      }
    7577
    7678      /// \brief Template assigment operator
  • lemon/concepts/path.h

    r1197 r1198  
    2727#include <lemon/core.h>
    2828#include <lemon/concept_check.h>
     29#include <lemon/bits/stl_iterators.h>
    2930
    3031namespace lemon {
     
    118119      };
    119120
     121      /// \brief Gets the collection of the arcs of the path.
     122      ///
     123      /// This function can be used for iterating on the
     124      /// arcs of the path. It returns a wrapped
     125      /// ArcIt, which looks like an STL container
     126      /// (by having begin() and end()) which you can use in range-based
     127      /// for loops, STL algorithms, etc.
     128      /// For example you can write:
     129      ///\code
     130      /// for(auto a: p.arcs())
     131      ///   doSomething(a);
     132      ///\endcode
     133      LemonRangeWrapper1<ArcIt, Path> arcs() const {
     134        return LemonRangeWrapper1<ArcIt, Path>(*this);
     135      }
     136
     137
    120138      template <typename _Path>
    121139      struct Constraints {
     
    266284
    267285      };
     286
     287      /// \brief Gets the collection of the arcs of the path.
     288      ///
     289      /// This function can be used for iterating on the
     290      /// arcs of the path. It returns a wrapped
     291      /// ArcIt, which looks like an STL container
     292      /// (by having begin() and end()) which you can use in range-based
     293      /// for loops, STL algorithms, etc.
     294      /// For example you can write:
     295      ///\code
     296      /// for(auto a: p.arcs())
     297      ///   doSomething(a);
     298      ///\endcode
     299      LemonRangeWrapper1<ArcIt, PathDumper> arcs() const {
     300        return LemonRangeWrapper1<ArcIt, PathDumper>(*this);
     301      }
     302
    268303
    269304      /// \brief LEMON style iterator for enumerating the arcs of a path
     
    296331      };
    297332
     333      /// \brief Gets the collection of the arcs of the path
     334      /// in reverse direction.
     335      ///
     336      /// This function can be used for iterating on the
     337      /// arcs of the path in reverse direction. It returns a wrapped
     338      /// RevArcIt, which looks like an STL container
     339      /// (by having begin() and end()) which you can use in range-based
     340      /// for loops, STL algorithms, etc.
     341      /// For example you can write:
     342      ///\code
     343      /// for(auto a: p.revArcs())
     344      ///   doSomething(a);
     345      ///\endcode
     346      LemonRangeWrapper1<RevArcIt, PathDumper> revArcs() const {
     347        return LemonRangeWrapper1<RevArcIt, PathDumper>(*this);
     348      }
     349
     350
    298351      template <typename _Path>
    299352      struct Constraints {
Note: See TracChangeset for help on using the changeset viewer.