30 inline Foam::label Foam::ensightCells::add(
const elemType etype, label
id)
33 const label
index = offsets_[etype] + sizes_[etype]++;
51 return elemNames[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>.
A range or interval of labels defined by a start and a size.
label size() const noexcept
Processor-local size of all elements.
labelRange range(const elemType etype) const
Processor-local offset/size of element type.
void decrCellIds(const label off)
Decrease face ids by specified offset value.
label total() const noexcept
Same as totalSize()
SubList< T > slice(const label pos, label len=-1)
Return SubList slice (non-const access) - no range checking.
elemType
Supported ensight 'Cell' element types.
void incrCellIds(const label off)
Increase cell ids by specified offset value.
const labelList & addressing() const noexcept
Element addressing.
label index() const noexcept
The index in a list (0-based)
static const char * key(const elemType etype) noexcept
The ensight element name for the specified 'Cell' type.
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.
bool manifold() const noexcept
Manifold mesh cells detected? Globally consistent quantity.
const labelList & cellIds() const
Processor-local cell ids of all elements.