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