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 121 of file UIListStream.H.
|
protected |
Definition at line 127 of file UIListStream.H.
|
inlineprotected |
Construct for character array and number of bytes.
Definition at line 139 of file UIListStream.H.
|
inlineprotected |
Reset buffer pointers.
Definition at line 149 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::resetg().
Referenced by IListStreamAllocator::reset_gbuffer().
|
inlineprotected |
Definition at line 154 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::printBufInfo().
Referenced by IListStream::print().
|
inline |
Const UList access to the input characters (shallow copy).
Definition at line 164 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 170 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::list().
|
inline |
The list size.
Definition at line 176 of file UIListStream.H.
References UIListStreamAllocator::buf_, and memorybuf::in::capacity().
|
inline |
Position of the get buffer.
Definition at line 182 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 188 of file UIListStream.H.
References UIListStreamAllocator::buf_, and UIListStreamAllocator::stream_.
Referenced by IListStream::rewind(), and UIListStream::rewind().
|
protected |
The stream buffer.
Definition at line 130 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 133 of file UIListStream.H.
Referenced by UIListStreamAllocator::rewind().