#include <PsSensitiveInputAlias.h>
Inheritance diagram for PsSensitiveInputAlias< Type >:


Public Methods | |
| PsSensitiveInputAlias (const PsName &sensitiveInputAliasName, PsSimulatedObject &owner, PsAbstractInput< Type > *aliasedInput, const int requestedPrecisionLevel=PsPolatorNT::defaultPrecisionLevel) | |
| Constructor. | |
| virtual | ~PsSensitiveInputAlias (void) |
| Destructor. | |
| virtual bool | valueChanged (bool keepChanged=false) |
| query to find out if the value of the connected output has changed since last query. | |
| virtual void | signalChange () |
| called by the connected output when it's value has changed | |
Definition at line 34 of file PsSensitiveInputAlias.h.
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 44 of file PsSensitiveInputAlias.h. References PsnSensitiveInputNT::_changed, and PsPolatorNT::defaultPrecisionLevel.
00048 : PsInputAlias<Type>(sensitiveInputAliasName, 00049 owner, 00050 aliasedInput, 00051 requestedPrecisionLevel) 00052 { 00053 _changed = true; 00054 }; |
|
||||||||||
|
Destructor.
Definition at line 57 of file PsSensitiveInputAlias.h.
00058 {
00059 };
|
|
|||||||||
|
called by the connected output when it's value has changed
Implements PsnSensitiveInputNT. Reimplemented in PsSensitiveNotifyingInputAlias< Type >. Definition at line 72 of file PsSensitiveInputAlias.h. References PsnSensitiveInputNT::_changed, PsAbstractInput< Type >::_listOfAliases, list< PsInputAlias< Type > * >::begin(), list< PsInputAlias< Type > * >::end(), and PsnSensitiveInputNT::signalChange().
00073 {
00074 #ifdef _DEBUGALIAS
00075 cerr<<"PsSensitiveInputAlias<Type>::signalChange()"<<endl;
00076 #endif
00077 _changed = true ;
00078 #ifdef _TYPENAMENOTIMPLICIT
00079 typename
00080 #endif
00081 list<PsInputAlias<Type> *>::iterator i;
00082 for (i = _listOfAliases.begin();
00083 i != _listOfAliases.end();
00084 i++)
00085 {
00086 #ifdef _DEBUGALIAS
00087 cerr<<"PsSensitiveInputAlias<Type>::signalChange() : je vais prévenir un de mes alias"<<(*i)<<endl;
00088 #endif
00089 PsnSensitiveInputNT * sensitiveInput = dynamic_cast<PsnSensitiveInputNT *>(*i) ;
00090 if ( sensitiveInput != NULL )
00091 {
00092 sensitiveInput->signalChange();
00093 }
00094 #ifdef _DEBUGALIAS
00095 cerr<<"PsSensitiveInputAlias<Type>::signalChange() : j'ai prévenu un de mes alias"<<endl;
00096 #endif
00097 }
00098 }
|
|
||||||||||
|
query to find out if the value of the connected output has changed since last query.
Implements PsnSensitiveInputNT. Definition at line 63 of file PsSensitiveInputAlias.h. References PsnSensitiveInputNT::_changed.
00063 {
00064 if (_changed) {
00065 _changed = keepChanged ;
00066 return true;
00067 }
00068 else return false;
00069 }
|
| Documentation generated on Mon Nov 25 15:26:27 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |