Electroneum
Loading...
Searching...
No Matches
CustomStringStream< Encoding > Class Template Reference

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 CustomStringStream (const Ch *src)
Ch Peek () const
Ch Take ()
size_t Tell () const
ChPutBegin ()
void Put (Ch)
void Flush ()
size_t PutEnd (Ch *)

Detailed Description

template<typename Encoding>
class CustomStringStream< Encoding >

Definition at line 1314 of file readertest.cpp.

Member Typedef Documentation

◆ Ch

template<typename Encoding>
typedef Encoding::Ch CustomStringStream< Encoding >::Ch

Definition at line 1316 of file readertest.cpp.

Constructor & Destructor Documentation

◆ CustomStringStream()

template<typename Encoding>
CustomStringStream< Encoding >::CustomStringStream ( const Ch * src)
inline

Definition at line 1318 of file readertest.cpp.

1318: src_(src), head_(src) {}

Member Function Documentation

◆ Flush()

template<typename Encoding>
void CustomStringStream< Encoding >::Flush ( )
inline

Definition at line 1326 of file readertest.cpp.

1326{ RAPIDJSON_ASSERT(false); }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition rapidjson.h:411

◆ Peek()

template<typename Encoding>
Ch CustomStringStream< Encoding >::Peek ( ) const
inline

Definition at line 1320 of file readertest.cpp.

1320{ return *src_; }

◆ Put()

template<typename Encoding>
void CustomStringStream< Encoding >::Put ( Ch )
inline

Definition at line 1325 of file readertest.cpp.

1325{ RAPIDJSON_ASSERT(false); }

◆ PutBegin()

template<typename Encoding>
Ch * CustomStringStream< Encoding >::PutBegin ( )
inline

Definition at line 1324 of file readertest.cpp.

1324{ RAPIDJSON_ASSERT(false); return 0; }

◆ PutEnd()

template<typename Encoding>
size_t CustomStringStream< Encoding >::PutEnd ( Ch * )
inline

Definition at line 1327 of file readertest.cpp.

1327{ RAPIDJSON_ASSERT(false); return 0; }

◆ Take()

template<typename Encoding>
Ch CustomStringStream< Encoding >::Take ( )
inline

Definition at line 1321 of file readertest.cpp.

1321{ return *src_++; }

◆ Tell()

template<typename Encoding>
size_t CustomStringStream< Encoding >::Tell ( ) const
inline

Definition at line 1322 of file readertest.cpp.

1322{ return static_cast<size_t>(src_ - head_); }

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/test/unittest/readertest.cpp