CMS 3D CMS Logo

List of all members | Public Member Functions
omtf::lessLinkBoardElectronicIndex Struct Reference

#include <OmtfLinkMappingRpc.h>

Public Member Functions

bool operator() (const LinkBoardElectronicIndex &o1, const LinkBoardElectronicIndex &o2)
 

Detailed Description

Definition at line 24 of file OmtfLinkMappingRpc.h.

Member Function Documentation

bool omtf::lessLinkBoardElectronicIndex::operator() ( const LinkBoardElectronicIndex o1,
const LinkBoardElectronicIndex o2 
)

Definition at line 23 of file OmtfLinkMappingRpc.cc.

References LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, and LinkBoardElectronicIndex::tbLinkInputNum.

23  {
24  if (o1.dccId < o2.dccId) return true;
25  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum < o2.dccInputChannelNum) return true;
26  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum == o2.dccInputChannelNum && o1.tbLinkInputNum < o2.tbLinkInputNum) return true;
27  else return false;
28 }