Ignore:
Timestamp:
Feb 2, 2010, 4:22:22 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
4272f0
Parents:
f1ef9cc
Message:

Made more methods of the molecule observable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Patterns/Observer.hpp

    rf1ef9cc r8fc9b6  
    2020 * Observation blocks from there, these functions wont trigger notifications. Only the end
    2121 * 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.
    2225 *
    2326 * Each observerable can have sub-observables. When one of these sub-observables changes and
     
    7881#define START_OBSERVER Observable::start_observer_internal(this);do{do{}while(0)
    7982#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)
    8084#endif /* OBSERVER_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.