NCBI C++ ToolKit
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
rapidjson::EncodedInputStream< Encoding, InputByteStream > Class Template Reference

Search Toolkit Book for rapidjson::EncodedInputStream

Input byte stream wrapper with a statically bound encoding. More...

#include <misc/jsonwrapp/rapidjson11/encodedstream.h>

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 EncodedInputStream (InputByteStream &is)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
void Put (Ch)
 
void Flush ()
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Private Types

typedef ::rapidjson ::StaticAssertTest< sizeof(::rapidjson ::STATIC_ASSERTION_FAILURE< bool(sizeof(typename InputByteStream::Ch)==1) >)> RAPIDJSON_JOIN(StaticAssertTypedef, __LINE__) RAPIDJSON_STATIC_ASSERT_UNUSED_ATTRIBUTE
 

Private Member Functions

 EncodedInputStream (const EncodedInputStream &)
 
EncodedInputStreamoperator= (const EncodedInputStream &)
 

Private Attributes

InputByteStream & is_
 
Ch current_
 

Detailed Description

template<typename Encoding, typename InputByteStream>
class rapidjson::EncodedInputStream< Encoding, InputByteStream >

Input byte stream wrapper with a statically bound encoding.

Template Parameters
EncodingThe interpretation of encoding of the stream. Either UTF8, UTF16LE, UTF16BE, UTF32LE, UTF32BE.
InputByteStreamType of input byte stream. For example, FileReadStream.

Definition at line 39 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

template<typename Encoding , typename InputByteStream >
typedef Encoding::Ch rapidjson::EncodedInputStream< Encoding, InputByteStream >::Ch

Definition at line 42 of file encodedstream.h.

◆ RAPIDJSON_JOIN

template<typename Encoding , typename InputByteStream >
typedef :: rapidjson ::StaticAssertTest< sizeof(:: rapidjson ::STATIC_ASSERTION_FAILURE<bool( sizeof(typename InputByteStream::Ch) == 1 ) >)> rapidjson::EncodedInputStream< Encoding, InputByteStream >::RAPIDJSON_JOIN(StaticAssertTypedef, __LINE__) RAPIDJSON_STATIC_ASSERT_UNUSED_ATTRIBUTE
private

Definition at line 40 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedInputStream() [1/2]

template<typename Encoding , typename InputByteStream >
rapidjson::EncodedInputStream< Encoding, InputByteStream >::EncodedInputStream ( InputByteStream &  is)
inline

Definition at line 44 of file encodedstream.h.

◆ EncodedInputStream() [2/2]

template<typename Encoding , typename InputByteStream >
rapidjson::EncodedInputStream< Encoding, InputByteStream >::EncodedInputStream ( const EncodedInputStream< Encoding, InputByteStream > &  )
private

Member Function Documentation

◆ Flush()

template<typename Encoding , typename InputByteStream >
void rapidjson::EncodedInputStream< Encoding, InputByteStream >::Flush ( void  )
inline

Definition at line 54 of file encodedstream.h.

References RAPIDJSON_ASSERT.

◆ operator=()

template<typename Encoding , typename InputByteStream >
EncodedInputStream& rapidjson::EncodedInputStream< Encoding, InputByteStream >::operator= ( const EncodedInputStream< Encoding, InputByteStream > &  )
private

◆ Peek()

template<typename Encoding , typename InputByteStream >
Ch rapidjson::EncodedInputStream< Encoding, InputByteStream >::Peek ( ) const
inline

Definition at line 48 of file encodedstream.h.

◆ Put()

template<typename Encoding , typename InputByteStream >
void rapidjson::EncodedInputStream< Encoding, InputByteStream >::Put ( Ch  )
inline

Definition at line 53 of file encodedstream.h.

References RAPIDJSON_ASSERT.

◆ PutBegin()

template<typename Encoding , typename InputByteStream >
Ch* rapidjson::EncodedInputStream< Encoding, InputByteStream >::PutBegin ( )
inline

Definition at line 55 of file encodedstream.h.

References RAPIDJSON_ASSERT.

◆ PutEnd()

template<typename Encoding , typename InputByteStream >
size_t rapidjson::EncodedInputStream< Encoding, InputByteStream >::PutEnd ( Ch )
inline

Definition at line 56 of file encodedstream.h.

References RAPIDJSON_ASSERT.

◆ Take()

template<typename Encoding , typename InputByteStream >
Ch rapidjson::EncodedInputStream< Encoding, InputByteStream >::Take ( )
inline

Definition at line 49 of file encodedstream.h.

◆ Tell()

template<typename Encoding , typename InputByteStream >
size_t rapidjson::EncodedInputStream< Encoding, InputByteStream >::Tell ( ) const
inline

Definition at line 50 of file encodedstream.h.

Member Data Documentation

◆ current_

template<typename Encoding , typename InputByteStream >
Ch rapidjson::EncodedInputStream< Encoding, InputByteStream >::current_
private

Definition at line 63 of file encodedstream.h.

◆ is_

template<typename Encoding , typename InputByteStream >
InputByteStream& rapidjson::EncodedInputStream< Encoding, InputByteStream >::is_
private

Definition at line 62 of file encodedstream.h.


The documentation for this class was generated from the following file:
Modified on Sun May 19 04:42:28 2024 by modify_doxy.py rev. 669887