#include <CLocationMonitor.h>
Inheritance diagram for CLocationMonitor< T >:
Public Member Functions | |
CLocationMonitor (volatile T *am_pTLocation, CPointerPredicate< T > *am_Predicate, bool am_fTimedWait=true) | |
CLocationMonitor (const string &rName, volatile T *am_pTLocation, CPointerPredicate< T > *am_Predicate, bool am_fTimedWait=true) | |
CLocationMonitor (const char *pName, volatile T *am_pTLocation, CPointerPredicate< T > *am_Predicate, bool am_fTimedWait=true) | |
~CLocationMonitor () | |
int | operator== (const CLocationMonitor< T > &aCLocationMonitor) const |
volatile T * | getLocation () const |
CPointerPredicate< T > | getPredicate () const |
virtual CEventMonitor::result | operator() () |
void | ChangeLocation (T *pNewLocation) |
void | ChangePredicate (CPointerPredicate< T > *newloc) |
T | getContents () const |
virtual string | DescribeSelf () |
Protected Member Functions | |
void | setLocation (volatile T *am_pTLocation) |
void | setPredicate (CPointerPredicate< T > &am_Predicate) |
Private Member Functions | |
CLocationMonitor (const CLocationMonitor< T > &aCLocationMonitor) | |
CLocationMonitor< T > | operator= (const CLocationMonitor< T > &aCLocationMonitor) |
Private Attributes | |
volatile T * | m_pTLocation |
CPointerPredicate< T > * | m_Predicate |
Definition at line 335 of file CLocationMonitor.h.
|
associated predicate |
|
|
|
|
|
|
|
|
|
Operation Type: Mutator Purpose: Changes the location monitored. Definition at line 360 of file CLocationMonitor.cpp. References CLocationMonitor< T >::m_pTLocation. |
|
Operation Type: Mutator Purpose: Associates a new predicate with the location monitor. Definition at line 377 of file CLocationMonitor.cpp. References CLocationMonitor< T >::m_Predicate. |
|
Operation Type: Selector Purpose: Returns a string which describes the monitor. Inlcudes: 1. CEventMonitor::DescribeSelf 2. Dumps of the pointer value, 3. m_Predicate->DescribeSelf() Definition at line 396 of file CLocationMonitor.cpp. References CLocationMonitor< T >::m_Predicate, and CLocationMonitor< T >::m_pTLocation. |
|
Definition at line 419 of file CLocationMonitor.h. |
|
Definition at line 390 of file CLocationMonitor.h. Referenced by CLocationReactor< T >::OnEvent(). |
|
Definition at line 395 of file CLocationMonitor.h. |
|
Operation Type: Override behavior Purpose: Reads the current value of the location and passes it to the predicate. Returns: 1. Occured - if the predicate returned TRUE 2. TimedOut - if the wait time for this event timedout. 3. Error - If the predicate threw an exception. Implements CEventMonitor. Definition at line 321 of file CLocationMonitor.cpp. References CEventMonitor::getTimeout(), CLocationMonitor< T >::m_Predicate, and NULL. |
|
|
|
Definition at line 371 of file CLocationMonitor.h. References CLocationMonitor< T >::m_Predicate, CLocationMonitor< T >::m_pTLocation, and CEventMonitor::operator==(). |
|
Definition at line 403 of file CLocationMonitor.h. References CLocationMonitor< T >::m_pTLocation. |
|
Definition at line 408 of file CLocationMonitor.h. References CLocationMonitor< T >::m_Predicate. |
|
Location monitored Definition at line 338 of file CLocationMonitor.h. Referenced by CLocationMonitor< T >::ChangePredicate(), CLocationMonitor< T >::DescribeSelf(), CLocationMonitor< T >::operator()(), CLocationMonitor< T >::operator==(), and CLocationMonitor< T >::setPredicate(). |
|
Definition at line 337 of file CLocationMonitor.h. Referenced by CLocationMonitor< T >::ChangeLocation(), CLocationMonitor< T >::DescribeSelf(), CLocationMonitor< T >::operator==(), and CLocationMonitor< T >::setLocation(). |