COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
04/15/04 22:19:26 (17 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@452
Message:

makroizeles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/for_each_macros.h

    r330 r333  
    4444//FIXME ezt hogy a gorcsbe birja levezetni. Csak ugy leveszi a const-ot??
    4545  template<typename It, typename Graph>
    46   It loopFirst(const It& i, const Graph& g) {
    47     It e=i; g.first(e); return e;
     46  It loopFirst(const It&, const Graph& g) {
     47    It e; g.first(e); return e;
    4848  }
    4949
    5050  template<typename It, typename Graph, typename Node>
    51   It loopFirst(const It& i, const Graph& g, const Node& v) {
    52     It e=i; g.first(e, v); return e;
     51  It loopFirst(const It&, const Graph& g, const Node& v) {
     52    It e; g.first(e, v); return e;
    5353  }
    5454
     
    7272//   }
    7373
    74 #define FOR_EACH_LOC(Ittype, e, g) for(Ittype (e)=loopFirst(Ittype(), (g)); (g).valid((e)); (g).next((e)))
    75 #define FOR_EACH_INC_LOC(Ittype, e, g, v) for(Ittype (e)=loopFirst(Ittype(), (g), (v)); (g).valid((e)); (g).next((e)))
     74#define FOR_EACH_LOC(Ittype, e, g) for(Ittype e=loopFirst(Ittype(), (g)); (g).valid(e); (g).next(e))
     75#define FOR_EACH_INC_LOC(Ittype, e, g, v) for(Ittype e=loopFirst(Ittype(), (g), (v)); (g).valid(e); (g).next(e))
    7676
    77 // #define FOR_EACH_EDGE_LOC(e, g) for((g).first((e)); (g).valid((e)); (g).next((e)))
     77// #define FOR_EACH_EDGE_LOC(e, g) ezt nem tom hogy kell for((g).first((e)); (g).valid((e)); (g).next((e)))
    7878// #define FOR_EACH_NODE_LOC(e, g) for((g).first((e)); (g).valid((e)); (g).next((e)))
    7979// #define FOR_EACH_INEDGE_LOC(e, g, v) for((g).first((e), (v)); (g).valid((e)); (g).next((e)))
Note: See TracChangeset for help on using the changeset viewer.