Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EncodedInputStream< Encoding, InputByteStream > Class Template Reference

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

#include <encodedstream.h>

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

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

Private Member Functions

 EncodedInputStream (const EncodedInputStream &)
 
EncodedInputStreamoperator= (const EncodedInputStream &)
 
 RAPIDJSON_STATIC_ASSERT (sizeof(typename InputByteStream::Ch)==1)
 

Private Attributes

Ch current_
 
InputByteStream & is_
 

Detailed Description

template<typename Encoding, typename InputByteStream>
class 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

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

Definition at line 44 of file encodedstream.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file encodedstream.h.

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

Member Function Documentation

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

Definition at line 71 of file encodedstream.h.

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

Definition at line 51 of file encodedstream.h.

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

Definition at line 67 of file encodedstream.h.

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

Definition at line 75 of file encodedstream.h.

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

Definition at line 80 of file encodedstream.h.

template<typename Encoding, typename InputByteStream>
EncodedInputStream< Encoding, InputByteStream >::RAPIDJSON_STATIC_ASSERT ( sizeof(typename InputByteStream::Ch)  = =1)
private
template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::Take ( )
inline

Definition at line 55 of file encodedstream.h.

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

Definition at line 61 of file encodedstream.h.

Member Data Documentation

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

Definition at line 91 of file encodedstream.h.

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

Definition at line 90 of file encodedstream.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54