#include <_smach.h>
Inheritance diagram for smach< CON, K, M >::state< T >:

Public Types | |
| typedef event_def< T > | event_def |
| typedef T | state_context_type |
Public Member Functions | |
| state (const char *n, smach *nest=0) | |
| Constructor. | |
| virtual | ~state () |
| void | set_nested_machine (smach *sm) |
| Setup a nested state machine. | |
| void | set_default_handler (const typename event_def::funcptr &x) |
| Sets the default handler. | |
| virtual const char * | get_name () const |
| Returns given the name of the state. | |
| state_context_type & | get_context (smach &machine) |
| void | insert (const event_def &x) |
| Adds an event_def onto the list and then make sure it is sorted correctly. | |
| std::vector< event_def >::iterator | find (const event_key &x) |
| std::vector< event_def >::const_iterator | find (const event_key &x) const |
Protected Member Functions | |
| virtual void * | enter_state (context_type *machine_context) const |
| virtual bool | leave_state (void *x) const |
| virtual event_result | process_event (void *x, const event &id) const |
Private Attributes | |
| std::vector< event_def > | event_list |
| smach * | nested |
| event_key | low |
| Nested machine. | |
| event_key | high |
| const char * | name |
| Lowest and Highest event values. | |
| event_def::funcptr | default_handler |
| Name of the state. | |
Friends | |
| class | smach |
Definition at line 165 of file _smach.h.
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||||||||||||
|
Constructor.
|
|
|||||||||||||
|
|
|
||||||||||||||
|
Setup a nested state machine. A more detailed explanation needs to be written Definition at line 195 of file _smach.h. References smach< CON, K, M >::state< T >::nested. |
|
||||||||||||||
|
Sets the default handler.
Definition at line 198 of file _smach.h. References smach< CON, K, M >::state< T >::default_handler. |
|
|||||||||||||
|
Returns given the name of the state.
Implements smach< CON, K, M >::state_base. Definition at line 201 of file _smach.h. References smach< CON, K, M >::state< T >::name. |
|
||||||||||||||
|
Definition at line 203 of file _smach.h. References smach< CON, K, M >::state_context. |
|
||||||||||||||
|
Adds an event_def onto the list and then make sure it is sorted correctly.
Definition at line 213 of file _smach.h. References smach< CON, K, M >::state< T >::event_list, smach< CON, K, M >::state< T >::high, smach< CON, K, M >::event_def< T >::id, and smach< CON, K, M >::state< T >::low. |
|
||||||||||||||
|
Definition at line 231 of file _smach.h. References binary_find(), and smach< CON, K, M >::state< T >::event_list. Referenced by smach< CON, K, M >::state< T >::process_event(). |
|
||||||||||||||
|
Definition at line 232 of file _smach.h. References binary_find(), and smach< CON, K, M >::state< T >::event_list. |
|
||||||||||||||
|
Implements smach< CON, K, M >::state_base. |
|
||||||||||||||
|
Implements smach< CON, K, M >::state_base. Definition at line 241 of file _smach.h. References smach< CON, K, M >::state_context. |
|
||||||||||||||||||||
|
|||||||||
|
Reimplemented from smach< CON, K, M >::state_base. |
|
|||||||||
|
Definition at line 177 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::find(), and smach< CON, K, M >::state< T >::insert(). |
|
|||||||||
|
Definition at line 179 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::process_event(), and smach< CON, K, M >::state< T >::set_nested_machine(). |
|
|||||||||
|
Nested machine.
Definition at line 180 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::insert(), and smach< CON, K, M >::state< T >::process_event(). |
|
|||||||||
|
Definition at line 180 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::insert(), and smach< CON, K, M >::state< T >::process_event(). |
|
|||||||||
|
Lowest and Highest event values.
Definition at line 181 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::get_name(). |
|
|||||||||
|
Name of the state.
Definition at line 182 of file _smach.h. Referenced by smach< CON, K, M >::state< T >::process_event(), and smach< CON, K, M >::state< T >::set_default_handler(). |
1.4.6