FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

label.H File Reference


Detailed Description

Definition in file label.H.

#include <climits>
#include <cstdlib>
#include "src/OpenFOAM/primitives/pTraits/pTraits.H"
#include "src/OpenFOAM/primitives/direction/direction.H"
Include dependency graph for label.H:

Go to the source code of this file.

Classes

class  pTraits< label >
 template specialization for pTraits<label> More...

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Defines

#define  FOAM_LABEL_MAX   2000000000
#define  MAXMIN(retType, type1, type2)

Functions

label  pow (label a, label b)
 Raise one label to the power of another.
label  factorial (label n)
 Return factorial(n) : 0 <= n <= 12.
char  max (const char s1, const char s2)
char  min (const char s1, const char s2)
short  max (const short s1, const short s2)
short  min (const short s1, const short s2)
int  max (const int s1, const int s2)
int  min (const int s1, const int s2)
long  max (const long s1, const long s2)
long  min (const long s1, const long s2)
long long  max (const long long s1, const long long s2)
long long  min (const long long s1, const long long s2)
unsigned char  max (const unsigned char s1, const unsigned char s2)
unsigned char  min (const unsigned char s1, const unsigned char s2)
unsigned short  max (const unsigned short s1, const unsigned short s2)
unsigned short  min (const unsigned short s1, const unsigned short s2)
unsigned int  max (const unsigned int s1, const unsigned int s2)
unsigned int  min (const unsigned int s1, const unsigned int s2)
unsigned long  max (const unsigned long s1, const unsigned long s2)
unsigned long  min (const unsigned long s1, const unsigned long s2)
unsigned long long  max (const unsigned long long s1, const unsigned long long s2)
unsigned long long  min (const unsigned long long s1, const unsigned long long s2)
long  max (const int s1, const long s2)
long  min (const int s1, const long s2)
long long  max (const int s1, const long long s2)
long long  min (const int s1, const long long s2)
long long  max (const long long s1, const int s2)
long long  min (const long long s1, const int s2)
label &  setComponent (label &l, const direction)
label  component (const label l, const direction)
label  mag (const label l)
label  sign (const label s)
label  pos (const label s)
label  neg (const label s)

Define Documentation

#define FOAM_LABEL_MAX   2000000000

Definition at line 46 of file label.H.

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

Definition at line 200 of file label.H.