smach< CON, K, M >::event_def< T > Class Template Reference

Event definition class. More...

#include <_smach.h>

List of all members.

Public Types

typedef T state_context_type
typedef event_result(T::* funcptr )(const event &)
 Event function type.

Public Member Functions

bool operator< (const event_def &rhs) const
 Less-than operator for sorting. Based on event_key value.
bool operator== (const event_def &rhs) const
 Equal-to operator. Based on event_key value.
bool operator< (const event_key &rhs) const
 Less-than operator for finding.
bool operator== (const event_key &rhs) const
 Equal-to operator. Based on event_key value.
 event_def ()
 Trivial Constructor.
 event_def (event_key a, funcptr b)
 Constructor for creating an event_def from the given key and function reference.
 event_def (const event_def &x)
 Copy constructor.

Public Attributes

event_key id
funcptr handler

Friends

class smach


Detailed Description

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
class smach< CON, K, M >::event_def< T >

Event definition class.

Definition at line 101 of file _smach.h.


Member Typedef Documentation

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
typedef T smach< CON, K, M >::event_def< T >::state_context_type

Definition at line 108 of file _smach.h.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
typedef event_result(T::* smach< CON, K, M >::event_def< T >::funcptr)(const event &)

Event function type.


Constructor & Destructor Documentation

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
smach< CON, K, M >::event_def< T >::event_def (  )  [inline]

Trivial Constructor.

Definition at line 137 of file _smach.h.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
smach< CON, K, M >::event_def< T >::event_def ( event_key  a,
funcptr  b 
) [inline]

Constructor for creating an event_def from the given key and function reference.

Definition at line 140 of file _smach.h.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
smach< CON, K, M >::event_def< T >::event_def ( const event_def< T > &  x  )  [inline]

Copy constructor.

Definition at line 143 of file _smach.h.


Member Function Documentation

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
bool smach< CON, K, M >::event_def< T >::operator< ( const event_def< T > &  rhs  )  const [inline]

Less-than operator for sorting. Based on event_key value.

Definition at line 121 of file _smach.h.

References smach< CON, K, M >::event_def< T >::id.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
bool smach< CON, K, M >::event_def< T >::operator== ( const event_def< T > &  rhs  )  const [inline]

Equal-to operator. Based on event_key value.

Definition at line 125 of file _smach.h.

References smach< CON, K, M >::event_def< T >::id.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
bool smach< CON, K, M >::event_def< T >::operator< ( const event_key rhs  )  const [inline]

Less-than operator for finding.

Definition at line 129 of file _smach.h.

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
bool smach< CON, K, M >::event_def< T >::operator== ( const event_key rhs  )  const [inline]

Equal-to operator. Based on event_key value.

Definition at line 133 of file _smach.h.


Friends And Related Function Documentation

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
friend class smach [friend]

Definition at line 104 of file _smach.h.


Member Data Documentation

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
event_key smach< CON, K, M >::event_def< T >::id

Definition at line 115 of file _smach.h.

Referenced by smach< CON, K, M >::state< T >::insert(), smach< CON, K, M >::event_def< T >::operator<(), and smach< CON, K, M >::event_def< T >::operator==().

template<typename CON, typename K = int, typename M = mutex_null>
template<typename T>
funcptr smach< CON, K, M >::event_def< T >::handler

Definition at line 116 of file _smach.h.


The documentation for this class was generated from the following file:
Generated on Sat Oct 27 11:30:18 2007 for ETL by  doxygen 1.5.3-20071008