Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OListStreamAllocator Class Reference
Inheritance diagram for OListStreamAllocator:
Inheritance graph
[legend]
Collaboration diagram for OListStreamAllocator:
Collaboration graph
[legend]

Public Member Functions

const UList< char > list () const
 
UList< char > list ()
 
label capacity () const
 
label size () const
 
void reserve (const std::streamsize n)
 
void setBlockSize (int n)
 
void swap (List< char > &other)
 
template<int SizeMin>
void swap (DynamicList< char, SizeMin > &other)
 
void shrink ()
 
void clearStorage ()
 
void rewind ()
 

Protected Types

typedef std::ostream stream_type
 

Protected Member Functions

 OListStreamAllocator (size_t nbytes=512)
 
 OListStreamAllocator (List< char > &&buffer)
 
template<int SizeMin>
 OListStreamAllocator (DynamicList< char, SizeMin > &&buffer)
 
void printBufInfo (Ostream &os) const
 

Protected Attributes

dynbuf buf_
 
stream_type stream_
 

Detailed Description

Definition at line 60 of file OListStream.H.

Member Typedef Documentation

◆ stream_type

typedef std::ostream stream_type
protected

Definition at line 262 of file OListStream.H.

Constructor & Destructor Documentation

◆ OListStreamAllocator() [1/3]

OListStreamAllocator ( size_t  nbytes = 512)
inlineprotected

Definition at line 274 of file OListStream.H.

◆ OListStreamAllocator() [2/3]

OListStreamAllocator ( List< char > &&  buffer)
inlineprotected

Definition at line 281 of file OListStream.H.

◆ OListStreamAllocator() [3/3]

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

Definition at line 289 of file OListStream.H.

Member Function Documentation

◆ printBufInfo()

void printBufInfo ( Ostream os) const
inlineprotected

Definition at line 298 of file OListStream.H.

References OListStreamAllocator::buf_, and os().

Here is the call graph for this function:

◆ list() [1/2]

const UList<char> list ( ) const
inline

Definition at line 310 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ list() [2/2]

UList<char> list ( )
inline

Definition at line 316 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ capacity()

label capacity ( ) const
inline

Definition at line 322 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ size()

label size ( ) const
inline

Definition at line 329 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ reserve()

void reserve ( const std::streamsize  n)
inline

Definition at line 335 of file OListStream.H.

References OListStreamAllocator::buf_, and n.

◆ setBlockSize()

void setBlockSize ( int  n)
inline

Definition at line 346 of file OListStream.H.

References OListStreamAllocator::buf_, and n.

◆ swap() [1/2]

void swap ( List< char > &  other)
inline

Definition at line 352 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ swap() [2/2]

void swap ( DynamicList< char, SizeMin > &  other)
inline

Definition at line 359 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ shrink()

void shrink ( )
inline

Definition at line 365 of file OListStream.H.

References OListStreamAllocator::buf_.

◆ clearStorage()

void clearStorage ( )
inline

Definition at line 371 of file OListStream.H.

References OListStreamAllocator::buf_, and OListStreamAllocator::stream_.

◆ rewind()

void rewind ( )
inline

Definition at line 378 of file OListStream.H.

References OListStreamAllocator::buf_, and OListStreamAllocator::stream_.

Referenced by OListStream::rewind().

Here is the caller graph for this function:

Member Data Documentation

◆ buf_

dynbuf buf_
protected

◆ stream_

stream_type stream_
protected

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