CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
IndexGar Struct Reference

#include <IndexGar.h>

Public Member Functions

bool operator< (const IndexGar &index) const
 

Public Attributes

int stripX
 
int stripV
 
char gridX
 
char gridV
 
char sheet
 

Detailed Description

Definition at line 6 of file IndexGar.h.

Member Function Documentation

◆ operator<()

bool IndexGar::operator< ( const IndexGar & index) const
inline

Definition at line 14 of file IndexGar.h.

14 {
15 //if (this->stripX < index.stripX) return true;
16 //else if (this->stripX > index.stripX) return false;
17 //else if (...)
18
19 return (this->stripX < index.stripX) ||
20 (this->stripX == index.stripX && this->stripV < index.stripV)||
21 (this->stripX == index.stripX && this->stripV == index.stripV && this->gridX < index.gridX)||
22 (this->stripX == index.stripX && this->stripV == index.stripV && this->gridX == index.gridX && this->gridV < index.gridV)||
23 (this->stripX == index.stripX && this->stripV == index.stripV && this->gridX == index.gridX && this->gridV == index.gridV && this->sheet < index.sheet );
24
25 //return (this->stripX < index.stripX) || (this->stripX == index.stripX &&
26 // (this->stripV < index.stripV) || (this->stripV == index.stripV &&
27 // ...
28 // )
29 // )
30 //have to admit this expression sucks
31
32
33 //// just compares from up to down.
34 //return this->stripX < index.stripX ? true : this->stripX != index.stripX ? false :
35 // this->stripV < index.stripV ? true : this->stripV != index.stripV ? false :
36 // this->gridX < index.gridX ? true : this->gridX != index.gridX ? false :
37 // this->gridV < index.gridV ? true : this->gridV != index.gridV ? false :
38 // this->sheet < index.sheet ? true : false;
39 } // hope this gets optimized well..
char gridX
Definition IndexGar.h:9
char sheet
Definition IndexGar.h:10
int stripV
Definition IndexGar.h:8
int stripX
Definition IndexGar.h:7
char gridV
Definition IndexGar.h:9

Member Data Documentation

◆ gridV

char IndexGar::gridV

Definition at line 9 of file IndexGar.h.

Referenced by operator<().

◆ gridX

char IndexGar::gridX

Definition at line 9 of file IndexGar.h.

Referenced by operator<().

◆ sheet

char IndexGar::sheet

Definition at line 10 of file IndexGar.h.

Referenced by operator<().

◆ stripV

int IndexGar::stripV

Definition at line 8 of file IndexGar.h.

Referenced by operator<().

◆ stripX

int IndexGar::stripX

Definition at line 7 of file IndexGar.h.

Referenced by operator<().


The documentation for this struct was generated from the following file: