A templated direct mapper for the given FieldMapper type. More...
Public Types | |
typedef FieldMapperType | mapper_type |
The base mapper type. More... | |
Public Member Functions | |
DirectFieldMapper (const labelUList &directAddr, const bool checkUnmapped=true) | |
Construct given addressing, check for unmapped (negative) values. More... | |
virtual | ~DirectFieldMapper ()=default |
Destructor. More... | |
virtual bool | hasDirectAddressing () const |
True if directAddressing is not the null object (unallocated) More... | |
virtual label | size () const |
The mapper size is given by the size of the direct addressing. More... | |
virtual bool | direct () const |
It is a direct mapper. More... | |
virtual bool | hasUnmapped () const |
Any unmapped values? More... | |
virtual bool & | hasUnmapped () |
Allow modification. More... | |
virtual const labelUList & | directAddressing () const |
Return the direct addressing values. More... | |
A templated direct mapper for the given FieldMapper type.
Definition at line 39 of file directFieldMapper.H.
typedef FieldMapperType mapper_type |
The base mapper type.
Definition at line 92 of file directFieldMapper.H.
|
inlineexplicit |
Construct given addressing, check for unmapped (negative) values.
Definition at line 101 of file directFieldMapper.H.
|
virtualdefault |
Destructor.
|
inlinevirtual |
True if directAddressing is not the null object (unallocated)
Definition at line 123 of file directFieldMapper.H.
References Foam::notNull().
|
inlinevirtual |
The mapper size is given by the size of the direct addressing.
Definition at line 131 of file directFieldMapper.H.
References UList< T >::size().
|
inlinevirtual |
It is a direct mapper.
Definition at line 139 of file directFieldMapper.H.
|
inlinevirtual |
Any unmapped values?
Definition at line 147 of file directFieldMapper.H.
Referenced by fvMeshAdder::MapSurfaceField(), and fvMeshAdder::MapVolField().
|
inlinevirtual |
Allow modification.
Definition at line 155 of file directFieldMapper.H.
|
inlinevirtual |
Return the direct addressing values.
Definition at line 163 of file directFieldMapper.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.