CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) const
 

Detailed Description

Definition at line 23 of file OmtfLinkMappingRpc.h.

Member Function Documentation

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

Definition at line 20 of file OmtfLinkMappingRpc.cc.

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

21  {
22  if (o1.dccId < o2.dccId)
23  return true;
24  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum < o2.dccInputChannelNum)
25  return true;
26  else if (o1.dccId == o2.dccId && o1.dccInputChannelNum == o2.dccInputChannelNum &&
28  return true;
29  else
30  return false;
31  }