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 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.
void size(const label n)
Older name for setAddressableSize.
ensightPart()
Default construct. Index=0, identifier = -1.
label size() const noexcept
Processor-local size of all elements.
bool empty() const noexcept
True if List is empty (ie, size() is zero)
void decrAddressing(const label off)
Decrease addressing by specified offset value.
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information...
virtual ~ensightPart()=default
Destructor.
bool empty() const noexcept
Processor-local test for any elements.
const string & name() const noexcept
The part name or description.
label identifier() const noexcept
OpenFOAM identifier (patch, zone, etc), -1 when not in use.
void clear()
Clear the list, i.e. set size to zero.
const labelList & addressing() const noexcept
Element addressing.
label operator[](const label i) const
Processor-local element id from linear-list of addresses.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
OBJstream os(runTime.globalPath()/outputName)
label index() const noexcept
The index in a list (0-based)
TypeNameNoDebug("ensightPart")
Declare type-name, virtual type (without debug switch)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void incrAddressing(const label off)
Increase addressing by specified offset value.
void rename(const string &value)
Change the part name or description.