test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
DCCTBDataFieldComparator Class Reference

#include <DCCDataMapper.h>

Public Member Functions

bool operator() (DCCTBDataField *d1, DCCTBDataField *d2)
 

Detailed Description

Definition at line 60 of file DCCDataMapper.h.

Member Function Documentation

bool DCCTBDataFieldComparator::operator() ( DCCTBDataField d1,
DCCTBDataField d2 
)
inline

Overloads operator() returning true if DCCDataField 1 comes first then DCCDataField 2 in the DCC data block

Definition at line 67 of file DCCDataMapper.h.

References DCCTBDataField::bitPosition(), relativeConstraints::value, and DCCTBDataField::wordPosition().

67  {
68  bool value(false);
69 
70  if (d1->wordPosition() < d2->wordPosition()){
71  value=true;
72  }
73  else if(d1->wordPosition() == d2->wordPosition()){
74  if(d1->bitPosition() > d2->bitPosition()) {
75  value=true;
76  }
77  }
78 
79  return value;
80  }
uint32_t bitPosition()
Definition: DCCDataMapper.h:38
uint32_t wordPosition()
Definition: DCCDataMapper.h:36