33 return selectionType_;
45 if (selectionType_ == selectionTypes::all)
49 else if (selectionType_ == selectionTypes::cellZone)
51 return mesh_.cellZones()[cellSetName_];
62 if (selectionType_ == selectionTypes::all)
64 return mesh_.nCells();
75 return selectionType_ == selectionTypes::all;
81 if (selectionType_ == selectionTypes::all)
85 else if (selectionType_ == selectionTypes::cellZone)
87 return mesh_.cellZones()[cellSetName_][i];
void size(const label)
Override size to be inconsistent with allocated storage.
const word & cellSetName() const
Return const access to the name of cellSet.
label celli(const label i) const
Return the cell index corresponding to the cell set index.
bool all() const
Return true if the set comprises all the cells.
labelUList cells() const
Return const access to the cell set.
label nCells() const
Return the number of cells in the set.
const selectionTypes & selectionType() const
Return const access to the cell selection type.
selectionTypes
Enumeration for selection mode types.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.