int.H File Reference

System signed integer. More...

Include dependency graph for int.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 MAXMIN(retType, type1, type2)
 

Functions

int8_t min (const int8_t s1, const int8_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int8_t max (const int8_t s1, const int8_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int16_t min (const int16_t s1, const int16_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int16_t max (const int16_t s1, const int16_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int32_t min (const int32_t s1, const int32_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int32_t max (const int32_t s1, const int32_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int64_t min (const int64_t s1, const int32_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int64_t max (const int64_t s1, const int32_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int64_t min (const int32_t s1, const int64_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int64_t max (const int32_t s1, const int64_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int64_t min (const int64_t s1, const int64_t s2)
 Floating/integral min. Use stdFoam::min() to preserve references. More...
 
int64_t max (const int64_t s1, const int64_t s2)
 Floating integral max. Use stdFoam::max() to preserve references. More...
 
int readInt (Istream &is)
 Read int from stream. More...
 
int readInt (const char *buf)
 Parse entire buffer as an int, skipping leading/trailing whitespace. More...
 
int readInt (const std::string &str)
 Parse entire string as an int, skipping leading/trailing whitespace. More...
 
bool readInt (const char *buf, int &val)
 Read entire buffer as an int, skipping leading/trailing whitespace. More...
 
bool readInt (const std::string &str, int &val)
 Read entire string as an int32_t, skipping leading/trailing whitespace. More...
 

Detailed Description

System signed integer.

Original source file int.H

Source files

Definition in file int.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; \
}

Definition at line 49 of file int.H.

Foam::min
int64_t min(const int64_t s1, const int64_t s2)
Floating/integral min. Use stdFoam::min() to preserve references.
Definition: int.H:70
Foam::max
int64_t max(const int64_t s1, const int64_t s2)
Floating integral max. Use stdFoam::max() to preserve references.
Definition: int.H:70