COIN-OR::LEMON - Graph Library

Changeset 118:cfd49e5c8723 in glemon-0.x for mapstorage.cc


Ignore:
Timestamp:
01/10/06 16:15:57 (18 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2463
Message:

If default value of a new map is constant, the newly created elements will get that value as well. Documentation is added to BrokenEdge?, MapStorage? and GraphDisplazCanvas? classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.cc

    r111 r118  
    5252}
    5353
    54 int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value = 0.0)
    55 {
     54int MapStorage::addNodeMap(const std::string & name, Graph::NodeMap<double> *nodemap, double default_value)
     55{
     56  std::cout << default_value << std::endl;
    5657  if( nodemap_storage.find(name) == nodemap_storage.end() )
    5758    {
     
    123124}
    124125
    125 int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value = 0.0)
     126int MapStorage::addEdgeMap(const std::string & name, Graph::EdgeMap<double> *edgemap, double default_value)
    126127{
    127128  if( edgemap_storage.find(name) == edgemap_storage.end() )
Note: See TracChangeset for help on using the changeset viewer.