cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenericStringBuffer< Encoding, Allocator > Struct Template Reference

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

#include <stringbuffer.h>

Inheritance diagram for GenericStringBuffer< Encoding, Allocator >:
Stream

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity)
void Put (Ch c)
void Clear ()
const char * GetString () const
size_t Size () const

Public Attributes

internal::Stack< Allocatorstack_
var stack_
local stack_

Static Public Attributes

static const size_t kDefaultCapacity = 256
var kDefaultCapacity = 256
local kDefaultCapacity = 256

Detailed Description

template<typename Encoding, typename Allocator = CrtAllocator>
struct rapidjson::GenericStringBuffer< Encoding, Allocator >

Represents an in-memory output stream.

Template Parameters
EncodingEncoding of the stream.
Allocatortype for allocating memory buffer.

Member Typedef Documentation

typedef Encoding::Ch Ch
var Ch
local Ch

Constructor & Destructor Documentation

GenericStringBuffer ( Allocator allocator = 0,
size_t  capacity = kDefaultCapacity 
)
inline
var GenericStringBuffer ( var  allocator = 0,
var  capacity = kDefaultCapacity 
)
inline
local GenericStringBuffer ( local  allocator = 0,
local  capacity = kDefaultCapacity 
)
inline

Member Function Documentation

void Clear ( )
inline
var Clear ( )
inline
local Clear ( )
inline
const char* GetString ( ) const
inline
var GetString ( )
inline
local GetString ( )
inline
void Put ( Ch  c)
inline
var Put ( var  c)
inline
local Put ( local  c)
inline
size_t Size ( ) const
inline
var Size ( )
inline
local Size ( )
inline

Member Data Documentation

const size_t kDefaultCapacity = 256
static
var kDefaultCapacity = 256
static
local kDefaultCapacity = 256
static
internal::Stack<Allocator> stack_
mutable
var stack_
mutable
local stack_
mutable

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