59 template<
class Type,
class FieldOp>
70 template<
class Type,
class FieldOp>
71 using TmpFieldTypeIfFieldOp =
72 typename std::enable_if
74 !std::is_base_of<Field<Type>, FieldOp>::value,
87 const Type& unmappedVal
95 const Type& unmappedVal
153 template<
class Type,
class FieldOp>
158 const FieldOp& unmappedOp
162 template<
class Type,
class FieldOp>
163 TmpFieldTypeIfFieldOp<Type, FieldOp> operator()
166 const FieldOp& unmappedOp
203 template<
class Type,
class FieldOp>
Pre-declare SubField and related Field type.
Class used to lazily evaluate fields.
virtual tmp< Field< Type > > operator()() const =0
Evaluate the field.
virtual ~FieldFunctor()
Destructor.
FieldFunctor()
Construct null.
Class used to lazily evaluate field-generating operators.
FieldOpFunctor(const FieldOp &op)
Construct from an operator.
virtual tmp< Field< Type > > operator()() const
Evaluate the field.
virtual ~FieldOpFunctor()
Destructor.
Abstract base class for field mapping.
FOR_ALL_FIELD_TYPES(DEFINE_FIELD_MAPPER_MAP_OPERATOR,=0)
Map a field.
virtual void operator()(Field< label > &f, const Field< label > &mapF) const =0
Map a label field.
fieldMapper()
Null constructor.
virtual ~fieldMapper()
Destructor.
A class for managing temporary objects.
#define DEFINE_FIELD_MAPPER_MAP_OR_ASSIGN_OPERATOR(Type, Modifier)
#define DEFINE_FIELD_MAPPER_MAP_OPERATOR(Type, Modifier)
Include the header files for all the primitive types that Fields are instantiated for.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.