Public Member Functions | |
bool | operator() (const Latency &lat1, const Latency &lat2) |
Definition at line 126 of file SiStripLatency.h.
bool SiStripLatency::OrderByLatencyAndMode::operator() | ( | const Latency & | lat1, |
const Latency & | lat2 | ||
) | [inline] |
Definition at line 128 of file SiStripLatency.h.
References SiStripLatency::Latency::latency, and SiStripLatency::Latency::mode.
{ // latency and mode are unsigned short that cannot exceed 255. // Sum them multiplying the mode by 1000 to get a single ordering number. int latencyAndModeSortValue1 = int(lat1.latency) + 1000*int(lat1.mode); int latencyAndModeSortValue2 = int(lat2.latency) + 1000*int(lat2.mode); return( latencyAndModeSortValue1 < latencyAndModeSortValue2 ); }