51#ifndef OFstreamCollator_H
52#define OFstreamCollator_H
78 const word objectType_;
90 const word& objectType,
100 objectType_(objectType),
105 streamOpt_(streamOpt),
107 headerEntries_(headerEntries)
113 off_t totalSize = data_.size();
116 if (slaveData_.
set(i))
118 totalSize += slaveData_[i].
size();
129 const off_t maxBufferSize_;
131 mutable std::mutex mutex_;
151 static bool writeFile
154 const word& objectType,
156 const string& masterData,
165 static void* writeAll(
void *threadarg);
169 void waitForBufferSpace(
const off_t wantedSize)
const;
199 const word& objectType,
204 const bool useThread =
true,
A FIFO stack based on a singly-linked list.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual ~OFstreamCollator()
Destructor.
TypeName("OFstreamCollator")
void waitAll()
Wait for all thread actions to have finished.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const T * set(const label i) const
A List obtained as a section of another List.
label size() const noexcept
The number of elements in the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Database for solution data, solver performance and other reduced data.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
A class for handling words, derived from Foam::string.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
#define forAll(list, i)
Loop across all elements in list.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
const bool writeData(pdfDictionary.get< bool >("writeData"))