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

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

Enumerations

enum  ERightLeft : signed short {
  c_Right = 1 ,
  c_Unknown = 0 ,
  c_Left = -1 ,
  c_Invalid = SHRT_MIN
}
 Enumeration to represent the distinct possibilities of the right left passage. More...
 

Functions

ERightLeft reversed (ERightLeft eRightLeft)
 Return the reversed right left indicator. Leaves ERightLeft::c_Invalid the same.
 
bool isValid (ERightLeft eRightLeft)
 Check whether the given enum instance is one of the valid values.
 

Detailed Description

Namespace hiding the constants of the enum.

Enumeration Type Documentation

◆ ERightLeft

enum ERightLeft : signed short

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

Enumerator
c_Right 

Constant for right passage.

c_Unknown 

Constant for an not yet determined right left passage.

c_Left 

Constant for left passage.

c_Invalid 

Constant for an invalid passage information.

Definition at line 25 of file ERightLeft.h.

25 : signed short {
26
28 c_Right = 1,
29
31 c_Unknown = 0,
32
34 c_Left = -1,
35
37 c_Invalid = SHRT_MIN,
38 };

Function Documentation

◆ isValid()

bool isValid ( ERightLeft  eRightLeft)
inline

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

Definition at line 45 of file ERightLeft.h.

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

◆ reversed()

ERightLeft reversed ( ERightLeft  eRightLeft)
inline

Return the reversed right left indicator. Leaves ERightLeft::c_Invalid the same.

Definition at line 41 of file ERightLeft.h.

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