label.H File Reference
Include dependency graph for label.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define INT_ADD_SIZE(x, s, y)   x ## s ## y
 
#define INT_ADD_DEF_SIZE(x, s, y)   INT_ADD_SIZE(x,s,y)
 
#define INT_SIZE(x, y)   INT_ADD_DEF_SIZE(x,WM_LABEL_SIZE,y)
 

Typedefs

typedef intWM_LABEL_SIZE_t label
 A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE. More...
 

Functions

label readLabel (Istream &is)
 
label pow (label a, label b)
 Raise one label to the power of another. More...
 
label factorial (label n)
 Return n! : 0 < n <= 12. More...
 
label log2 (label i)
 Return the log base 2 by successive bit-shifting of the given label. More...
 
label & setComponent (label &l, const direction)
 
label component (const label l, const direction)
 
label cmptMax (const label l)
 
label cmptMin (const label l)
 

Variables

static const label labelMin = INTWM_LABEL_SIZE_MIN
 
static const label labelMax = INTWM_LABEL_SIZE_MAX
 

Detailed Description

Original source file label.H

Definition in file label.H.

Macro Definition Documentation

◆ INT_ADD_SIZE

#define INT_ADD_SIZE (   x,
  s,
  y 
)    x ## s ## y

Definition at line 43 of file label.H.

◆ INT_ADD_DEF_SIZE

#define INT_ADD_DEF_SIZE (   x,
  s,
  y 
)    INT_ADD_SIZE(x,s,y)

Definition at line 44 of file label.H.

◆ INT_SIZE

#define INT_SIZE (   x,
  y 
)    INT_ADD_DEF_SIZE(x,WM_LABEL_SIZE,y)

Definition at line 45 of file label.H.