src/lemon/concept/graph.h
changeset 987 87f7c54892df
parent 986 e997802b855c
child 989 ca95f8b5c931
equal deleted inserted replaced
2:f82e7226f5d1 3:3b7e16294e9a
   565 // 	m=cm;  
   565 // 	m=cm;  
   566 // 	dm=cm; //Copy from another type  
   566 // 	dm=cm; //Copy from another type  
   567 // 	em=cm; //Copy to more complex type
   567 // 	em=cm; //Copy to more complex type
   568 // 	{
   568 // 	{
   569 // 	  //Check the typedef's
   569 // 	  //Check the typedef's
   570 // 	  typename Graph::template NodeMap<int>::ValueType val;
   570 // 	  typename Graph::template NodeMap<int>::Value val;
   571 // 	  val=1;
   571 // 	  val=1;
   572 // 	  typename Graph::template NodeMap<int>::KeyType key;
   572 // 	  typename Graph::template NodeMap<int>::Key key;
   573 // 	  key = typename Graph::NodeIt(G);
   573 // 	  key = typename Graph::NodeIt(G);
   574 // 	}
   574 // 	}
   575 //       }  
   575 //       }  
   576 //       { //bool NodeMap
   576 //       { //bool NodeMap
   577 // 	Node k;
   577 // 	Node k;
   589 // 	dm=cm; //Copy from another type
   589 // 	dm=cm; //Copy from another type
   590 // 	m=dm; //Copy to another type
   590 // 	m=dm; //Copy to another type
   591 
   591 
   592 // 	{
   592 // 	{
   593 // 	  //Check the typedef's
   593 // 	  //Check the typedef's
   594 // 	  typename Graph::template NodeMap<bool>::ValueType val;
   594 // 	  typename Graph::template NodeMap<bool>::Value val;
   595 // 	  val=true;
   595 // 	  val=true;
   596 // 	  typename Graph::template NodeMap<bool>::KeyType key;
   596 // 	  typename Graph::template NodeMap<bool>::Key key;
   597 // 	  key= typename Graph::NodeIt(G);
   597 // 	  key= typename Graph::NodeIt(G);
   598 // 	}
   598 // 	}
   599 //       }
   599 //       }
   600 //       //EdgeMap tests
   600 //       //EdgeMap tests
   601 //       {
   601 //       {
   612     
   612     
   613 // 	m=cm;  
   613 // 	m=cm;  
   614 // 	dm=cm; //Copy from another type
   614 // 	dm=cm; //Copy from another type
   615 // 	{
   615 // 	{
   616 // 	  //Check the typedef's
   616 // 	  //Check the typedef's
   617 // 	  typename Graph::template EdgeMap<int>::ValueType val;
   617 // 	  typename Graph::template EdgeMap<int>::Value val;
   618 // 	  val=1;
   618 // 	  val=1;
   619 // 	  typename Graph::template EdgeMap<int>::KeyType key;
   619 // 	  typename Graph::template EdgeMap<int>::Key key;
   620 // 	  key= typename Graph::EdgeIt(G);
   620 // 	  key= typename Graph::EdgeIt(G);
   621 // 	}
   621 // 	}
   622 //       }  
   622 //       }  
   623 //       { //bool EdgeMap
   623 //       { //bool EdgeMap
   624 // 	Edge k;
   624 // 	Edge k;
   635 // 	m=cm;  
   635 // 	m=cm;  
   636 // 	dm=cm; //Copy from another type
   636 // 	dm=cm; //Copy from another type
   637 // 	m=dm; //Copy to another type
   637 // 	m=dm; //Copy to another type
   638 // 	{
   638 // 	{
   639 // 	  //Check the typedef's
   639 // 	  //Check the typedef's
   640 // 	  typename Graph::template EdgeMap<bool>::ValueType val;
   640 // 	  typename Graph::template EdgeMap<bool>::Value val;
   641 // 	  val=true;
   641 // 	  val=true;
   642 // 	  typename Graph::template EdgeMap<bool>::KeyType key;
   642 // 	  typename Graph::template EdgeMap<bool>::Key key;
   643 // 	  key= typename Graph::EdgeIt(G);
   643 // 	  key= typename Graph::EdgeIt(G);
   644 // 	}
   644 // 	}
   645 //       }
   645 //       }
   646 //     }
   646 //     }
   647     
   647