src/work/alpar/gwrapper.h
changeset 1062 8226427845bc
parent 921 818510fa3d99
equal deleted inserted replaced
6:8b7aee1c2959 7:811ae50d81a1
    25   template<typename I,typename P> I &getFirst(I &i,const P &p);
    25   template<typename I,typename P> I &getFirst(I &i,const P &p);
    26   { return graph->getFirst(i,p); }
    26   { return graph->getFirst(i,p); }
    27   template<typename I> I next(const I i); { return graph->goNext(i); }
    27   template<typename I> I next(const I i); { return graph->goNext(i); }
    28   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
    28   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
    29 
    29 
    30   NodeIt head(const EdgeIt &e);
    30   NodeIt target(const EdgeIt &e);
    31   { return graph->head(e); }
    31   { return graph->target(e); }
    32   NodeIt tail(const EdgeIt &e);
    32   NodeIt source(const EdgeIt &e);
    33   { return graph->tail(e); }
    33   { return graph->source(e); }
    34   
    34   
    35   template<typename I> NodeIt aNode(const I e);
    35   template<typename I> NodeIt aNode(const I e);
    36   { return graph->aNode(e); }
    36   { return graph->aNode(e); }
    37   template<typename I> NodeIt bNode(const I e);
    37   template<typename I> NodeIt bNode(const I e);
    38   { return graph->bNode(e); }
    38   { return graph->bNode(e); }
    81   template<typename I,typename P> I &getFirst(I &i,const P &p);
    81   template<typename I,typename P> I &getFirst(I &i,const P &p);
    82   { return graph->getFirst(i,p); }
    82   { return graph->getFirst(i,p); }
    83   template<typename I> I next(const I i); { return graph->goNext(i); }
    83   template<typename I> I next(const I i); { return graph->goNext(i); }
    84   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
    84   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
    85 
    85 
    86   NodeIt head(const EdgeIt &e);
    86   NodeIt target(const EdgeIt &e);
    87   { return graph->tail(e); }
    87   { return graph->source(e); }
    88   NodeIt tail(const EdgeIt &e);
    88   NodeIt source(const EdgeIt &e);
    89   { return graph->head(e); }
    89   { return graph->target(e); }
    90   
    90   
    91   template<typename I> NodeIt aNode(const I e);
    91   template<typename I> NodeIt aNode(const I e);
    92   { return graph->aNode(e); }
    92   { return graph->aNode(e); }
    93   template<typename I> NodeIt bNode(const I e);
    93   template<typename I> NodeIt bNode(const I e);
    94   { return graph->bNode(e); }
    94   { return graph->bNode(e); }
   135 //   template<typename I,typename P> I &getFirst(I &i,const P &p);
   135 //   template<typename I,typename P> I &getFirst(I &i,const P &p);
   136 //   { return graph->getFirst(i,p); }
   136 //   { return graph->getFirst(i,p); }
   137 //   template<typename I> I next(const I i); { return graph->goNext(i); }
   137 //   template<typename I> I next(const I i); { return graph->goNext(i); }
   138 //   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   138 //   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   139 
   139 
   140   NodeIt head(const EdgeIt &e);
   140   NodeIt target(const EdgeIt &e);
   141   { return G::tail(e); }
   141   { return G::source(e); }
   142   NodeIt tail(const EdgeIt &e);
   142   NodeIt source(const EdgeIt &e);
   143   { return G::head(e); }
   143   { return G::target(e); }
   144   
   144   
   145 //   template<typename I> NodeIt aNode(const I e);
   145 //   template<typename I> NodeIt aNode(const I e);
   146 //   { return graph->aNode(e); }
   146 //   { return graph->aNode(e); }
   147 //   template<typename I> NodeIt bNode(const I e);
   147 //   template<typename I> NodeIt bNode(const I e);
   148 //   { return graph->bNode(e); }
   148 //   { return graph->bNode(e); }
   192   template<typename I,typename P> I &getFirst(I &i,const P &p);
   192   template<typename I,typename P> I &getFirst(I &i,const P &p);
   193   { return graph->getFirst(i,p); }
   193   { return graph->getFirst(i,p); }
   194   template<typename I> I next(const I i); { return graph->goNext(i); }
   194   template<typename I> I next(const I i); { return graph->goNext(i); }
   195   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   195   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   196 
   196 
   197   NodeIt head(const EdgeIt &e);
   197   NodeIt target(const EdgeIt &e);
   198   { return graph->head(e); }
   198   { return graph->target(e); }
   199   NodeIt tail(const EdgeIt &e);
   199   NodeIt source(const EdgeIt &e);
   200   { return graph->tail(e); }
   200   { return graph->source(e); }
   201   
   201   
   202   template<typename I> NodeIt aNode(const I e);
   202   template<typename I> NodeIt aNode(const I e);
   203   { return graph->aNode(e); }
   203   { return graph->aNode(e); }
   204   template<typename I> NodeIt bNode(const I e);
   204   template<typename I> NodeIt bNode(const I e);
   205   { return graph->bNode(e); }
   205   { return graph->bNode(e); }
   341   bool valid(const OutEdgeIt e) { return graph->valid(e.o)||graph->valid(e.i);}
   341   bool valid(const OutEdgeIt e) { return graph->valid(e.o)||graph->valid(e.i);}
   342 
   342 
   343   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   343   template<typename I> I &goNext(I &i); { return graph->goNext(i); }
   344   template<typename I> I next(const I i); { return graph->goNext(i); }
   344   template<typename I> I next(const I i); { return graph->goNext(i); }
   345 
   345 
   346   NodeIt head(const EdgeIt &e);
   346   NodeIt target(const EdgeIt &e);
   347   { return graph->head(e); }
   347   { return graph->target(e); }
   348   NodeIt tail(const EdgeIt &e);
   348   NodeIt source(const EdgeIt &e);
   349   { return graph->tail(e); }
   349   { return graph->source(e); }
   350   
   350   
   351   template<typename I> NodeIt aNode(const I e);
   351   template<typename I> NodeIt aNode(const I e);
   352   { return graph->aNode(e); }
   352   { return graph->aNode(e); }
   353   template<typename I> NodeIt bNode(const I e);
   353   template<typename I> NodeIt bNode(const I e);
   354   { return graph->bNode(e); }
   354   { return graph->bNode(e); }