NGL
6.5
The NCCA Graphics Library
|
Represents an in-memory output stream. More...
#include <stringbuffer.h>
Public Types | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity) | |
void | Put (Ch c) |
void | Flush () |
void | Clear () |
void | ShrinkToFit () |
Ch * | Push (size_t count) |
void | Pop (size_t count) |
const Ch * | GetString () const |
size_t | GetSize () const |
Public Attributes | |
internal::Stack< Allocator > | stack_ |
Static Public Attributes | |
static const size_t | kDefaultCapacity = 256 |
Private Member Functions | |
GenericStringBuffer (const GenericStringBuffer &) | |
GenericStringBuffer & | operator= (const GenericStringBuffer &) |
Represents an in-memory output stream.
Encoding | Encoding of the stream. |
Allocator | type for allocating memory buffer. |
Definition at line 35 of file stringbuffer.h.
typedef Encoding::Ch GenericStringBuffer< Encoding, Allocator >::Ch |
Definition at line 37 of file stringbuffer.h.
|
inline |
Definition at line 39 of file stringbuffer.h.
References std::move(), GenericStringBuffer< Encoding, Allocator >::operator=(), and GenericStringBuffer< Encoding, Allocator >::stack_.
|
private |
|
inline |
Definition at line 53 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
inline |
Definition at line 51 of file stringbuffer.h.
|
inline |
Definition at line 71 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
inline |
Definition at line 63 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
private |
|
inline |
Definition at line 61 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
inline |
Definition at line 60 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
inline |
Definition at line 50 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
inline |
Definition at line 54 of file stringbuffer.h.
References GenericStringBuffer< Encoding, Allocator >::stack_.
|
static |
Definition at line 73 of file stringbuffer.h.
|
mutable |
Definition at line 74 of file stringbuffer.h.