An stream/stream-buffer input allocator for a externally allocated list. More...
Public Member Functions | |
const UList< char > | list () const |
Const UList access to the input characters (shallow copy). More... | |
UList< char > | list () |
Non-const UList access to the input characters (shallow copy). More... | |
label | size () const |
The list size. More... | |
std::streampos | tellg () const |
Position of the get buffer. More... | |
void | rewind () |
Move to buffer start, clear errors. More... | |
Protected Types | |
typedef std::istream | stream_type |
Protected Member Functions | |
UIListStreamAllocator (char *buffer, size_t nbytes) | |
Construct for character array and number of bytes. More... | |
void | reset (char *buffer, size_t nbytes) |
Reset buffer pointers. More... | |
void | printBufInfo (Ostream &os) const |
Protected Attributes | |
memorybuf::in | buf_ |
The stream buffer. More... | |
stream_type | stream_ |
The stream. More... | |
An stream/stream-buffer input allocator for a externally allocated list.
Definition at line 120 of file UIListStream.H.
|
protected |
Definition at line 126 of file UIListStream.H.
|
inlineprotected |
Construct for character array and number of bytes.
Definition at line 138 of file UIListStream.H.
|
inlineprotected |
Reset buffer pointers.
Definition at line 148 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::resetg().
Referenced by IListStreamAllocator::reset_gbuffer().
|
inlineprotected |
Definition at line 153 of file UIListStream.H.
References UIListStreamAllocator::buf_, os(), and memorybuf::in::printBufInfo().
Referenced by IListStream::print().
|
inline |
Const UList access to the input characters (shallow copy).
Definition at line 163 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::list().
Referenced by IListStreamAllocator::swap().
|
inline |
Non-const UList access to the input characters (shallow copy).
Definition at line 169 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::list().
|
inline |
The list size.
Definition at line 175 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::capacity().
|
inline |
Position of the get buffer.
Definition at line 181 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::tellg().
Referenced by IListStream::pos(), and UIListStream::pos().
|
inline |
Move to buffer start, clear errors.
Definition at line 187 of file UIListStream.H.
References UIListStreamAllocator::buf_, and UIListStreamAllocator::stream_.
Referenced by IListStream::rewind(), and UIListStream::rewind().
|
protected |
The stream buffer.
Definition at line 129 of file UIListStream.H.
Referenced by UIListStreamAllocator::list(), UIListStreamAllocator::printBufInfo(), UIListStreamAllocator::reset(), UIListStreamAllocator::rewind(), UIListStreamAllocator::size(), and UIListStreamAllocator::tellg().
|
protected |
The stream.
Definition at line 132 of file UIListStream.H.
Referenced by UIListStreamAllocator::rewind().