#include <GiaMessageBookkeeping.h>
Public Member Functions | |
bool | operator() (const FullGiaNodeInfo &x, const FullGiaNodeInfo &y) |
Definition at line 96 of file GiaMessageBookkeeping.h.
bool GiaMessageBookkeeping::GiaNodeQueueCompare::operator() | ( | const FullGiaNodeInfo & | x, | |
const FullGiaNodeInfo & | y | |||
) |
Definition at line 137 of file GiaMessageBookkeeping.cc.
{ if (x.info->receivedTokens > y.info->receivedTokens) { if (y.info->receivedTokens == 0) return false; else { if (x.node.getCapacity() >= y.node.getCapacity()) return false; else return true; } } else if (x.info->receivedTokens < y.info->receivedTokens) { if (x.info->receivedTokens == 0) return true; else { if (x.node.getCapacity() > y.node.getCapacity()) return false; else return true; } } else { if (x.info->receivedTokens == 0) return true; else { if (x.node.getCapacity() > y.node.getCapacity()) return false; else return true; } } }