lemon/traits.h
changeset 1925 00b6f685ab8d
parent 1909 2d806130e700
child 1956 a055123339d5
equal deleted inserted replaced
3:b0891b86bbf7 4:4f3983721e73
    90       Map(const Graph& _graph, const Value& _value) 
    90       Map(const Graph& _graph, const Value& _value) 
    91 	: Parent(_graph, _value) {}
    91 	: Parent(_graph, _value) {}
    92     };
    92     };
    93 
    93 
    94   };
    94   };
       
    95 
       
    96 
       
    97   template <typename _Graph>
       
    98   class ItemSetTraits<_Graph, typename _Graph::ANode> {
       
    99   public:
       
   100     
       
   101     typedef _Graph Graph;
       
   102 
       
   103     typedef typename Graph::ANode Item;
       
   104     typedef typename Graph::ANodeIt ItemIt;
       
   105 
       
   106     template <typename _Value>
       
   107     class Map : public Graph::template ANodeMap<_Value> {
       
   108     public:
       
   109       typedef typename Graph::template ANodeMap<_Value> Parent; 
       
   110       typedef typename Parent::Value Value;
       
   111 
       
   112       Map(const Graph& _graph) : Parent(_graph) {}
       
   113       Map(const Graph& _graph, const Value& _value) 
       
   114 	: Parent(_graph, _value) {}
       
   115     };
       
   116 
       
   117   };
       
   118 
       
   119   template <typename _Graph>
       
   120   class ItemSetTraits<_Graph, typename _Graph::BNode> {
       
   121   public:
       
   122     
       
   123     typedef _Graph Graph;
       
   124 
       
   125     typedef typename Graph::BNode Item;
       
   126     typedef typename Graph::BNodeIt ItemIt;
       
   127 
       
   128     template <typename _Value>
       
   129     class Map : public Graph::template BNodeMap<_Value> {
       
   130     public:
       
   131       typedef typename Graph::template BNodeMap<_Value> Parent; 
       
   132       typedef typename Parent::Value Value;
       
   133 
       
   134       Map(const Graph& _graph) : Parent(_graph) {}
       
   135       Map(const Graph& _graph, const Value& _value) 
       
   136 	: Parent(_graph, _value) {}
       
   137     };
       
   138 
       
   139   };
       
   140 
    95 
   141 
    96   template <typename Map, typename Enable = void>
   142   template <typename Map, typename Enable = void>
    97   struct MapTraits {
   143   struct MapTraits {
    98     typedef False ReferenceMapTag;
   144     typedef False ReferenceMapTag;
    99 
   145