Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BasicIStreamWrapper< StreamType > Class Template Reference

Wrapper of std::basic_istream into RapidJSON's Stream concept. More...

#include <istreamwrapper.h>

Public Types

typedef StreamType::char_type Ch
 

Public Member Functions

 BasicIStreamWrapper (StreamType &stream)
 
void Flush ()
 
Ch Peek () const
 
const ChPeek4 () const
 
void Put (Ch)
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 
Ch Take ()
 
size_t Tell () const
 

Private Member Functions

 BasicIStreamWrapper (const BasicIStreamWrapper &)
 
BasicIStreamWrapperoperator= (const BasicIStreamWrapper &)
 

Private Attributes

size_t count_
 Number of characters read. Note: More...
 
Ch peekBuffer_ [4]
 
StreamTypestream_
 

Detailed Description

template<typename StreamType>
class BasicIStreamWrapper< StreamType >

Wrapper of std::basic_istream into RapidJSON's Stream concept.

The classes can be wrapped including but not limited to:

Template Parameters
StreamTypeClass derived from std::basic_istream.

Definition at line 50 of file istreamwrapper.h.

Member Typedef Documentation

template<typename StreamType>
typedef StreamType::char_type BasicIStreamWrapper< StreamType >::Ch

Definition at line 52 of file istreamwrapper.h.

Constructor & Destructor Documentation

template<typename StreamType>
BasicIStreamWrapper< StreamType >::BasicIStreamWrapper ( StreamType stream)
inline

Definition at line 53 of file istreamwrapper.h.

template<typename StreamType>
BasicIStreamWrapper< StreamType >::BasicIStreamWrapper ( const BasicIStreamWrapper< StreamType > &  )
private

Member Function Documentation

template<typename StreamType>
void BasicIStreamWrapper< StreamType >::Flush ( )
inline

Definition at line 75 of file istreamwrapper.h.

template<typename StreamType>
BasicIStreamWrapper& BasicIStreamWrapper< StreamType >::operator= ( const BasicIStreamWrapper< StreamType > &  )
private
template<typename StreamType>
Ch BasicIStreamWrapper< StreamType >::Peek ( ) const
inline

Definition at line 55 of file istreamwrapper.h.

template<typename StreamType>
const Ch* BasicIStreamWrapper< StreamType >::Peek4 ( ) const
inline

Definition at line 79 of file istreamwrapper.h.

template<typename StreamType>
void BasicIStreamWrapper< StreamType >::Put ( Ch  )
inline

Definition at line 74 of file istreamwrapper.h.

template<typename StreamType>
Ch* BasicIStreamWrapper< StreamType >::PutBegin ( )
inline

Definition at line 73 of file istreamwrapper.h.

template<typename StreamType>
size_t BasicIStreamWrapper< StreamType >::PutEnd ( Ch )
inline

Definition at line 76 of file istreamwrapper.h.

template<typename StreamType>
Ch BasicIStreamWrapper< StreamType >::Take ( )
inline

Definition at line 60 of file istreamwrapper.h.

template<typename StreamType>
size_t BasicIStreamWrapper< StreamType >::Tell ( ) const
inline

Definition at line 71 of file istreamwrapper.h.

Member Data Documentation

template<typename StreamType>
size_t BasicIStreamWrapper< StreamType >::count_
private

Number of characters read. Note:

Definition at line 102 of file istreamwrapper.h.

template<typename StreamType>
Ch BasicIStreamWrapper< StreamType >::peekBuffer_[4]
mutableprivate

Definition at line 103 of file istreamwrapper.h.

template<typename StreamType>
StreamType& BasicIStreamWrapper< StreamType >::stream_
private

Definition at line 101 of file istreamwrapper.h.


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


choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:10