63 bool readIOcontents();
99 virtual ~IOMap() =
default;
105 virtual bool global()
const
144struct is_globalIOobject<IOMap<
T>> : std::true_type {};
friend Ostream & operator(Ostream &, const HashTable< T, label, Hash > &tbl)
label size() const noexcept
A Map of objects of type <T> with automated input and output. Is a global object; i....
void operator=(const IOMap< T > &rhs)
Copy assignment of entries.
virtual ~IOMap()=default
Destructor.
IOMap(const IOMap &)=default
Default copy construct.
bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
virtual bool global() const
This object is global.
void operator=(IOMap< T > &&rhs)
Move assignment of entries.
TypeName("Map")
Runtime type information.
virtual fileName filePath() const
Return complete path + object name if the file exists.
Map< T > content_type
The underlying content type.
static Map< T > readContents(const IOobject &io)
Read and return contents. The IOobject will not be registered.
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.
A HashTable to objects of type <T> with a label key.
constexpr Map() noexcept=default
Default construct: empty without allocation (capacity=0).
void operator=(const this_type &rhs)
Copy assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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...
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)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Trait for specifying global vs. local IOobject file types.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.