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 44 of file encodedstream.h.

Member Typedef Documentation

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

Definition at line 48 of file encodedstream.h.

Constructor & Destructor Documentation

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

Definition at line 50 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 64 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 54 of file encodedstream.h.

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

Definition at line 63 of file encodedstream.h.

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

Definition at line 65 of file encodedstream.h.

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

Definition at line 69 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 60 of file encodedstream.h.

Member Data Documentation

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

Definition at line 79 of file encodedstream.h.

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

Definition at line 78 of file encodedstream.h.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46