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