Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CTCounter.hh File Reference

Go to the source code of this file.

Classes

struct  G4Number< N >
 
struct  G4Number< 0 >
 

Macros

#define G4CT_COUNT_INIT(init_value)
 
#define G4CT_MAX_COUNT   255
 
#define G4CT_COUNT(flagName)
 
#define G4CT_COUNT_INIT_DEF(init_value)
 
#define G4CT_COUNT_INIT_IMPL(enumName, init_value)
 
#define G4CT_COUNT_DEF(flagName)
 
#define G4CT_COUNT_IMPL(enumName, flagName)
 

Macro Definition Documentation

◆ G4CT_COUNT

#define G4CT_COUNT (   flagName)
Value:
static constexpr const int flagName = decltype(Counter(G4Number<G4CT_MAX_COUNT>{}))::value; \
{ \
static_assert(flagName + 1 < G4CT_MAX_COUNT, "Maximum enumeration count exeeded"); \
}
#define G4CT_MAX_COUNT
Definition: G4CTCounter.hh:100

Definition at line 108 of file G4CTCounter.hh.

◆ G4CT_COUNT_DEF

#define G4CT_COUNT_DEF (   flagName)
Value:
static constexpr const int flagName = \
decltype(Counter(G4Number<G4CT_MAX_COUNT>{}))::value; \
static constexpr G4Number<flagName + 1> \

Definition at line 131 of file G4CTCounter.hh.

◆ G4CT_COUNT_IMPL

#define G4CT_COUNT_IMPL (   enumName,
  flagName 
)

◆ G4CT_COUNT_INIT

#define G4CT_COUNT_INIT (   init_value)
Value:

Definition at line 90 of file G4CTCounter.hh.

◆ G4CT_COUNT_INIT_DEF

#define G4CT_COUNT_INIT_DEF (   init_value)
Value:

Definition at line 121 of file G4CTCounter.hh.

◆ G4CT_COUNT_INIT_IMPL

#define G4CT_COUNT_INIT_IMPL (   enumName,
  init_value 
)
Value:

Definition at line 125 of file G4CTCounter.hh.

◆ G4CT_MAX_COUNT

#define G4CT_MAX_COUNT   255

Definition at line 100 of file G4CTCounter.hh.