lemon/bits/traits.h
changeset 2512 371cf309fc3c
parent 2391 14a343be7a5a
child 2553 bfced05fa852
     1.1 --- a/lemon/bits/traits.h	Wed Nov 14 17:42:48 2007 +0000
     1.2 +++ b/lemon/bits/traits.h	Wed Nov 14 17:44:42 2007 +0000
     1.3 @@ -1,3 +1,4 @@
     1.4 +
     1.5  /* -*- C++ -*-
     1.6   *
     1.7   * This file is a part of LEMON, a generic C++ optimization library
     1.8 @@ -57,6 +58,7 @@
     1.9      class Map : public Graph::template NodeMap<_Value> {
    1.10      public:
    1.11        typedef typename Graph::template NodeMap<_Value> Parent; 
    1.12 +      typedef typename Graph::template NodeMap<_Value> Type; 
    1.13        typedef typename Parent::Value Value;
    1.14  
    1.15        Map(const Graph& _graph) : Parent(_graph) {}
    1.16 @@ -94,6 +96,7 @@
    1.17      class Map : public Graph::template EdgeMap<_Value> {
    1.18      public:
    1.19        typedef typename Graph::template EdgeMap<_Value> Parent; 
    1.20 +      typedef typename Graph::template EdgeMap<_Value> Type; 
    1.21        typedef typename Parent::Value Value;
    1.22  
    1.23        Map(const Graph& _graph) : Parent(_graph) {}
    1.24 @@ -130,6 +133,7 @@
    1.25      class Map : public Graph::template UEdgeMap<_Value> {
    1.26      public:
    1.27        typedef typename Graph::template UEdgeMap<_Value> Parent; 
    1.28 +      typedef typename Graph::template UEdgeMap<_Value> Type; 
    1.29        typedef typename Parent::Value Value;
    1.30  
    1.31        Map(const Graph& _graph) : Parent(_graph) {}
    1.32 @@ -166,6 +170,7 @@
    1.33      class Map : public Graph::template ANodeMap<_Value> {
    1.34      public:
    1.35        typedef typename Graph::template ANodeMap<_Value> Parent; 
    1.36 +      typedef typename Graph::template ANodeMap<_Value> Type; 
    1.37        typedef typename Parent::Value Value;
    1.38  
    1.39        Map(const Graph& _graph) : Parent(_graph) {}
    1.40 @@ -202,6 +207,7 @@
    1.41      class Map : public Graph::template BNodeMap<_Value> {
    1.42      public:
    1.43        typedef typename Graph::template BNodeMap<_Value> Parent; 
    1.44 +      typedef typename Graph::template BNodeMap<_Value> Type; 
    1.45        typedef typename Parent::Value Value;
    1.46  
    1.47        Map(const Graph& _graph) : Parent(_graph) {}