#include <fsa.H>
Collaboration diagram for State_t< EVENT >:
Public Types | |
typedef Arc_t< EVENT > | arc_type |
Public Member Functions | |
State_t () | |
State_t (Cstr_ptr &n) | |
int | is_empty () |
void | operator+= (const State_t< EVENT > &s) |
void | operator-= (const State_t< EVENT > &s) |
void | operator+= (const Arc_t< EVENT > &a) |
void | operator-= (const Arc_t< EVENT > &a) |
int | consumes (const EVENT &e) const |
State_t< EVENT > * | event (const EVENT &e, State_t< EVENT > *start=0, int *ret=0) const |
Process the event, returning the next state. If requested, return the result of the callback in ret. | |
void | clear () |
const ARRAY< arc_type > & | arcs () const |
ARRAY< arc_type > & | arcs () |
Cstr_ptr & | name () const |
void | set_name (Cstr_ptr &n) |
int | operator== (const State_t< EVENT > &a) const |
Private Attributes | |
ARRAY< arc_type > | _arcs |
str_ptr | _name |
The State may contain multiple Arcs. Only one Arc out of a State will be traversed. When an Event is passed to a state, each Arc will be matched to the Event. The first Arc that matches the Event is traversed.
Definition at line 243 of file fsa.H.
|
|
|
|
|
|
|
Definition at line 274 of file fsa.H. References State_t< EVENT >::_arcs. |
|
Definition at line 273 of file fsa.H. References State_t< EVENT >::_arcs. |
|
Definition at line 271 of file fsa.H. References State_t< EVENT >::_arcs, and ARRAY< T >::clear(). |
|
Definition at line 262 of file fsa.H. References State_t< EVENT >::_arcs, and ARRAY< T >::num(). Referenced by MMENU::invoke(). |
|
Process the event, returning the next state. If requested, return the result of the callback in ret.
Definition at line 355 of file fsa.H. References State_t< EVENT >::_arcs, and ARRAY< T >::num(). Referenced by MMENU::invoke(). |
|
Definition at line 252 of file fsa.H. References State_t< EVENT >::_arcs, and ARRAY< T >::num(). |
|
Definition at line 276 of file fsa.H. References State_t< EVENT >::_name. |
|
Definition at line 257 of file fsa.H. References State_t< EVENT >::_arcs, Arc_t< EVENT >::guarded(), and ARRAY< T >::push(). |
|
Definition at line 291 of file fsa.H. References State_t< EVENT >::_arcs, j, ARRAY< T >::num(), and ARRAY< T >::push(). |
|
Definition at line 260 of file fsa.H. References State_t< EVENT >::_arcs. |
|
Definition at line 331 of file fsa.H. References State_t< EVENT >::_arcs, j, ARRAY< T >::num(), and ARRAY< T >::remove(). |
|
|
|
Definition at line 277 of file fsa.H. References State_t< EVENT >::_name. Referenced by FilmTrans::FilmTrans(), Key_int::Key_int(), Pen::Pen(), and Simple_int::Simple_int(). |
|
Definition at line 284 of file fsa.H. Referenced by State_t< EVENT >::arcs(), State_t< EVENT >::clear(), State_t< EVENT >::consumes(), State_t< EVENT >::event(), State_t< EVENT >::is_empty(), State_t< EVENT >::operator+=(), and State_t< EVENT >::operator-=(). |
|
Definition at line 285 of file fsa.H. Referenced by State_t< EVENT >::name(), and State_t< EVENT >::set_name(). |