Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Monitor::Utility::TimeoutList Class Reference

Singleton list to hold instances of Timeout class. More...

#include <tmoutlst.h>

List of all members.

Static Public Methods

void addTimeout (Timeout &newTimeout)
 Add a timeout to the list. More...

void removeTimeout (Timeout &oldTimeout)
 Remove a timeout from the list. More...

void destroyTimeout (Timeout &oldTimeout)
 Remove a timeout from the list and then destroy it. More...

void runTimeouts ()
 Perform a single pass through the list invoking the 'run' method on each timeout currently in the list. More...

unsigned size ()
TIListImp< Timeout > & getList ()

Static Private Methods

unsigned & listSize ()


Detailed Description

Singleton list to hold instances of Timeout class.

Provides a method that iterates through list 'running' each Timeout.

Definition at line 57 of file tmoutlst.h.


Member Function Documentation

void TimeoutList::addTimeout Timeout   newTimeout [static]
 

Add a timeout to the list.

Parameters:
newTimeout  Timeout to add to list.

Definition at line 52 of file tmoutlst.cpp.

References _USEMYTRACE_.

void TimeoutList::destroyTimeout Timeout   oldTimeout [static]
 

Remove a timeout from the list and then destroy it.

Parameters:
oldTimeout  Timeout to remove from list and then destroy.

Definition at line 126 of file tmoutlst.cpp.

References _USEMYTRACE_, and removeTimeout.

Referenced by runTimeouts.

TIListImp< Timeout > & TimeoutList::getList   [static]
 

Returns:
Reference to singleton list of timeouts.

Definition at line 174 of file tmoutlst.cpp.

Referenced by removeTimeout, and runTimeouts.

unsigned & TimeoutList::listSize   [static, private]
 

Returns:
Reference to singleton to hold number of timeouts in list.

Definition at line 184 of file tmoutlst.cpp.

Referenced by removeTimeout, and size.

void TimeoutList::removeTimeout Timeout   oldTimeout [static]
 

Remove a timeout from the list.

Parameters:
oldTimeout  Timeout to remove from list.

Definition at line 88 of file tmoutlst.cpp.

References _USEMYTRACE_, getList, listSize, and size.

Referenced by destroyTimeout.

void TimeoutList::runTimeouts   [static]
 

Perform a single pass through the list invoking the 'run' method on each timeout currently in the list.

Definition at line 143 of file tmoutlst.cpp.

References destroyTimeout, and getList.

unsigned TimeoutList::size   [static]
 

Returns:
Number of timeouts currently in the list.

Definition at line 166 of file tmoutlst.cpp.

References listSize.

Referenced by removeTimeout.


Generated on Wed Oct 29 20:51:59 2003 for Utility BC Common by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002