Loading...
Searching...
No Matches
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

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

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 46 of file int.H.