uint.H File Reference

System unsigned integer. More...

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

Go to the source code of this file.

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
 

Macros

#define MAXMIN(retType, type1, type2)
 

Functions

uint8_t min (const uint8_t s1, const uint8_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint8_t max (const uint8_t s1, const uint8_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
uint16_t min (const uint16_t s1, const uint16_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint16_t max (const uint16_t s1, const uint16_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
uint32_t min (const uint32_t s1, const uint32_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint32_t max (const uint32_t s1, const uint32_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
uint64_t min (const uint64_t s1, const uint32_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint64_t max (const uint64_t s1, const uint32_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
uint64_t min (const uint32_t s1, const uint64_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint64_t max (const uint32_t s1, const uint64_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
uint64_t min (const uint64_t s1, const uint64_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
uint64_t max (const uint64_t s1, const uint64_t s2)
 Floating/integral max. Use stdFoam::max() to preserve references. More...
 
unsigned int readUint (Istream &is)
 Read unsigned int from stream. More...
 

Detailed Description

System unsigned integer.

Original source file uint.H

Source files

Definition in file uint.H.

Macro Definition Documentation

◆ MAXMIN

#define MAXMIN (   retType,
  type1,
  type2 
)
Value:
\ \
inline retType min(const type1 s1, const type2 s2) \
{ \
return (s1 < s2) ? s1 : s2; \
} \
\ \
inline retType max(const type1 s1, const type2 s2) \
{ \
return (s2 < s1) ? s1 : s2; \
}
Y[inertIndex] max(0.0)

Definition at line 51 of file uint.H.