34bool Foam::IOList<T>::readIOcontents()
36 if (isReadRequired() || (isReadOptional() && headerOk()))
38 readStream(typeName) >> *
this;
48Foam::label Foam::IOList<T>::readIOsize()
52 if (isReadRequired() || (isReadOptional() && headerOk()))
54 Istream& is = readStream(typeName);
58 const bool quick = tok.isLabel();
63 count = tok.labelToken();
113 if (!readIOcontents())
128 if (!readIOcontents())
176 IOList<T> reader(rio);
177 reader.readOpt(rOpt);
179 return reader.readIOsize();
195 return List<T>(std::move(
static_cast<List<T>&
>(reader)));
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
A IOList wrapper for writing external List data.
IOListRef()=delete
No default construct.
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
virtual bool writeData(Ostream &os) const
The writeData method for regIOobject write operation.
IOList(const IOList &)=default
Default copy construct.
static List< T > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
static void writeContents(const IOobject &io, const UList< T > &content)
Write contents. The IOobject is never registered.
static label readContentsSize(const IOobject &io)
Read and return content size, -1 if not read.
@ NO_REGISTER
Do not request registration (bool: false).
readOption readOpt() const noexcept
Get the read option.
@ NO_READ
Nothing to be read.
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void warnNoRereading() const
Helper: warn that type does not support re-reading.
void resetHeader(const word &newName=word::null)
Clear various bits (headerClassName, note, sizeof...) that would be obtained when reading from a file...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
void operator=(const UList< T > &list)
Assignment to UList operator. Takes linear time.
void resize(const label len)
Adjust allocated size of list.
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...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
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 representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
OBJstream os(runTime.globalPath()/outputName)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.