GiaMessageBookkeeping::GiaNodeQueueCompare Class Reference

#include <GiaMessageBookkeeping.h>

List of all members.

Public Member Functions

bool operator() (const GiaNode &x, const GiaNode &y)


Member Function Documentation

bool GiaMessageBookkeeping::GiaNodeQueueCompare::operator() ( const GiaNode x,
const GiaNode y 
)

00129 {
00130     if (x.getReceivedTokens() > y.getReceivedTokens()) {
00131         if (y.getReceivedTokens() == 0)
00132             return false;
00133         else {
00134             if (x.getCapacity() >= y.getCapacity())
00135                 return false;
00136             else
00137                 return true;
00138         }
00139     }
00140     else if (x.getReceivedTokens() < y.getReceivedTokens()) {
00141         if (x.getReceivedTokens() == 0)
00142             return true;
00143         else {
00144             if (x.getCapacity() > y.getCapacity())
00145                 return false;
00146             else
00147                 return true;
00148         }
00149     }
00150     else {
00151         if (x.getReceivedTokens() == 0)
00152             return true;
00153         else {
00154             if (x.getCapacity() > y.getCapacity())
00155                 return false;
00156             else
00157                 return true;
00158         }
00159     }
00160 }


The documentation for this class was generated from the following files:
Generated on Fri May 11 14:52:40 2007 for ITM OverSim by  doxygen 1.4.7