COIN-OR::LEMON - Graph Library

Changeset 822:88226d9fe821 in lemon-0.x for src/hugo/smart_graph.h


Ignore:
Timestamp:
09/08/04 14:06:45 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1118
Message:

The MapFactories? have been removed from the code because
if we use macros then they increases only the complexity.

The pair iterators of the maps are separeted from the maps.

Some macros and comments has been changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/smart_graph.h

    r813 r822  
    1313#include <hugo/invalid.h>
    1414
    15 #include <hugo/default_map_factory.h>
    16 #include <hugo/sym_map_factory.h>
     15#include <hugo/default_map.h>
     16#include <hugo/sym_map.h>
     17
    1718#include <hugo/map_registry.h>
    1819
     
    7374    class InEdgeIt;
    7475   
     76    /// Creating map registries.
    7577    CREATE_MAP_REGISTRIES;
    76     CREATE_MAPS(DefaultMapFactory);
     78    /// Creating node and edge maps.
     79    CREATE_MAPS(DefaultMap);
    7780   
    7881  public:
     
    315318    typedef SymSmartGraph Graph;
    316319
    317     KEEP_NODE_MAP(SmartGraph);
    318     KEEP_EDGE_MAP(SmartGraph);
    319 
     320    /// Importing maps from the base class ListGraph.
     321    KEEP_MAPS(SmartGraph, SymSmartGraph);
     322
     323    /// Creating symmetric map registry.
    320324    CREATE_SYM_EDGE_MAP_REGISTRY;
    321     CREATE_SYM_EDGE_MAP_FACTORY(DefaultMapFactory);
    322     IMPORT_SYM_EDGE_MAP(SymEdgeMapFactory);
     325    /// Creating symmetric edge map.
     326    CREATE_SYM_EDGE_MAP(DefaultMap);
     327
    323328
    324329    SymSmartGraph() : SmartGraph() { }
Note: See TracChangeset for help on using the changeset viewer.