CMS 3D CMS Logo

List of all members | Public Member Functions
DCCTBDataFieldComparator Class Reference

#include <DCCDataMapper.h>

Public Member Functions

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

Detailed Description

Definition at line 60 of file DCCDataMapper.h.

Member Function Documentation

bool DCCTBDataFieldComparator::operator() ( DCCTBDataField d1,
DCCTBDataField d2 
) const
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  }
Definition: value.py:1
uint32_t bitPosition()
Definition: DCCDataMapper.h:38
uint32_t wordPosition()
Definition: DCCDataMapper.h:36