An stream/stream-buffer input allocator with List storage. More...
Public Member Functions | |
void | clearStorage () |
Clear storage. More... | |
void | swap (List< char > &list) |
Transfer contents to other List. More... | |
label | size () const |
The current get position in the buffer. More... | |
Public Member Functions inherited from UIListStreamAllocator | |
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 Member Functions | |
IListStreamAllocator () | |
Default construct. More... | |
IListStreamAllocator (List< char > &&buffer) | |
Move construct from List. More... | |
template<int SizeMin> | |
IListStreamAllocator (DynamicList< char, SizeMin > &&buffer) | |
Move construct from DynamicList. More... | |
void | reset_gbuffer () |
Convenience method to address the underlying List storage. More... | |
Protected Member Functions inherited from UIListStreamAllocator | |
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 |
Additional Inherited Members | |
Protected Types inherited from UIListStreamAllocator | |
typedef std::istream | stream_type |
Protected Attributes inherited from UIListStreamAllocator | |
memorybuf::in | buf_ |
The stream buffer. More... | |
stream_type | stream_ |
The stream. More... | |
An stream/stream-buffer input allocator with List storage.
Definition at line 54 of file IListStream.H.
|
inlineprotected |
Default construct.
Definition at line 66 of file IListStream.H.
|
inlineprotected |
Move construct from List.
Definition at line 75 of file IListStream.H.
|
inlineprotected |
Move construct from DynamicList.
Definition at line 85 of file IListStream.H.
|
inlineprotected |
Convenience method to address the underlying List storage.
Definition at line 97 of file IListStream.H.
References UIListStreamAllocator::reset().
Referenced by IListStreamAllocator::clearStorage(), and IListStreamAllocator::swap().
|
inline |
Clear storage.
Definition at line 118 of file IListStream.H.
References List< T >::clear(), and IListStreamAllocator::reset_gbuffer().
|
inline |
Transfer contents to other List.
Definition at line 127 of file IListStream.H.
References UIListStreamAllocator::list(), IListStreamAllocator::reset_gbuffer(), and UList< T >::swap().
|
inline |
The current get position in the buffer.
Definition at line 194 of file UIListStream.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.