cgv
|
#include <action.h>
Public Member Functions | |
base_method_action (bool _default_result_begin, bool _default_result_end) | |
construct from default return values that are passed on to the base class | |
void | select (base_ptr p) |
implement the select method and store pointers of type X* and traverse_policy* | |
bool | implements_action () const |
simply return whether the stored pointer of type X* is not 0 | |
traverse_policy * | get_policy () const |
simply return the stored pointer of type traverse_policy* | |
void | set_default_results (bool _default_result) |
sets the value that is returned, whenever no result is obtained from the traversed methods | |
void | set_default_result_begin (bool _default_result_begin) |
sets the value that is returned for on_begin events | |
void | set_default_result_end (bool _default_result_end) |
sets the value that is returned for on_end events | |
virtual bool | begin () |
perform the enter part of the action on the current object | |
virtual bool | end () |
perform the leave part of the action on the current object | |
virtual bool | has_begin_only () const |
check whether the action has registered a single begin method or both begin and end methods | |
base class for all actions that use methods of class X