rapidjson::GenericStringStream< Encoding > Struct Template Reference

Read-only string stream. More...

#include <rapidjson.h>

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

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 GenericStringStream (const Ch *src)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
ChPutBegin ()
 
void Put (Ch)
 
size_t PutEnd (Ch *)
 

Public Attributes

const Chsrc_
 Current read position. More...
 
const Chhead_
 Original head of the string. More...
 

Detailed Description

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

Read-only string stream.

Member Typedef Documentation

◆ Ch

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

Constructor & Destructor Documentation

◆ GenericStringStream()

template<typename Encoding >
rapidjson::GenericStringStream< Encoding >::GenericStringStream ( const Ch src)
inline
488 : src_(src), head_(src) {}
const Ch * head_
Original head of the string.
Definition: rapidjson.h:499
const Ch * src_
Current read position.
Definition: rapidjson.h:498

Member Function Documentation

◆ Peek()

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

◆ Put()

template<typename Encoding >
void rapidjson::GenericStringStream< Encoding >::Put ( Ch  )
inline
495 { RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:105

References RAPIDJSON_ASSERT.

◆ PutBegin()

template<typename Encoding >
Ch* rapidjson::GenericStringStream< Encoding >::PutBegin ( )
inline
494 { RAPIDJSON_ASSERT(false); return 0; }

References RAPIDJSON_ASSERT.

◆ PutEnd()

template<typename Encoding >
size_t rapidjson::GenericStringStream< Encoding >::PutEnd ( Ch )
inline
496 { RAPIDJSON_ASSERT(false); return 0; }

References RAPIDJSON_ASSERT.

◆ Take()

template<typename Encoding >
Ch rapidjson::GenericStringStream< Encoding >::Take ( )
inline
491 { return *src_++; }

References rapidjson::GenericStringStream< Encoding >::src_.

◆ Tell()

template<typename Encoding >
size_t rapidjson::GenericStringStream< Encoding >::Tell ( ) const
inline

Member Data Documentation

◆ head_

template<typename Encoding >
const Ch* rapidjson::GenericStringStream< Encoding >::head_

Original head of the string.

Referenced by rapidjson::GenericStringStream< Encoding >::Tell().

◆ src_


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