Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
CompareTrans< T > Class Template Reference#include <CompareTrans.h>
Inheritance diagram for CompareTrans< T >: ![]() Detailed Descriptiontemplate<class T>
causes a transition if a value (through a pointer) goes above a given value
|
Public Types | |
enum | Test_t { LT, GT, LTE, GTE, EQ, NE } |
use these values to sepecify what kind of comparison should be made to test for activation More... | |
Public Member Functions | |
CompareTrans (StateNode *destination, const T *monitor, Test_t test, const T &value, const EventBase &poll) | |
constructor, see CompareTrans class notes for information | |
virtual void | DoStart () |
starts listening | |
virtual void | DoStop () |
stops listening | |
virtual void | processEvent (const EventBase &) |
don't care about the event, just a pulse to check the values | |
virtual std::string | getName () const |
Identifies the behavior in menus and such. | |
Protected Attributes | |
const T * | mon |
address of value to monitor | |
Test_t | tst |
test to make | |
T | val |
value to compare against | |
EventBase | poller |
event to listen to, when it comes, compare the values | |
Private Member Functions | |
CompareTrans (const CompareTrans &node) | |
don't call this | |
CompareTrans | operator= (const CompareTrans &node) |
don't call this |
|
use these values to sepecify what kind of comparison should be made to test for activation
Definition at line 28 of file CompareTrans.h. |
|
constructor, see CompareTrans class notes for information
Definition at line 38 of file CompareTrans.h. |
|
don't call this
|
|
starts listening
Reimplemented from BehaviorBase. Reimplemented in SmoothCompareTrans< T >. Definition at line 43 of file CompareTrans.h. Referenced by SmoothCompareTrans< T >::DoStart(). |
|
stops listening
Reimplemented from BehaviorBase. Definition at line 46 of file CompareTrans.h. |
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Reimplemented in SmoothCompareTrans< T >. Definition at line 72 of file CompareTrans.h. |
|
don't call this
|
|
don't care about the event, just a pulse to check the values
Reimplemented from BehaviorBase. Reimplemented in SmoothCompareTrans< T >. Definition at line 49 of file CompareTrans.h. Referenced by SmoothCompareTrans< T >::processEvent(). |
|
address of value to monitor
Definition at line 75 of file CompareTrans.h. Referenced by CompareTrans< T >::CompareTrans(), and CompareTrans< T >::processEvent(). |
|
event to listen to, when it comes, compare the values
Definition at line 78 of file CompareTrans.h. Referenced by CompareTrans< T >::CompareTrans(), and CompareTrans< T >::DoStart(). |
|
test to make
Definition at line 76 of file CompareTrans.h. Referenced by CompareTrans< T >::CompareTrans(), and CompareTrans< T >::processEvent(). |
|
value to compare against
Definition at line 77 of file CompareTrans.h. Referenced by CompareTrans< T >::CompareTrans(), and CompareTrans< T >::processEvent(). |
Tekkotsu v2.1 |
Generated Tue Mar 16 23:22:03 2004 by Doxygen 1.3.5 |