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 62 of file DCCDataMapper.h.

Member Function Documentation

◆ operator()()

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(), d1, relativeConstraints::value, and DCCTBDataField::wordPosition().

67  {
68  bool value(false);
69 
70  if (d1->wordPosition() < d2->wordPosition()) {
71  value = true;
72  } else if (d1->wordPosition() == d2->wordPosition()) {
73  if (d1->bitPosition() > d2->bitPosition()) {
74  value = true;
75  }
76  }
77 
78  return value;
79  }
Definition: value.py:1
uint32_t bitPosition()
Definition: DCCDataMapper.h:42
uint32_t wordPosition()
Definition: DCCDataMapper.h:40
static constexpr float d1