35 #ifndef mapPatchChange_H
36 #define mapPatchChange_H
54 const label nOldPatches_;
102 if (patchMap_[
patchi] == -1)
119 if (patchMap_[
patchi] != -1)
129 forAll(oldToNew, oldPatchi)
131 if (oldToNew[oldPatchi] == -1)
133 oldToNew[deletedI++] = oldPatchi;
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
Class containing mesh-to-mesh mapping information after a patch change operation.
labelList deletedPatches() const
Labels (on old mesh) of deleted patches.
label nOldPatches() const
Number of old patches.
mapPatchChange(const label nOldPatches, const labelList &patchMap)
Construct from components.
labelList addedPatches() const
Labels of added patches.
const labelList & patchMap() const
Patch map. Size of current patches.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.