運算子 ==

== 運算子是 OMTimerManager 用來操作其資料堆結構的比較函數。 該運算子會判定 destinationTimeout 的現行值是否與指定逾時的那些值相同。

比較會產生下列其中一個值:

可見性
Public
簽章
int operator == (OMTimeout& tn) {
   OMBoolean matchDest = getDestination() ==
      tn.getDestination();
   OMBoolean matchId = ((getTimeoutId() ==
      tn.getTimeoutId()) ||
      (getTimeoutId() == OMEventAnyEventId) || 
      (OMEventAnyEventId == tn.getTimeoutId())); 
   return (matchDest && matchId);}
參數
tn

指定逾時的位址


意見回饋