COIN-OR::LEMON - Graph Library

Changeset 381:d72470496fbe in lemon-0.x


Ignore:
Timestamp:
04/23/04 10:32:18 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@511
Message:

misc

File:
1 edited

Legend:

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

    r380 r381  
    908908        _G.s_false_t_true_map->first(n, _class);
    909909      }
     910      //FIXME needed in new concept, important here
     911      ClassNodeIt(const Node& _n) : n(_n) { }
    910912      operator Node() const { return n; }
    911913    };
     
    10121014
    10131015    bool inSClass(const Node& n) const {
    1014       return !(this->s_false_t_true_map[n]);
     1016      return !(*(this->s_false_t_true_map))[n];
    10151017    }
    10161018    bool inTClass(const Node& n) const {
    1017       return (this->s_false_t_true_map[n]);
     1019      return (*(this->s_false_t_true_map))[n];
    10181020    }
    10191021  };
     
    10271029  public:
    10281030    class Node;
     1031    friend class Node;
    10291032//GN, int
    10301033//0 normalis, 1 s, 2, true, ez az iteralasi sorrend,
    10311034//es a vege a false azaz (invalid, 3)   
    10321035    class NodeIt;
     1036    friend class NodeIt;
    10331037//GNI, int
    10341038    class Edge;
     1039    friend class Edge;
    10351040//GE, int, GN
    10361041//0 normalis, 1 s->vmi, 2 vmi->t, ez a sorrend,
    10371042//invalid: (invalid, 3, invalid)
    10381043    class OutEdgeIt;
     1044    friend class OutEdgeIt;
    10391045//GO, int, GNI
    10401046//normalis pontbol (first, 0, invalid), ..., (invalid, 2, vmi), ... (invalid, 3, invalid)
     
    10421048//t-bol (invalid, 3, invalid)
    10431049    class InEdgeIt;
     1050    friend class InEdgeIt;
    10441051//GI, int, GNI
    10451052//normalis pontbol (first, 0, invalid), ..., (invalid, 1, vmi), ... (invalid, 3, invalid)
     
    10471054//t-be (invalid, 2, first), ... (invalid, 3, invalid)
    10481055    class EdgeIt;
     1056    friend class EdgeIt;
    10491057//(first, 0, invalid) ...
    10501058//(invalid, 1, vmi)
     
    11041112        n(_n), spec(_spec) { }
    11051113      NodeIt(const Invalid& i) : n(i), spec(3) { }
    1106       NodeIt(const GraphWrapper<Graph>& _G) : n(*(_G.graph)), spec(0) {
     1114      NodeIt(const stGraphWrapper<Graph>& _G) : n(*(_G.graph)), spec(0) {
    11071115        if (!_G->valid(n)) spec=1;
    11081116      }
     
    11491157      }
    11501158      OutEdgeIt(const Invalid& i) : e(i), spec(3), n(i) { }
    1151       OutEdgeIt(const GraphWrapper<Graph>& _G, const Node& _n) {
     1159      OutEdgeIt(const stGraphWrapper<Graph>& _G, const Node& _n) {
    11521160        switch (_n.spec) {
    11531161          case 0 :
    1154             if (_G.graph->inSClass) { //S, van normalis kiel
     1162            if (_G.graph->inSClass(_n)) { //S, van normalis kiel
    11551163              e=typename Graph::OutEdgeIt(*(_G.graph),
    11561164                                          typename Graph::Node(_n));
     
    11921200      }
    11931201      InEdgeIt(const Invalid& i) : e(i), spec(3), n(i) { }
    1194       InEdgeIt(const GraphWrapper<Graph>& _G, const Node& _n) {
     1202      InEdgeIt(const stGraphWrapper<Graph>& _G, const Node& _n) {
    11951203        switch (_n.spec) {
    11961204          case 0 :
    1197             if (_G.graph->inTClass) { //T, van normalis beel
     1205            if (_G.graph->inTClass(_n)) { //T, van normalis beel
    11981206              e=typename Graph::InEdgeIt(*(_G.graph),
    11991207                                         typename Graph::Node(_n));
     
    12331241        e(_e), spec(_spec), n(_n) { }
    12341242      EdgeIt(const Invalid& i) : e(i), spec(3), n(i) { }
    1235       EdgeIt(const GraphWrapper<Graph>& _G) :
     1243      EdgeIt(const stGraphWrapper<Graph>& _G) :
    12361244        e(*(_G.graph)), spec(0), n(INVALID) {
    12371245        if (!_G.graph->valid(e)) {
Note: See TracChangeset for help on using the changeset viewer.