
#include "Util/log.H"

Go to the source code of this file.
Enumerations | |
| enum | TransientStatus { TSTATUS_OFF, TSTATUS_ON, TSTATUS_BEGIN, TSTATUS_END } |
Indicate the on/off/begin/end of some transient. More... | |
Functions | |
| TransientStatus | transientStatus (const bool oldstate, const bool newstate) |
| Compute a transient from the steady states oldstate and newstate. | |
| TransientStatus | transientStatus (const int oldstate, const int newstate, const int m) |
| Compute a transient from oldstate and newstate and-masked by mask m. | |
| const char * | transientStatusToStr (const TransientStatus &ts) |
| Display a TransientStatus as a 3-char C string. | |
| bool | transientStatusIsOn (const TransientStatus ts) |
| Check whether status is on right now (could be ON or BEGIN). | |
| bool | transientStatusIsOff (const TransientStatus ts) |
| Check whether status is off right now (could be OFF or END). | |
Helper for transient boolean status
Definition in file TransientStatus.H.
| enum TransientStatus |
Indicate the on/off/begin/end of some transient.
| TSTATUS_OFF |
we are off |
| TSTATUS_ON |
we are on |
| TSTATUS_BEGIN |
we just switched from off to on |
| TSTATUS_END |
we just switched from on to off |
Definition at line 44 of file TransientStatus.H.
| TransientStatus transientStatus | ( | const int | oldstate, | |
| const int | newstate, | |||
| const int | m | |||
| ) | [inline] |
Compute a transient from oldstate and newstate and-masked by mask m.
Definition at line 63 of file TransientStatus.H.
References transientStatus().
| TransientStatus transientStatus | ( | const bool | oldstate, | |
| const bool | newstate | |||
| ) | [inline] |
Compute a transient from the steady states oldstate and newstate.
Definition at line 53 of file TransientStatus.H.
References TSTATUS_BEGIN, TSTATUS_END, TSTATUS_OFF, and TSTATUS_ON.
Referenced by SimEventSaccadeStatus::blinkStatus(), SimEventSaccadeStatus::fixationStatus(), SimEventSaccadeStatus::saccadeStatus(), SimEventSaccadeStatus::smoothPursuitStatus(), transientStatus(), and SimEventSaccadeStatus::unknownStatus().
| bool transientStatusIsOff | ( | const TransientStatus | ts | ) | [inline] |
Check whether status is off right now (could be OFF or END).
A return value of true means that it's off right now (either because it has been off for a while, or it just ended). A return value of false DOES NOT mean that it's on, rather it means that it is not off.
Definition at line 96 of file TransientStatus.H.
References TSTATUS_END, and TSTATUS_OFF.
| bool transientStatusIsOn | ( | const TransientStatus | ts | ) | [inline] |
Check whether status is on right now (could be ON or BEGIN).
A return value of true means that it's on right now (either because it has been on for a while, or it just began). A return value of false DOES NOT mean that it's off, rather it means that it is not on.
Definition at line 88 of file TransientStatus.H.
References TSTATUS_BEGIN, and TSTATUS_ON.
| const char* transientStatusToStr | ( | const TransientStatus & | ts | ) | [inline] |
Display a TransientStatus as a 3-char C string.
Definition at line 70 of file TransientStatus.H.
References TSTATUS_BEGIN, TSTATUS_END, TSTATUS_OFF, and TSTATUS_ON.
Referenced by SimEventSaccadeStatus::toString().
1.6.3