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