Changeset 1915:f1f523d39d32 in lemon0.x for lemon
 Timestamp:
 01/27/06 15:18:11 (15 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2490
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/traits.h
r1909 r1915 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 142 template <typename Map, typename Enable = void>
Note: See TracChangeset
for help on using the changeset viewer.