COIN-OR::LEMON - Graph Library

Changeset 1729:06f939455cb1 in lemon-0.x for lemon/bits


Ignore:
Timestamp:
10/17/05 12:28:48 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2256
Message:

Removing signal/commit Change from alteration notifier

It makes slower the change Target/Source? functions
and used only by the In/Out? DegMap?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/alteration_notifier.h

    r1718 r1729  
    173173      }
    174174
    175       /// \brief Signal a property change on the given item.
    176       ///
    177       /// Signal a property change on the given item. It should
    178       /// be used always with the commitChange() function.
    179       /// This function is called always the property change.
    180       /// The commitChange() is called always after the change.
    181       virtual void signalChange(const Item&) {}
    182 
    183       /// \brief Commit the property change on the given item.
    184       ///
    185       /// Commit the property change on the given item. It should
    186       /// be used always with the signalChange() function.
    187       /// This function is called always the property change.
    188       /// The commitChange() is called always after the change.
    189       virtual void commitChange(const Item&) {}
    190 
    191175      /// \brief The member function to notificate the observer about the
    192176      /// container is built.
     
    325309      }
    326310    }
    327    
    328     /// \brief Signal a property change on the given item.
    329     ///
    330     /// Signal a property change on the given item. It should
    331     /// be used always with the commitChange() function.
    332     /// This function is called always the property change.
    333     /// The commitChange() is called always after the change.
    334     void signalChange(const Item& item) {
    335       typename Container::iterator it;
    336       for (it = container.begin(); it != container.end(); ++it) {
    337         (*it)->signalChange(item);
    338       }
    339     }
    340    
    341     /// \brief Commit the property change on the given item.
    342     ///
    343     /// Commit the property change on the given item. It should
    344     /// be used always with the signalChange() function.
    345     /// This function is called always the property change.
    346     /// The commitChange() is called always after the change.
    347     void commitChange(const Item& item) {
    348       typename Container::iterator it;
    349       for (it = container.begin(); it != container.end(); ++it) {
    350         (*it)->commitChange(item);
    351       }
    352     }
    353311
    354312    /// \brief Notifies all the registered observers about the container is
Note: See TracChangeset for help on using the changeset viewer.