CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
rapidjson::GenericStringBuffer< Encoding, Allocator > Struct Template Reference

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

#include <stringbuffer.h>

Inheritance diagram for rapidjson::GenericStringBuffer< Encoding, Allocator >:
rapidjson::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_
 

Static Public Attributes

static const size_t 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.

Definition at line 16 of file stringbuffer.h.

Member Typedef Documentation

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

Definition at line 17 of file stringbuffer.h.

Constructor & Destructor Documentation

template<typename Encoding , typename Allocator = CrtAllocator>
rapidjson::GenericStringBuffer< Encoding, Allocator >::GenericStringBuffer ( Allocator allocator = 0,
size_t  capacity = kDefaultCapacity 
)
inline

Definition at line 19 of file stringbuffer.h.

Member Function Documentation

template<typename Encoding , typename Allocator = CrtAllocator>
void rapidjson::GenericStringBuffer< Encoding, Allocator >::Clear ( )
inline

Definition at line 23 of file stringbuffer.h.

template<typename Encoding , typename Allocator = CrtAllocator>
const char* rapidjson::GenericStringBuffer< Encoding, Allocator >::GetString ( ) const
inline

Definition at line 25 of file stringbuffer.h.

template<typename Encoding , typename Allocator = CrtAllocator>
void rapidjson::GenericStringBuffer< Encoding, Allocator >::Put ( Ch  c)
inline

Definition at line 21 of file stringbuffer.h.

template<typename Encoding , typename Allocator = CrtAllocator>
size_t rapidjson::GenericStringBuffer< Encoding, Allocator >::Size ( ) const
inline

Definition at line 33 of file stringbuffer.h.

Member Data Documentation

template<typename Encoding , typename Allocator = CrtAllocator>
const size_t rapidjson::GenericStringBuffer< Encoding, Allocator >::kDefaultCapacity = 256
static

Definition at line 35 of file stringbuffer.h.

template<typename Encoding , typename Allocator = CrtAllocator>
internal::Stack<Allocator> rapidjson::GenericStringBuffer< Encoding, Allocator >::stack_
mutable

Definition at line 36 of file stringbuffer.h.


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