uiliststream Class Reference

Similar to std::istringstream, but with an externally managed input buffer. More...

Inheritance diagram for uiliststream:
[legend]
Collaboration diagram for uiliststream:
[legend]

Public Member Functions

 uiliststream (const 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 rewind ()
 Rewind the stream, clearing any old errors. More...
 

Additional Inherited Members

- Protected Member Functions inherited from memorybuf::in
 in ()=default
 Default construct. More...
 
virtual std::streamsize xsgetn (char *s, std::streamsize n)
 Get sequence of characters. More...
 
 in (char *s, std::streamsize n)
 Construct for character array (can be nullptr) and number of bytes. More...
 
void resetg (char *s, std::streamsize n)
 Reset for character array (can be nullptr) and number of bytes. More...
 
std::streamsize capacity () const
 The buffer capacity. More...
 
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...
 
void printBufInfo (Ostream &os) const
 Some information about the input buffer position/capacity. More...
 
std::streamsize tellg () const
 The buffer get position. More...
 
- Protected Member Functions inherited from memorybuf
virtual std::streampos seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out)
 Set position pointer to relative position. More...
 
virtual std::streampos seekpos (std::streampos pos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out)
 Set position pointer to absolute position. More...
 
std::streamsize tellg () const
 
std::streamsize tellp () const
 

Detailed Description

Similar to std::istringstream, but with an externally managed input buffer.

This allows the input buffer to be filled or refilled from various sources without copying.

Definition at line 82 of file UIListStream.H.

Constructor & Destructor Documentation

◆ uiliststream()

uiliststream ( const char *  buffer,
size_t  nbytes 
)
inline

Construct for character array and number of bytes.

Definition at line 91 of file UIListStream.H.

Member Function Documentation

◆ reset()

void reset ( char *  buffer,
size_t  nbytes 
)
inline

Reset buffer pointers.

Definition at line 98 of file UIListStream.H.

References memorybuf::in::resetg().

Here is the call graph for this function:

◆ rewind()

void rewind ( )
inline

Rewind the stream, clearing any old errors.

Definition at line 104 of file UIListStream.H.


The documentation for this class was generated from the following file: