fieldMapper Class Referenceabstract

Abstract base class for field mapping. More...

Inheritance diagram for fieldMapper:

Public Member Functions

 fieldMapper ()
 Null constructor. More...
 
virtual ~fieldMapper ()
 Destructor. More...
 
virtual bool hasUnmapped () const =0
 Are there unmapped values? I.e. do all size() elements get. More...
 
 FOR_ALL_FIELD_TYPES (DEFINE_FIELD_MAPPER_OPERATOR,=0)
 Map a field. More...
 
virtual void operator() (Field< label > &f, const Field< label > &mapF) const =0
 Map a label field. More...
 
virtual tmp< Field< label > > operator() (const Field< label > &mapF) const =0
 
template<class Type >
void operator() (Field< Type > &f, const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
tmp< Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 

Detailed Description

Abstract base class for field mapping.

Definition at line 47 of file fieldMapper.H.

Constructor & Destructor Documentation

◆ fieldMapper()

fieldMapper ( )
inline

Null constructor.

Definition at line 54 of file fieldMapper.H.

◆ ~fieldMapper()

virtual ~fieldMapper ( )
inlinevirtual

Destructor.

Definition at line 59 of file fieldMapper.H.

References DEFINE_FIELD_MAPPER_OPERATOR, f(), fieldMapper::FOR_ALL_FIELD_TYPES(), fieldMapper::hasUnmapped(), and fieldMapper::operator()().

Here is the call graph for this function:

Member Function Documentation

◆ hasUnmapped()

◆ FOR_ALL_FIELD_TYPES()

FOR_ALL_FIELD_TYPES ( DEFINE_FIELD_MAPPER_OPERATOR  )

Map a field.

Referenced by fieldMapper::~fieldMapper().

Here is the caller graph for this function:

◆ operator()() [1/5]

virtual void operator() ( Field< label > &  f,
const Field< label > &  mapF 
) const
pure virtual

Map a label field.

Referenced by fieldMapper::~fieldMapper().

Here is the caller graph for this function:

◆ operator()() [2/5]

virtual tmp<Field< label > > operator() ( const Field< label > &  mapF) const
pure virtual

◆ operator()() [3/5]

void operator() ( Field< Type > &  f,
const tmp< Field< Type >> &  tmapF 
) const

Map a temporary field.

Definition at line 32 of file fieldMapperTemplates.C.

◆ operator()() [4/5]

tmp<Field<Type> > operator() ( const tmp< Field< Type >> &  tmapF) const

Map a temporary field.

◆ operator()() [5/5]

Foam::tmp<Foam::Field<Type> > operator() ( const tmp< Field< Type >> &  tmapF) const

Definition at line 44 of file fieldMapperTemplates.C.

References tf.


The documentation for this class was generated from the following files: