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

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

#include <ostreamwrapper.h>

Public Types

typedef StreamType::char_type Ch
 

Public Member Functions

 BasicOStreamWrapper (StreamType &stream)
 
void Flush ()
 
char Peek () const
 
void Put (Ch c)
 
char * PutBegin ()
 
size_t PutEnd (char *)
 
char Take ()
 
size_t Tell () const
 

Private Member Functions

 BasicOStreamWrapper (const BasicOStreamWrapper &)
 
BasicOStreamWrapperoperator= (const BasicOStreamWrapper &)
 

Private Attributes

StreamTypestream_
 

Detailed Description

template<typename StreamType>
class BasicOStreamWrapper< StreamType >

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

The classes can be wrapped including but not limited to:

Template Parameters
StreamTypeClass derived from std::basic_ostream.

Definition at line 45 of file ostreamwrapper.h.

Member Typedef Documentation

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

Definition at line 48 of file ostreamwrapper.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file ostreamwrapper.h.

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

Member Function Documentation

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

Definition at line 58 of file ostreamwrapper.h.

template<typename StreamType >
BasicOStreamWrapper& BasicOStreamWrapper< StreamType >::operator= ( const BasicOStreamWrapper< StreamType > &  )
private
template<typename StreamType >
char BasicOStreamWrapper< StreamType >::Peek ( ) const
inline

Definition at line 64 of file ostreamwrapper.h.

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

Definition at line 53 of file ostreamwrapper.h.

template<typename StreamType >
char* BasicOStreamWrapper< StreamType >::PutBegin ( )
inline

Definition at line 79 of file ostreamwrapper.h.

template<typename StreamType >
size_t BasicOStreamWrapper< StreamType >::PutEnd ( char *  )
inline

Definition at line 84 of file ostreamwrapper.h.

template<typename StreamType >
char BasicOStreamWrapper< StreamType >::Take ( )
inline

Definition at line 69 of file ostreamwrapper.h.

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

Definition at line 74 of file ostreamwrapper.h.

Member Data Documentation

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

Definition at line 94 of file ostreamwrapper.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