lemon/bits/traits.h
changeset 1091 9eac00ea588f
parent 1019 4c89e925cfe2
child 1092 dceba191c00d
equal deleted inserted replaced
10:c74e225068ab 11:898deabf038a
   170     typedef GR BpGraph;
   170     typedef GR BpGraph;
   171     typedef GR Graph;
   171     typedef GR Graph;
   172     typedef GR Digraph;
   172     typedef GR Digraph;
   173 
   173 
   174     typedef typename GR::RedNode Item;
   174     typedef typename GR::RedNode Item;
   175     typedef typename GR::RedIt ItemIt;
   175     typedef typename GR::RedNodeIt ItemIt;
   176 
   176 
   177     typedef typename RedNodeNotifierIndicator<GR>::Type ItemNotifier;
   177     typedef typename RedNodeNotifierIndicator<GR>::Type ItemNotifier;
   178 
   178 
   179     template <typename V>
   179     template <typename V>
   180     class Map : public GR::template RedMap<V> {
   180     class Map : public GR::template RedNodeMap<V> {
   181       typedef typename GR::template RedMap<V> Parent;
   181       typedef typename GR::template RedNodeMap<V> Parent;
   182 
   182 
   183     public:
   183     public:
   184       typedef typename GR::template RedMap<V> Type;
   184       typedef typename GR::template RedNodeMap<V> Type;
   185       typedef typename Parent::Value Value;
   185       typedef typename Parent::Value Value;
   186 
   186 
   187       Map(const GR& _bpgraph) : Parent(_bpgraph) {}
   187       Map(const GR& _bpgraph) : Parent(_bpgraph) {}
   188       Map(const GR& _bpgraph, const Value& _value)
   188       Map(const GR& _bpgraph, const Value& _value)
   189         : Parent(_bpgraph, _value) {}
   189         : Parent(_bpgraph, _value) {}
   211     typedef GR BpGraph;
   211     typedef GR BpGraph;
   212     typedef GR Graph;
   212     typedef GR Graph;
   213     typedef GR Digraph;
   213     typedef GR Digraph;
   214 
   214 
   215     typedef typename GR::BlueNode Item;
   215     typedef typename GR::BlueNode Item;
   216     typedef typename GR::BlueIt ItemIt;
   216     typedef typename GR::BlueNodeIt ItemIt;
   217 
   217 
   218     typedef typename BlueNodeNotifierIndicator<GR>::Type ItemNotifier;
   218     typedef typename BlueNodeNotifierIndicator<GR>::Type ItemNotifier;
   219 
   219 
   220     template <typename V>
   220     template <typename V>
   221     class Map : public GR::template BlueMap<V> {
   221     class Map : public GR::template BlueNodeMap<V> {
   222       typedef typename GR::template BlueMap<V> Parent;
   222       typedef typename GR::template BlueNodeMap<V> Parent;
   223 
   223 
   224     public:
   224     public:
   225       typedef typename GR::template BlueMap<V> Type;
   225       typedef typename GR::template BlueNodeMap<V> Type;
   226       typedef typename Parent::Value Value;
   226       typedef typename Parent::Value Value;
   227 
   227 
   228       Map(const GR& _bpgraph) : Parent(_bpgraph) {}
   228       Map(const GR& _bpgraph) : Parent(_bpgraph) {}
   229       Map(const GR& _bpgraph, const Value& _value)
   229       Map(const GR& _bpgraph, const Value& _value)
   230         : Parent(_bpgraph, _value) {}
   230         : Parent(_bpgraph, _value) {}