| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
CompareTrans< T > Class Template Referencecauses a transition if a value (through a pointer) goes above a given value More...
Inheritance diagram for CompareTrans< T >:
![]() Detailed Descriptiontemplate<class T>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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) | |
| constructor, only checks monitor when it is first activated (no polling) | |
| CompareTrans (const std::string &name, StateNode *destination, const T *monitor, Test_t test, const T &value) | |
| constructor, only checks monitor when it is first activated (no polling) | |
| CompareTrans (StateNode *destination, const T *monitor, Test_t test, const T &value, const EventBase &poll) | |
| constructor, see CompareTrans class notes for information | |
| CompareTrans (const std::string &name, StateNode *destination, const T *monitor, Test_t test, const T &value, const EventBase &poll) | |
| constructor, see CompareTrans class notes for information | |
| virtual void | postStart () |
| starts listening | |
| virtual void | doEvent () |
| don't care about the event, just a pulse to check the values | |
Protected Attributes | |
| const T * | mon |
| address of value to monitor | |
| Test_t | tst |
| test to make | |
| T | val |
| value to compare against | |
| bool | isPolling |
| set to true if poller should be used (otherwise only checked on activation) | |
| 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 | |
| enum CompareTrans::Test_t |
use these values to sepecify what kind of comparison should be made to test for activation
| LT |
less than |
| GT |
greater than |
| LTE |
less than or equal |
| GTE |
greater than or equal |
| EQ |
equal |
| NE |
not equal |
Definition at line 29 of file CompareTrans.h.
| CompareTrans< T >::CompareTrans | ( | StateNode * | destination, | |
| const T * | monitor, | |||
| Test_t | test, | |||
| const T & | value | |||
| ) |
constructor, only checks monitor when it is first activated (no polling)
Definition at line 39 of file CompareTrans.h.
| CompareTrans< T >::CompareTrans | ( | const std::string & | name, | |
| StateNode * | destination, | |||
| const T * | monitor, | |||
| Test_t | test, | |||
| const T & | value | |||
| ) |
constructor, only checks monitor when it is first activated (no polling)
Definition at line 44 of file CompareTrans.h.
| CompareTrans< T >::CompareTrans | ( | StateNode * | destination, | |
| const T * | monitor, | |||
| Test_t | test, | |||
| const T & | value, | |||
| const EventBase & | poll | |||
| ) |
constructor, see CompareTrans class notes for information
Definition at line 49 of file CompareTrans.h.
| CompareTrans< T >::CompareTrans | ( | const std::string & | name, | |
| StateNode * | destination, | |||
| const T * | monitor, | |||
| Test_t | test, | |||
| const T & | value, | |||
| const EventBase & | poll | |||
| ) |
constructor, see CompareTrans class notes for information
Definition at line 54 of file CompareTrans.h.
| CompareTrans< T >::CompareTrans | ( | const CompareTrans< T > & | node | ) | [private] |
don't call this
| virtual void CompareTrans< T >::doEvent | ( | ) | [virtual] |
don't care about the event, just a pulse to check the values
Reimplemented from BehaviorBase.
Reimplemented in SmoothCompareTrans< T >.
Definition at line 68 of file CompareTrans.h.
Referenced by CompareTrans< T >::postStart().
| CompareTrans CompareTrans< T >::operator= | ( | const CompareTrans< T > & | node | ) | [private] |
don't call this
| virtual void CompareTrans< T >::postStart | ( | ) | [virtual] |
starts listening
Reimplemented from BehaviorBase.
Reimplemented in SmoothCompareTrans< T >.
Definition at line 59 of file CompareTrans.h.
bool CompareTrans< T >::isPolling [protected] |
set to true if poller should be used (otherwise only checked on activation)
Definition at line 95 of file CompareTrans.h.
Referenced by CompareTrans< T >::postStart().
const T* CompareTrans< T >::mon [protected] |
address of value to monitor
Definition at line 92 of file CompareTrans.h.
Referenced by CompareTrans< T >::doEvent().
EventBase CompareTrans< T >::poller [protected] |
event to listen to, when it comes, compare the values
Definition at line 96 of file CompareTrans.h.
Referenced by CompareTrans< T >::postStart().
Test_t CompareTrans< T >::tst [protected] |
test to make
Definition at line 93 of file CompareTrans.h.
Referenced by CompareTrans< T >::doEvent().
T CompareTrans< T >::val [protected] |
value to compare against
Definition at line 94 of file CompareTrans.h.
Referenced by CompareTrans< T >::doEvent().
|
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:06 2016 by Doxygen 1.6.3 |