src/lemon/list_graph.h
changeset 1039 bd01c5a3f989
parent 1035 f2a3426e64e6
child 1040 372f08e8f403
     1.1 --- a/src/lemon/list_graph.h	Thu Dec 16 12:15:02 2004 +0000
     1.2 +++ b/src/lemon/list_graph.h	Thu Dec 16 12:26:57 2004 +0000
     1.3 @@ -25,7 +25,7 @@
     1.4  #include <lemon/clearable_graph_extender.h>
     1.5  #include <lemon/extendable_graph_extender.h>
     1.6  #include <lemon/iterable_graph_extender.h>
     1.7 -#include <lemon/alteration_observer_registry.h>
     1.8 +#include <lemon/alteration_notifier.h>
     1.9  #include <lemon/default_map.h>
    1.10  
    1.11  #include <lemon/undir_graph_extender.h>
    1.12 @@ -399,8 +399,8 @@
    1.13      ///\warning SnapShots cannot be nested.
    1.14      ///\ingroup graphs
    1.15      ///\todo \c SnapShot or \c Snapshot?
    1.16 -    class SnapShot : protected AlterationObserverRegistry<Node>::ObserverBase,
    1.17 -		     protected AlterationObserverRegistry<Edge>::ObserverBase
    1.18 +    class SnapShot : protected AlterationNotifier<Node>::ObserverBase,
    1.19 +		     protected AlterationNotifier<Edge>::ObserverBase
    1.20      {
    1.21        protected:
    1.22        
    1.23 @@ -430,16 +430,16 @@
    1.24  
    1.25        void regist(ListGraph &_g) {
    1.26  	g=&_g;
    1.27 -	AlterationObserverRegistry<Node>::ObserverBase::
    1.28 +	AlterationNotifier<Node>::ObserverBase::
    1.29  	  attach(g->node_observers);
    1.30 -	AlterationObserverRegistry<Edge>::ObserverBase::
    1.31 +	AlterationNotifier<Edge>::ObserverBase::
    1.32  	  attach(g->edge_observers);
    1.33        }
    1.34              
    1.35        void deregist() {
    1.36 -	AlterationObserverRegistry<Node>::ObserverBase::
    1.37 +	AlterationNotifier<Node>::ObserverBase::
    1.38  	  detach();
    1.39 -	AlterationObserverRegistry<Edge>::ObserverBase::
    1.40 +	AlterationNotifier<Edge>::ObserverBase::
    1.41  	  detach();
    1.42  	g=0;
    1.43        }