38#ifndef Foam_ensightPart_H
39#define Foam_ensightPart_H
151 return address_.
empty();
157 return address_.size();
167 void rename(
const string& value)
173 void rename(
string&& value)
175 name_ = std::move(value);
void clear()
Clear the list, i.e. set size to zero.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool empty() const noexcept
True if List is empty (ie, size() is zero).
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information.
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
void rename(const string &value)
Change the part name or description.
void incrAddressing(const label off)
Increase addressing by specified offset value.
bool empty() const noexcept
Processor-local test for any elements.
virtual ~ensightPart()=default
Destructor.
label operator[](const label i) const
Processor-local element id from linear-list of addresses.
labelList & addressing() noexcept
Element addressing.
label & index() noexcept
The index in a list (0-based).
label index() const noexcept
The index in a list (0-based).
void rename(string &&value)
Change the part name or description.
const string & name() const noexcept
The part name or description.
const labelList & addressing() const noexcept
Element addressing.
virtual void writeDict(Ostream &os, const bool full=false) const
Write information about the object as a dictionary, optionally write all element addresses.
label size() const noexcept
Processor-local size of all elements.
ensightPart()
Default construct. Index=0, identifier = -1.
void clear()
Clear element addressing.
label identifier() const noexcept
OpenFOAM identifier (patch, zone, etc), -1 when not in use.
void decrAddressing(const label off)
Decrease addressing by specified offset value.
TypeNameNoDebug("ensightPart")
Declare type-name, virtual type (without debug switch).
label & identifier() noexcept
OpenFOAM identifier (patch, zone, etc), -1 when not in use.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.