Changeset 8fc9b6 for molecuilder/src/Patterns
- Timestamp:
- Feb 2, 2010, 4:22:22 PM (16 years ago)
- Children:
- 4272f0
- Parents:
- f1ef9cc
- File:
-
- 1 edited
-
molecuilder/src/Patterns/Observer.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Patterns/Observer.hpp
rf1ef9cc r8fc9b6 20 20 * Observation blocks from there, these functions wont trigger notifications. Only the end 21 21 * of the final observation block triggers the update of Observers. 22 * 23 * Returning from observed code should be done using the RETURN_OBSERVER() macro. This way the Observer mechanism 24 * is notified that the method is left. 22 25 * 23 26 * Each observerable can have sub-observables. When one of these sub-observables changes and … … 78 81 #define START_OBSERVER Observable::start_observer_internal(this);do{do{}while(0) 79 82 #define FINISH_OBSERVER }while(0);Observable::finish_observer_internal(this) 83 #define RETURN_OBSERVER( retval ) do{Observable::finish_observer_internal(this); return (retval);}while(0) 80 84 #endif /* OBSERVER_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.
