IListStreamAllocator Class Reference

An stream/stream-buffer input allocator with List storage. More...

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

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

Detailed Description

An stream/stream-buffer input allocator with List storage.

Definition at line 58 of file IListStream.H.

Constructor & Destructor Documentation

◆ IListStreamAllocator() [1/3]

IListStreamAllocator ( )
inlineprotected

Default construct.

Definition at line 68 of file IListStream.H.

◆ IListStreamAllocator() [2/3]

IListStreamAllocator ( List< char > &&  buffer)
inlineprotected

Move construct from List.

Definition at line 75 of file IListStream.H.

◆ IListStreamAllocator() [3/3]

IListStreamAllocator ( DynamicList< char, SizeMin > &&  buffer)
inlineprotected

Move construct from DynamicList.

Definition at line 83 of file IListStream.H.

Member Function Documentation

◆ reset_gbuffer()

void reset_gbuffer ( )
inlineprotected

Convenience method to address the underlying List storage.

Definition at line 93 of file IListStream.H.

References ensightMesh::options::reset().

Referenced by IListStreamAllocator::clearStorage(), and IListStreamAllocator::swap().

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

◆ clearStorage()

void clearStorage ( )
inline

Clear storage.

Definition at line 110 of file IListStream.H.

References List< T >::clear(), and IListStreamAllocator::reset_gbuffer().

Here is the call graph for this function:

◆ swap()

void swap ( List< char > &  list)
inline

Transfer contents to other List.

Definition at line 117 of file IListStream.H.

References UIListStreamAllocator::list(), and IListStreamAllocator::reset_gbuffer().

Here is the call graph for this function:

◆ size()

label size ( ) const
inline

The current get position in the buffer.

Definition at line 175 of file UIListStream.H.


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