Changeset 1729:06f939455cb1 in lemon-0.x for lemon/bits/alteration_notifier.h
- Timestamp:
- 10/17/05 12:28:48 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2256
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/alteration_notifier.h
r1718 r1729 173 173 } 174 174 175 /// \brief Signal a property change on the given item.176 ///177 /// Signal a property change on the given item. It should178 /// 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 should186 /// 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 191 175 /// \brief The member function to notificate the observer about the 192 176 /// container is built. … … 325 309 } 326 310 } 327 328 /// \brief Signal a property change on the given item.329 ///330 /// Signal a property change on the given item. It should331 /// 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 should344 /// 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 }353 311 354 312 /// \brief Notifies all the registered observers about the container is
Note: See TracChangeset
for help on using the changeset viewer.