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

Detailed Description

template<typename StreamType>
class ariles2::ns_rapidjson::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 52 of file istreamwrapper.h.

#include <istreamwrapper.h>

Public Types

typedef StreamType::char_type Ch
 

Public Member Functions

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

Private Member Functions

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

Private Attributes

StreamType & stream_
 
size_t count_
 Number of characters read. Note: More...
 
Ch peekBuffer_ [4]
 

Member Typedef Documentation

◆ Ch

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

Definition at line 55 of file istreamwrapper.h.

Constructor & Destructor Documentation

◆ BasicIStreamWrapper() [1/2]

template<typename StreamType >
ariles2::ns_rapidjson::BasicIStreamWrapper< StreamType >::BasicIStreamWrapper ( StreamType &  stream)
inlineexplicit

Definition at line 56 of file istreamwrapper.h.

◆ BasicIStreamWrapper() [2/2]

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

Member Function Documentation

◆ Flush()

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

Definition at line 93 of file istreamwrapper.h.

◆ operator=()

template<typename StreamType >
BasicIStreamWrapper& ariles2::ns_rapidjson::BasicIStreamWrapper< StreamType >::operator= ( const BasicIStreamWrapper< StreamType > &  )
private

◆ Peek()

template<typename StreamType >
Ch ariles2::ns_rapidjson::BasicIStreamWrapper< StreamType >::Peek ( ) const
inline

Definition at line 60 of file istreamwrapper.h.

◆ Peek4()

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

Definition at line 104 of file istreamwrapper.h.

◆ Put()

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

Definition at line 89 of file istreamwrapper.h.

◆ PutBegin()

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

Definition at line 84 of file istreamwrapper.h.

◆ PutEnd()

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

Definition at line 97 of file istreamwrapper.h.

◆ Take()

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

Definition at line 66 of file istreamwrapper.h.

◆ Tell()

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

Definition at line 79 of file istreamwrapper.h.

Member Data Documentation

◆ count_

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

Number of characters read. Note:

Definition at line 130 of file istreamwrapper.h.

◆ peekBuffer_

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

Definition at line 131 of file istreamwrapper.h.

◆ stream_

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

Definition at line 129 of file istreamwrapper.h.


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