setWriter.C File Reference
Include dependency graph for setWriter.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define TypeValueSetsConstArg(Type, nullArg)    const UPtrList<const Field<Type>>& Type##ValueSets ,
 
#define WriteTypeValueSetNames(Type, nullArg)
 
#define TypeValueSetsConstArg(Type, nullArg)    const UPtrList<const Field<Type>>& Type##ValueSets ,
 
#define WriteTypeValueSets(Type, nullArg)
 

Functions

 defineTypeNameAndDebug (setWriter, 0)
 
 defineRunTimeSelectionTable (setWriter, word)
 
 defineRunTimeSelectionTable (setWriter, dict)
 

Detailed Description

Original source file setWriter.C

Definition in file setWriter.C.

Macro Definition Documentation

◆ TypeValueSetsConstArg [1/2]

#define TypeValueSetsConstArg (   Type,
  nullArg 
)     const UPtrList<const Field<Type>>& Type##ValueSets ,

◆ WriteTypeValueSetNames

#define WriteTypeValueSetNames (   Type,
  nullArg 
)
Value:
if (Type##ValueSets.set(fieldi)) \
{ \
const label nCmpt = pTraits<Type>::nComponents; \
for (direction cmpt = 0; cmpt < nCmpt; ++ cmpt) \
{ \
if (!first) writeValueSeparator(os); \
\
const bool separator = \
!valueSetNames[fieldi].empty() \
&& strlen(pTraits<Type>::componentNames[cmpt]) > 0; \
\
const word w = \
valueSetNames[fieldi] \
+ (separator ? "_" : "") \
+ pTraits<Type>::componentNames[cmpt]; \
\
writeWord(w, os, align, first*alignPad); \
first = false; \
} \
}
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
labelList first(const UList< labelPair > &p)
Definition: patchToPatch.C:39
uint8_t direction
Definition: direction.H:45
for(label i=0;i< nPoints;i++)
Definition: readKivaGrid.H:23

◆ TypeValueSetsConstArg [2/2]

#define TypeValueSetsConstArg (   Type,
  nullArg 
)     const UPtrList<const Field<Type>>& Type##ValueSets ,

◆ WriteTypeValueSets

#define WriteTypeValueSets (   Type,
  nullArg 
)
Value:
if (Type##ValueSets.set(fieldi)) \
{ \
if (!first) writeValueSeparator(os); \
writeValue(Type##ValueSets[fieldi][pointi], os, align); \
first = false; \
}