Belle II Software development
Belle2::TrackFindingCDC::NIncDec Namespace Reference

Namespace hiding the constants of the enum. More...

Enumerations

enum  EIncDec : signed short {
  c_Increasing = 1 ,
  c_Constant = 0 ,
  c_Decreasing = -1 ,
  c_Invalid = SHRT_MIN
}
 Enumeration to represent the distinct possibilities of the right left passage information. More...
 

Functions

EIncDec reversed (EIncDec eIncDec)
 Return the reversed increasing decreasing indicator. Leaves EIncDec::c_Invalid the same.
 
bool isValid (EIncDec eIncDec)
 Check whether the given enum instance is one of the valid values.
 

Detailed Description

Namespace hiding the constants of the enum.

Enumeration Type Documentation

◆ EIncDec

enum EIncDec : signed short

Enumeration to represent the distinct possibilities of the right left passage information.

Enumerator
c_Increasing 

Constant for a variable that increases.

c_Constant 

Constant for a variable that is constant.

c_Decreasing 

Constant for a variable that decreases.

c_Invalid 

Constant for an invalid information.

Definition at line 25 of file EIncDec.h.

25 : signed short {
26
28 c_Increasing = 1,
29
31 c_Constant = 0,
32
34 c_Decreasing = -1,
35
37 c_Invalid = SHRT_MIN,
38 };
@ c_Decreasing
Constant for a variable that decreases.
Definition: EIncDec.h:34
@ c_Increasing
Constant for a variable that increases.
Definition: EIncDec.h:28
@ c_Constant
Constant for a variable that is constant.
Definition: EIncDec.h:31

Function Documentation

◆ isValid()

bool isValid ( EIncDec  eIncDec)
inline

Check whether the given enum instance is one of the valid values.

Definition at line 45 of file EIncDec.h.

46 { return std::abs(eIncDec) <= 1; }

◆ reversed()

EIncDec reversed ( EIncDec  eIncDec)
inline

Return the reversed increasing decreasing indicator. Leaves EIncDec::c_Invalid the same.

Definition at line 41 of file EIncDec.h.

42 { return EIncDec(-eIncDec); }
EIncDec
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: EIncDec.h:25