UIListStreamAllocator Class Reference

An stream/stream-buffer input allocator for a externally allocated list. More...

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

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...
 

Detailed Description

An stream/stream-buffer input allocator for a externally allocated list.

Definition at line 120 of file UIListStream.H.

Member Typedef Documentation

◆ stream_type

typedef std::istream stream_type
protected

Definition at line 126 of file UIListStream.H.

Constructor & Destructor Documentation

◆ UIListStreamAllocator()

UIListStreamAllocator ( char *  buffer,
size_t  nbytes 
)
inlineprotected

Construct for character array and number of bytes.

Definition at line 138 of file UIListStream.H.

Member Function Documentation

◆ reset()

void reset ( char *  buffer,
size_t  nbytes 
)
inlineprotected

Reset buffer pointers.

Definition at line 148 of file UIListStream.H.

References UIListStreamAllocator::buf_, and memorybuf::in::resetg().

Referenced by IListStreamAllocator::reset_gbuffer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printBufInfo()

void printBufInfo ( Ostream os) const
inlineprotected

Definition at line 153 of file UIListStream.H.

References UIListStreamAllocator::buf_, os(), and memorybuf::in::printBufInfo().

Referenced by IListStream::print().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list() [1/2]

const UList<char> list ( ) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list() [2/2]

UList<char> list ( )
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().

Here is the call graph for this function:

◆ size()

label size ( ) const
inline

The list size.

Definition at line 175 of file UIListStream.H.

References UIListStreamAllocator::buf_, and memorybuf::in::capacity().

Here is the call graph for this function:

◆ tellg()

std::streampos tellg ( ) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rewind()

void rewind ( )
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().

Here is the caller graph for this function:

Member Data Documentation

◆ buf_

◆ stream_

stream_type stream_
protected

The stream.

Definition at line 132 of file UIListStream.H.

Referenced by UIListStreamAllocator::rewind().


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