TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GenericStringStream< Encoding > Struct Template Reference

Read-only string stream. More...

#include <rapidjson.h>

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)
 
void Flush ()
 
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 GenericStringStream< Encoding >

Read-only string stream.

Note
implements Stream concept

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename Encoding>
void GenericStringStream< Encoding >::Flush ( )
inline
582 { RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:344
template<typename Encoding>
Ch GenericStringStream< Encoding >::Peek ( ) const
inline
576 { return *src_; }
const Ch * src_
Current read position.
Definition: rapidjson.h:585

+ Here is the caller graph for this function:

template<typename Encoding>
void GenericStringStream< Encoding >::Put ( Ch  )
inline
581 { RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:344
template<typename Encoding>
Ch* GenericStringStream< Encoding >::PutBegin ( )
inline
580 { RAPIDJSON_ASSERT(false); return 0; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:344
template<typename Encoding>
size_t GenericStringStream< Encoding >::PutEnd ( Ch )
inline
583 { RAPIDJSON_ASSERT(false); return 0; }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:344
template<typename Encoding>
Ch GenericStringStream< Encoding >::Take ( )
inline
577 { return *src_++; }
const Ch * src_
Current read position.
Definition: rapidjson.h:585

+ Here is the caller graph for this function:

template<typename Encoding>
size_t GenericStringStream< Encoding >::Tell ( ) const
inline
578 { return static_cast<size_t>(src_ - head_); }
const Ch * src_
Current read position.
Definition: rapidjson.h:585
const Ch * head_
Original head of the string.
Definition: rapidjson.h:586

+ Here is the caller graph for this function:

Member Data Documentation

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

Original head of the string.

template<typename Encoding>
const Ch* GenericStringStream< Encoding >::src_

Current read position.


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