62#ifndef Foam_coordinateSystems_H
63#define Foam_coordinateSystems_H
82 public PtrList<coordinateSystem>
89 bool readIOcontents();
188 const bool writeOnProc =
true
207 return this->
cfind(name);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
A simple container for options an IOstream can normally have.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
constexpr PtrList() noexcept
Base class for coordinate system specification, the default coordinate system type is cartesian .
A centralized collection of named coordinate systems.
labelList findIndices(const wordRe &key) const
Identical to the indices() method (AUG-2018).
labelList indices(const wordRe &key) const
Find and return indices for all matches.
const coordinateSystem * cfind(const word &name) const
Return pointer to named coordinateSystem or nullptr on error.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc=true) const
Write using stream options.
static const coordinateSystems & New(const objectRegistry &obr)
Return previously registered or read construct from "constant".
wordList toc() const
Identical to names().
bool writeData(Ostream &os) const
Write data.
const coordinateSystem & lookup(const word &name) const
Return reference to named coordinateSystem or FatalErrror.
void operator=(const coordinateSystems &)=delete
No copy assignment.
coordinateSystems(const coordinateSystems &)=delete
No copy construct.
TypeNameNoDebug("coordinateSystems")
Declare type-name, virtual type (without debug switch).
const coordinateSystem * lookupPtr(const word &name) const
Deprecated(2020-03) find named coordinateSystem or nullptr.
wordList names() const
A list of the coordinate-system names.
label findIndex(const wordRe &key) const
Find and return index for the first match, return -1 if not found.
Registry of regIOobjects.
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< word > wordList
List of word.
List< label > labelList
A List of labels.
labelList findIndices(const ListType &input, typename ListType::const_reference val, label start=0)
Linear search to find all occurrences of given element.
#define FOAM_DEPRECATED_FOR(since, replacement)
Trait for specifying global vs. local IOobject file types.