An stream/stream-buffer allocator for external buffers. More...
Public Member Functions | |
const UList< char > | list () const |
Const UList access to the characters written (shallow copy). More... | |
UList< char > | list () |
Non-const UList access to the characters written (shallow copy). More... | |
label | capacity () const |
The current list output capacity. More... | |
label | size () const |
The current output position in the buffer, which is also the addressed list size. More... | |
void | rewind () |
Move to buffer start, clear errors. More... | |
Protected Types | |
typedef std::ostream | stream_type |
Protected Member Functions | |
UOListStreamAllocator (char *buffer, size_t nbytes) | |
Construct for character array and number of bytes. More... | |
void | printBufInfo (Ostream &os) const |
Protected Attributes | |
memorybuf::out | buf_ |
The stream buffer. More... | |
stream_type | stream_ |
The stream. More... | |
An stream/stream-buffer allocator for external buffers.
Definition at line 98 of file UOListStream.H.
|
protected |
Definition at line 104 of file UOListStream.H.
|
inlineprotected |
Construct for character array and number of bytes.
Definition at line 122 of file UOListStream.H.
|
inlineprotected |
Definition at line 128 of file UOListStream.H.
References UOListStreamAllocator::buf_, os(), and memorybuf::out::printBufInfo().
|
inline |
Const UList access to the characters written (shallow copy).
Definition at line 140 of file UOListStream.H.
References UOListStreamAllocator::buf_, and memorybuf::out::list().
|
inline |
Non-const UList access to the characters written (shallow copy).
Definition at line 148 of file UOListStream.H.
References UOListStreamAllocator::buf_, and memorybuf::out::list().
|
inline |
The current list output capacity.
Definition at line 156 of file UOListStream.H.
References UOListStreamAllocator::buf_, and memorybuf::out::capacity().
|
inline |
The current output position in the buffer, which is also the addressed list size.
Definition at line 165 of file UOListStream.H.
References UOListStreamAllocator::buf_, and memorybuf::out::tellp().
|
inline |
Move to buffer start, clear errors.
Definition at line 173 of file UOListStream.H.
References UOListStreamAllocator::buf_, and UOListStreamAllocator::stream_.
Referenced by UOListStream::rewind().
|
protected |
The stream buffer.
Definition at line 109 of file UOListStream.H.
Referenced by UOListStreamAllocator::capacity(), UOListStreamAllocator::list(), UOListStreamAllocator::printBufInfo(), UOListStreamAllocator::rewind(), and UOListStreamAllocator::size().
|
protected |
The stream.
Definition at line 114 of file UOListStream.H.
Referenced by UOListStreamAllocator::rewind().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.