The nested class ITimer::Cursor iterates over the active timers for the current application. This class iterates the timers running on any of the application's threads, although it only considers timers started with the ITimer class.
Constructors & DestructorUse can construct and destruct objects of this class.
![]() |
public:
virtual ~Cursor()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
Cursor()
You can only construct objects of this class with the default constructor, which does not require any arguments.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Timer IterationUse these members to iterate through the set of active timers.
![]() |
public:
virtual void invalidate()
Invalidates the cursor.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool isValid() const
Returns true if the cursor is valid.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToFirst()
Initializes the cursor to the first timer. If no timers are active, then it returns false and invalidates the cursor.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToNext()
Advances the cursor to the next timer. If no other timers are active, then it returns false and invalidates the cursor.
If you call setToNext with an invalid cursor, it sets the cursor to the first active timer.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |