operator ==

== 运算符是一个比较函数,由 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

指定超时的地址


反馈