38#ifndef Foam_GlobalIOField_H
39#define Foam_GlobalIOField_H
101 virtual bool global()
const
123 using Field<Type>::operator=;
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void operator=(const Field< Type > &)
Copy assignment.
constexpr Field() noexcept
Default construct.
IOField with global data (so optionally read from master).
GlobalIOField(const IOobject &io, const tmp< Field< Type > > &tfld)
Construct by copying/moving tmp content.
void operator=(const GlobalIOField< Type > &rhs)
Copy assignment of entries.
GlobalIOField(const IOobject &io, Field< Type > &&content)
Construct by transferring the Field content.
GlobalIOField(const IOobject &io, const UList< Type > &content)
Construct from IOobject and copy of List/Field content.
bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
virtual bool global() const
The object is global.
GlobalIOField(const IOobject &io)
Construct from IOobject. Will be zero size if not read.
void operator=(GlobalIOField< Type > &&rhs)
Move assignment of entries.
static Field< Type > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
GlobalIOField(const IOobject &io, const label len)
Construct from IOobject and field size (if not read).
TypeName("Field")
Runtime type information.
virtual ~GlobalIOField()=default
Destructor.
virtual fileName filePath() const
Return complete path + object name if the file exists either in the case/processor or case,...
virtual bool readData(Istream &is)
The readData method for regIOobject read operation.
Field< Type > content_type
The underlying content type.
GlobalIOField(const GlobalIOField &)=default
Default copy construct.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
fileName globalFilePath(const word &typeName, const bool search=true) const
Redirect to fileHandler filePath, searching up if in parallel.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A class for handling file names.
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 class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.