78 List<char>(std::move(buffer)),
86 List<char>(std::move(buffer)),
167 template<
int SizeMin>
186 std::streampos
pos()
const
215 #ifdef Foam_IOstream_extras
236 IListStream(std::move(buffer), IOstreamOption(fmt, ver))
241 template<
int SizeMin>
244 DynamicList<char,SizeMin>&& buffer,
An stream/stream-buffer input allocator with List storage.
void reset_gbuffer()
Convenience method to address the underlying List storage.
IListStreamAllocator()
Default construct.
void clearStorage()
Clear storage.
IListStreamAllocator(DynamicList< char, SizeMin > &&buffer)
Move construct from DynamicList.
label size() const
The current get position in the buffer.
void swap(List< char > &list)
Transfer contents to other List.
IListStreamAllocator(List< char > &&buffer)
Move construct from List.
An stream/stream-buffer input allocator for a externally allocated list.
const UList< char > list() const
Const UList access to the input characters (shallow copy).
label size() const
The list size.
stream_type stream_
The stream.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
An ISstream with internal List storage. Always UNCOMPRESSED.
Istream & operator()() const
A non-const reference to const Istream.
IListStream(DynamicList< char, SizeMin > &&buffer, IOstreamOption streamOpt=IOstreamOption())
Move construct from DynamicList.
virtual void print(Ostream &os) const
Print stream description to Ostream.
IListStream(::Foam::List< char > &&buffer, IOstreamOption streamOpt=IOstreamOption())
Move construct from List.
IListStream(IOstreamOption streamOpt=IOstreamOption())
Default construct with an empty list.
std::streampos pos() const
Return the current get position in the buffer.
virtual void rewind()
Rewind the stream, clearing any old errors.
Representation of a major/minor version number.
The IOstreamOption is a simple container for options an IOstream can normally have.
versionNumber version() const noexcept
Get the stream version.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
streamFormat format() const noexcept
Get the current stream format.
streamFormat
Data format (ascii | binary)
static const versionNumber currentVersion
The current version number (2.0)
void setGood() noexcept
Set stream state to be good.
Generic input stream using a standard (STL) stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void clear()
Clear the list, i.e. set size to zero.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Database for solution data, solver performance and other reduced data.
void rewind() const
Rewind the output stream (master only).
void reset()
Reset to defaults.
std::streamsize tellg() const
OBJstream os(runTime.globalPath()/outputName)