COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
04/16/04 15:42:03 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@459
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/deba/edge_map_registry.h

    r337 r340  
    33
    44#include <vector>
     5
     6#include "edge_map_base.h"
    57
    68template <typename G, typename E>
     
    1012        typedef E Edge
    1113       
    12         typedef EdgeMapBase<Graph, Edge> EdgeMapBase;
     14        typedef EdgeMapBase<Graph, Edge> MapBase;
    1315
    1416protected:
     
    1719        Container container;
    1820       
    19         void add(EdgeMapBase& map_base) {
     21        void add(MapBase& map_base) {
    2022                if (map_base.graph) {
    2123                        map_base.graph->edge_maps.erase(map_base);
     
    2628        }
    2729       
    28         void erase(EdgeMapBase& map_base) {
     30        void erase(MapBase& map_base) {
    2931                if (map_base.graph != this) return;
    3032                container.back()->graph_index = map_base.graph_index;
     
    3436        }
    3537       
    36         void addEdge(Edge& edge) {
     38        void add(Edge& edge) {
    3739                typename Container::iterator it;
    3840                for (it = container.begin(); it != container.end(); ++it) {
     
    4143        }
    4244       
    43         void eraseEdge(Edge& edge) {
     45        void erase(Edge& edge) {
    4446                typename Container::iterator it;
    4547                for (it = container.begin(); it != container.end(); ++it) {
     
    4850        }
    4951
    50         friend class EdgeMapBase;
     52        friend class MapBase;
    5153};
    5254
Note: See TracChangeset for help on using the changeset viewer.