40#ifndef Foam_pointMapper_H
41#define Foam_pointMapper_H
68 const label mapperLen_;
71 label nInsertedObjects_;
80 mutable std::unique_ptr<labelList> directAddrPtr_;
83 mutable std::unique_ptr<labelListList> interpAddrPtr_;
86 mutable std::unique_ptr<scalarListList> weightsPtr_;
89 mutable std::unique_ptr<labelList> insertedObjectsPtr_;
95 void calcAddressing()
const;
128 virtual bool direct()
const
151 return bool(nInsertedObjects_);
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
morphFieldMapper()=default
Default construct.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolation weights.
virtual bool hasUnmapped() const
Are there unmapped values? i.e. do all size() elements get value.
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual label size() const
The mapper size.
const labelList & insertedObjectLabels() const
Return list of inserted points.
virtual ~pointMapper()
Destructor.
virtual label sizeBeforeMapping() const
Return size before mapping.
pointMapper(const pointMapper &)=delete
No copy construct.
void operator=(const pointMapper &)=delete
No copy assignment.
bool insertedObjects() const noexcept
Are there any inserted points.
virtual bool direct() const
Is the mapping direct.
Mesh representing a set of points created from polyMesh.
List< scalarList > scalarListList
List of scalarList.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
UList< label > labelUList
A UList of labels.