bes  Updated for version 3.20.5
GenericStringBuffer< Encoding, Allocator > Class Template Reference

Represents an in-memory output stream. More...

#include <stringbuffer.h>

Collaboration diagram for GenericStringBuffer< Encoding, Allocator >:
Collaboration graph

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

void Clear ()
 
void Flush ()
 
 GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity)
 
size_t GetSize () const
 
const Ch * GetString () const
 
void Pop (size_t count)
 
Ch * Push (size_t count)
 
Ch * PushUnsafe (size_t count)
 
void Put (Ch c)
 
void PutUnsafe (Ch c)
 
void Reserve (size_t count)
 
void ShrinkToFit ()
 

Public Attributes

internal::Stack< Allocator > stack_
 

Static Public Attributes

static const size_t kDefaultCapacity = 256
 

Detailed Description

template<typename Encoding, typename Allocator = CrtAllocator>
class GenericStringBuffer< Encoding, Allocator >

Represents an in-memory output stream.

Template Parameters
EncodingEncoding of the stream.
Allocatortype for allocating memory buffer.
Note
implements Stream concept

Definition at line 59 of file fwd.h.


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