40#ifndef Foam_cellMapper_H
41#define Foam_cellMapper_H
67 const label mapperLen_;
70 label nInsertedObjects_;
79 mutable std::unique_ptr<labelList> directAddrPtr_;
82 mutable std::unique_ptr<labelListList> interpAddrPtr_;
85 mutable std::unique_ptr<scalarListList> weightsPtr_;
88 mutable std::unique_ptr<labelList> insertedObjectsPtr_;
94 void calcAddressing()
const;
120 virtual label
size()
const;
126 virtual bool direct()
const
149 return bool(nInsertedObjects_);
cellMapper(const cellMapper &)=delete
No copy construct.
virtual ~cellMapper()
Destructor.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolaion weights.
virtual bool hasUnmapped() const
Are there unmapped values?
virtual const labelUList & directAddressing() const
Return direct addressing.
void operator=(const cellMapper &)=delete
No copy assignment.
virtual label size() const
The mapper size.
virtual const labelList & insertedObjectLabels() const
Return list of inserted cells.
virtual label sizeBeforeMapping() const
Return size before mapping.
virtual bool insertedObjects() const
Are there any inserted cells.
virtual bool direct() const
Is the mapping direct.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
morphFieldMapper()=default
Default construct.
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.