COIN-OR::LEMON - Graph Library

Changeset 1799:990ef198f64d in lemon-0.x for lemon


Ignore:
Timestamp:
11/16/05 10:08:36 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2342
Message:

Warning because unused parameters

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r1765 r1799  
    229229    struct DefPredMapTraits : public Traits {
    230230      typedef T PredMap;
    231       static PredMap *createPredMap(const Graph &G)
     231      static PredMap *createPredMap(const Graph &)
    232232      {
    233233        throw UninitializedParameter();
     
    246246    struct DefDistMapTraits : public Traits {
    247247      typedef T DistMap;
    248       static DistMap *createDistMap(const Graph &G)
     248      static DistMap *createDistMap(const Graph &)
    249249      {
    250250        throw UninitializedParameter();
     
    263263    struct DefReachedMapTraits : public Traits {
    264264      typedef T ReachedMap;
    265       static ReachedMap *createReachedMap(const Graph &G)
     265      static ReachedMap *createReachedMap(const Graph &)
    266266      {
    267267        throw UninitializedParameter();
  • lemon/dfs.h

    r1773 r1799  
    10501050  }
    10511051
     1052#ifdef DOXYGEN
    10521053  /// \brief Visitor class for dfs.
    10531054  /// 
     
    10851086    ///
    10861087    /// It is called for the source node of the dfs.
    1087     void start(const Node&) {}
     1088    void start(const Node& node) {}
    10881089    /// \brief Called when we leave the source node of the dfs.
    10891090    ///
    10901091    /// It is called when we leave the source node of the dfs.
     1092    void stop(const Node& node) {}
     1093
     1094  };
     1095#else
     1096  template <typename _Graph>
     1097  struct DfsVisitor {
     1098    typedef _Graph Graph;
     1099    typedef typename Graph::Edge Edge;
     1100    typedef typename Graph::Node Node;
     1101    void discover(const Edge&) {}
     1102    void reach(const Node&) {}
     1103    void backtrack(const Edge&) {}
     1104    void leave(const Node&) {}
     1105    void examine(const Edge&) {}
     1106    void start(const Node&) {}
    10911107    void stop(const Node&) {}
    10921108
     
    11071123    };
    11081124  };
     1125#endif
    11091126
    11101127  /// \brief Default traits class of DfsVisit class.
Note: See TracChangeset for help on using the changeset viewer.