Go to the documentation of this file.
82 #ifndef UOListStream_H
83 #define UOListStream_H
123 buf_(buffer, nbytes),
156 inline label
size()
const
164 buf_.pubseekpos(0, std::ios_base::out);
238 template<
int SizeMin>
const UList< char > list() const
Const UList access to the characters written (shallow copy).
std::streamsize capacity() const
The buffer capacity.
UOListStream(char *buffer, size_t nbytes, streamFormat format=ASCII, versionNumber version=currentVersion)
Construct using specified buffer and number of bytes.
T * data() noexcept
Return a pointer to the first data element.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
T * data()
Return a pointer to the first data element.
stream_type stream_
The stream.
UList< char > list()
Non-const UList access to the characters written (shallow copy).
void printBufInfo(Ostream &os) const
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number (2.0)
label capacity() const noexcept
Size of the underlying storage.
UOListStreamAllocator(char *buffer, size_t nbytes)
Construct for character array and number of bytes.
std::streamsize tellp() const
The buffer put position.
Representation of a major/minor version number.
An output streambuf for memory access.
An stream/stream-buffer allocator for external buffers.
OSstream(const OSstream &)=default
Copy construct.
Generic output stream using a standard (STL) stream.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
An OSstream attached to an unallocated external buffer.
virtual void rewind()
Rewind the stream, clearing any old errors.
void setGood()
Set stream to be good.
const UList< char > list() const
Const UList access to the characters written (shallow copy).
A 1D vector of objects of type <T> with a fixed length <N>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void rewind()
Move to buffer start, clear errors.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
virtual void print(Ostream &os) const
Print stream description to Ostream.
void printBufInfo(Ostream &os) const
Some information about the output buffer position/capacity.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Vector< label > N(dict.get< Vector< label >>("N"))
label capacity() const
The current list output capacity.
memorybuf::out buf_
The stream buffer.
Database for solution data, solver performance and other reduced data.