30inline Foam::label Foam::ensightCells::add(
const elemType etype, label
id)
33 const label
index = offsets_[etype] + sizes_[etype]++;
69 return (offsets_[etype+1] - offsets_[etype]);
75 return labelRange(offsets_[etype], offsets_[etype+1] - offsets_[etype]);
A 1D vector of objects of type <T> with a fixed length <N>.
labelRange range(const elemType etype) const
Processor-local offset/size of element type.
static const char * key(const elemType etype) noexcept
The ensight element name for the specified 'Cell' type.
label total() const noexcept
Same as totalSize().
bool manifold() const noexcept
Manifold mesh cells detected? Globally consistent quantity.
void incrCellIds(const label off)
Increase cell ids by specified offset value.
static const char * elemNames[nTypes]
The ensight 'Cell' element type names.
elemType
Supported ensight 'Cell' element types.
label size() const noexcept
Processor-local size of all elements.
void decrCellIds(const label off)
Decrease face ids by specified offset value.
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.
const labelList & cellIds() const
Processor-local cell ids of all elements.
void incrAddressing(const label off)
Increase addressing by specified offset value.
label index() const noexcept
The index in a list (0-based).
const labelList & addressing() const noexcept
Element addressing.
void decrAddressing(const label off)
Decrease addressing by specified offset value.
A range or interval of labels defined by a start and a size.
List< label > labelList
A List of labels.
UList< label > labelUList
A UList of labels.