rapidjson::GenericInsituStringStream< Encoding > Struct Template Reference

A read-write string stream. More...

#include <rapidjson.h>

+ Inheritance diagram for rapidjson::GenericInsituStringStream< Encoding >:

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 GenericInsituStringStream (Ch *src)
 
Ch Peek ()
 
Ch Take ()
 
size_t Tell ()
 
ChPutBegin ()
 
void Put (Ch c)
 
size_t PutEnd (Ch *begin)
 

Public Attributes

Chsrc_
 
Chdst_
 
Chhead_
 

Detailed Description

template<typename Encoding>
struct rapidjson::GenericInsituStringStream< Encoding >

A read-write string stream.

This string stream is particularly designed for in-situ parsing.

Member Typedef Documentation

◆ Ch

template<typename Encoding >
typedef Encoding::Ch rapidjson::GenericInsituStringStream< Encoding >::Ch

Constructor & Destructor Documentation

◆ GenericInsituStringStream()

template<typename Encoding >
rapidjson::GenericInsituStringStream< Encoding >::GenericInsituStringStream ( Ch src)
inline
515 : src_(src), dst_(0), head_(src) {}
Ch * head_
Definition: rapidjson.h:529
Ch * dst_
Definition: rapidjson.h:528
Ch * src_
Definition: rapidjson.h:527

Member Function Documentation

◆ Peek()

template<typename Encoding >
Ch rapidjson::GenericInsituStringStream< Encoding >::Peek ( )
inline

◆ Put()

template<typename Encoding >
void rapidjson::GenericInsituStringStream< Encoding >::Put ( Ch  c)
inline
524 { RAPIDJSON_ASSERT(dst_ != 0); *dst_++ = c; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:105

References rapidjson::GenericInsituStringStream< Encoding >::dst_, and RAPIDJSON_ASSERT.

◆ PutBegin()

◆ PutEnd()

template<typename Encoding >
size_t rapidjson::GenericInsituStringStream< Encoding >::PutEnd ( Ch begin)
inline
525 { return dst_ - begin; }

References rapidjson::GenericInsituStringStream< Encoding >::dst_.

◆ Take()

template<typename Encoding >
Ch rapidjson::GenericInsituStringStream< Encoding >::Take ( )
inline

◆ Tell()

Member Data Documentation

◆ dst_

◆ head_

◆ src_


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