COIN-OR::LEMON - Graph Library

Changeset 787:584270fba752 in lemon-0.x


Ignore:
Timestamp:
09/02/04 17:30:50 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1080
Message:

Tests for the existence of 'KeyType?' and 'ValueType?' in the graph maps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/graph_test.cc

    r783 r787  
    133133    m=cm; 
    134134    dm=cm; //Copy from another type
     135    {
     136      //Check the typedef's
     137      typename Graph::template NodeMap<int>::ValueType val;
     138      val=1;
     139      typename Graph::template NodeMap<int>::KeyType key;
     140      key = typename Graph::NodeIt(G);
     141    }
    135142  } 
    136143  { //bool NodeMap
     
    149156    dm=cm; //Copy from another type
    150157    m=dm; //Copy to another type
     158
     159    {
     160      //Check the typedef's
     161      typename Graph::template NodeMap<bool>::ValueType val;
     162      val=true;
     163      typename Graph::template NodeMap<bool>::KeyType key;
     164      key= typename Graph::NodeIt(G);
     165    }
    151166  }
    152167  //EdgeMap tests
     
    165180    m=cm; 
    166181    dm=cm; //Copy from another type
     182    {
     183      //Check the typedef's
     184      typename Graph::template EdgeMap<int>::ValueType val;
     185      val=1;
     186      typename Graph::template EdgeMap<int>::KeyType key;
     187      key= typename Graph::EdgeIt(G);
     188    }
    167189  } 
    168190  { //bool EdgeMap
     
    181203    dm=cm; //Copy from another type
    182204    m=dm; //Copy to another type
     205    {
     206      //Check the typedef's
     207      typename Graph::template EdgeMap<bool>::ValueType val;
     208      val=true;
     209      typename Graph::template EdgeMap<bool>::KeyType key;
     210      key= typename Graph::EdgeIt(G);
     211    }
    183212  }
    184213}
Note: See TracChangeset for help on using the changeset viewer.