31Foam::ensightFaces::add(
const elemType etype, label
id,
bool flip)
34 const label
index = offsets_[etype] + sizes_[etype]++;
40 flipMap_[
index] = flip;
69 return (offsets_[etype+1] - offsets_[etype]);
75 return labelRange(offsets_[etype], offsets_[etype+1] - offsets_[etype]);
100 return (!flipMap_.empty() && flipMap_.size() ==
size());
A 1D vector of objects of type <T> with a fixed length <N>.
SubList< T > slice(const label pos, label len=-1)
Return SubList slice (non-const access) - no range checking.
bool usesFlipMap() const
True for non-zero flip-map that spans the addresses.
void decrFaceIds(const label off)
Decrease face ids by specified offset value.
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 'Face' type.
const labelList & faceIds() const noexcept
Processor-local face ids of all elements.
const labelList & faceOrder() const noexcept
Processor-local face order (where applicable).
label total() const noexcept
Same as totalSize.
void incrFaceIds(const label off)
Increase face ids by specified offset value.
label size(const elemType etype) const
Processor-local size of the specified element type.
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
elemType
Supported ensight 'Face' element types.
label size() const noexcept
Processor-local size of all elements.
const boolList & flipMap() const
Processor-local flip-map of all elements.
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.
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.
List< bool > boolList
A List of bools.
UList< label > labelUList
A UList of labels.