32 #ifndef forwardOrAssignFieldMapper_H
33 #define forwardOrAssignFieldMapper_H
63 virtual void unmappedError()
const;
79 const Type& unmappedVal
87 const Type& unmappedVal
115 addressing_(addressing),
116 hasUnmapped_(!addressing.empty() &&
min(addressing) < 0)
152 const word& fieldBaseTypeName_;
155 const word& fieldTypeName_;
158 const word& patchName_;
161 const word& internalFieldName_;
168 virtual void unmappedError()
const;
176 template<
class FieldType>
179 const FieldType& field,
184 fieldBaseTypeName_(FieldType::typeName),
185 fieldTypeName_(field.
type()),
186 patchName_(field.patch().
name()),
187 internalFieldName_(field.internalField().
name())
Pre-declare SubField and related Field type.
Class used to lazily evaluate fields.
Abstract base class for field mapping.
Forward field mapper that permits assigning a value on unmapped elements.
virtual ~forwardOrAssignFieldMapper()
Destructor.
DEFINE_FIELD_MAPPER_MAP_OPERATOR(label,)
Map a label field.
DEFINE_FIELD_MAPPER_MAP_OR_ASSIGN_OPERATOR(label,)
Map or assign a label field.
FOR_ALL_FIELD_TYPES(DEFINE_FIELD_MAPPER_MAP_OPERATOR,)
Map a field.
forwardOrAssignFieldMapper(const labelUList &addressing)
Construct given addressing.
virtual ~forwardOrAssignPatchFieldMapper()
Destructor.
forwardOrAssignPatchFieldMapper(const FieldType &field, const labelUList &addressing)
Construct given a field and addressing.
A class for managing temporary objects.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.