src/hugo/smart_graph.h
changeset 822 88226d9fe821
parent 813 65144c52969c
child 880 9d0bfd35b97c
     1.1 --- a/src/hugo/smart_graph.h	Wed Sep 08 11:58:06 2004 +0000
     1.2 +++ b/src/hugo/smart_graph.h	Wed Sep 08 12:06:45 2004 +0000
     1.3 @@ -12,8 +12,9 @@
     1.4  
     1.5  #include <hugo/invalid.h>
     1.6  
     1.7 -#include <hugo/default_map_factory.h>
     1.8 -#include <hugo/sym_map_factory.h>
     1.9 +#include <hugo/default_map.h>
    1.10 +#include <hugo/sym_map.h>
    1.11 +
    1.12  #include <hugo/map_registry.h>
    1.13  
    1.14  #include <hugo/map_defines.h>
    1.15 @@ -72,8 +73,10 @@
    1.16      class OutEdgeIt;
    1.17      class InEdgeIt;
    1.18      
    1.19 +    /// Creating map registries.
    1.20      CREATE_MAP_REGISTRIES;
    1.21 -    CREATE_MAPS(DefaultMapFactory);
    1.22 +    /// Creating node and edge maps.
    1.23 +    CREATE_MAPS(DefaultMap);
    1.24      
    1.25    public:
    1.26  
    1.27 @@ -314,12 +317,14 @@
    1.28    public:
    1.29      typedef SymSmartGraph Graph;
    1.30  
    1.31 -    KEEP_NODE_MAP(SmartGraph);
    1.32 -    KEEP_EDGE_MAP(SmartGraph);
    1.33 +    /// Importing maps from the base class ListGraph.
    1.34 +    KEEP_MAPS(SmartGraph, SymSmartGraph);
    1.35  
    1.36 +    /// Creating symmetric map registry.
    1.37      CREATE_SYM_EDGE_MAP_REGISTRY;
    1.38 -    CREATE_SYM_EDGE_MAP_FACTORY(DefaultMapFactory);
    1.39 -    IMPORT_SYM_EDGE_MAP(SymEdgeMapFactory);
    1.40 +    /// Creating symmetric edge map.
    1.41 +    CREATE_SYM_EDGE_MAP(DefaultMap);
    1.42 +
    1.43  
    1.44      SymSmartGraph() : SmartGraph() { }
    1.45      SymSmartGraph(const SmartGraph &_g) : SmartGraph(_g) { }