HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_StringStreamBuffer Class Reference

====================================================================== More...

#include <UT_StringStream.h>

+ Inheritance diagram for UT_StringStreamBuffer:

Public Member Functions

 UT_StringStreamBuffer (openmode mode=in_out)
 
 UT_StringStreamBuffer (exint reserved_size, openmode mode=in_out)
 
 UT_StringStreamBuffer (const UT_WorkBuffer &buf, openmode mode=in_out)
 
 UT_StringStreamBuffer (const char *buf, exint len=-1, openmode mode=in_out)
 
const UT_WorkBufferstr () const
 
void str (const char *buf, exint len=-1)
 
void str (const UT_WorkBuffer &wb)
 
void swap (UT_WorkBuffer &buf)
 
void steal (UT_String &str)
 
- Public Member Functions inherited from UT_StringStreamBufferBase< UT_StringStreamBuffer >
virtual ~UT_StringStreamBufferBase ()
 
void reset ()
 

Protected Member Functions

UT_WorkBufferbuffer ()
 
const UT_WorkBufferbuffer () const
 
- Protected Member Functions inherited from UT_StringStreamBufferBase< UT_StringStreamBuffer >
 UT_StringStreamBufferBase (openmode mode)
 
void init (bool use_existing=false)
 
const UT_WorkBufferstr () const
 
void updateBufferEnd ()
 
virtual pos_type seekoff (off_type offset, std::ios_base::seekdir dir, openmode mode=in_out)
 
virtual pos_type seekpos (pos_type pos, std::ios_base::openmode mode=in_out)
 
virtual int_type underflow ()
 
virtual streamsize xsgetn (char_type *dst, streamsize num)
 
virtual streamsize showmanyc ()
 
virtual int_type overflow (int_type c)
 
virtual streamsize xsputn (const char_type *src, streamsize num)
 
openmode mode () const
 
void pbump64 (exint offset)
 
void gbump64 (exint offset)
 

Static Protected Member Functions

static bool autoTerminate ()
 

Friends

class UT_StringStreamBufferBase< UT_StringStreamBuffer >
 

Additional Inherited Members

- Public Types inherited from UT_StringStreamBufferBase< UT_StringStreamBuffer >
typedef std::ios_base::openmode openmode
 
typedef std::streamsize streamsize
 

Detailed Description

======================================================================

Specialization of UT_StringStreamBufferBase which owns its own UT_WorkBuffer.

Definition at line 124 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_StringStreamBuffer::UT_StringStreamBuffer ( openmode  mode = in_out)
inlineexplicit

Definition at line 130 of file UT_StringStream.h.

UT_StringStreamBuffer::UT_StringStreamBuffer ( exint  reserved_size,
openmode  mode = in_out 
)
inlineexplicit

Definition at line 137 of file UT_StringStream.h.

UT_StringStreamBuffer::UT_StringStreamBuffer ( const UT_WorkBuffer buf,
openmode  mode = in_out 
)
inlineexplicit

Definition at line 145 of file UT_StringStream.h.

UT_StringStreamBuffer::UT_StringStreamBuffer ( const char *  buf,
exint  len = -1,
openmode  mode = in_out 
)
inline

Definition at line 153 of file UT_StringStream.h.

Member Function Documentation

static bool UT_StringStreamBuffer::autoTerminate ( )
inlinestaticprotected

Definition at line 187 of file UT_StringStream.h.

UT_WorkBuffer& UT_StringStreamBuffer::buffer ( )
inlineprotected

Definition at line 185 of file UT_StringStream.h.

const UT_WorkBuffer& UT_StringStreamBuffer::buffer ( ) const
inlineprotected

Definition at line 186 of file UT_StringStream.h.

void UT_StringStreamBuffer::steal ( UT_String str)
inline

Steals the contents of the buffer into the UT_String object given and resets the stream.

Definition at line 444 of file UT_StringStreamImpl.h.

const UT_WorkBuffer& UT_StringStreamBuffer::str ( ) const
inline

Definition at line 161 of file UT_StringStream.h.

void UT_StringStreamBuffer::str ( const char *  buf,
exint  len = -1 
)
inline

Definition at line 164 of file UT_StringStream.h.

void UT_StringStreamBuffer::str ( const UT_WorkBuffer wb)
inline

Definition at line 170 of file UT_StringStream.h.

void UT_StringStreamBuffer::swap ( UT_WorkBuffer buf)
inline

Swaps the contents of our buffer with the given buffer and resets the stream to the swapped-in buffer.

Examples:
SIM/SNOW_Solver.C.

Definition at line 435 of file UT_StringStreamImpl.h.

Friends And Related Function Documentation

Definition at line 184 of file UT_StringStream.h.


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