Electroneum
Loading...
Searching...
No Matches
IStreamWrapper Class Reference

Public Types

typedef char Ch

Public Member Functions

 IStreamWrapper (std::istream &is)
Ch Peek () const
Ch Take ()
size_t Tell () const
ChPutBegin ()
void Put (Ch)
void Flush ()
size_t PutEnd (Ch *)

Detailed Description

Definition at line 1362 of file readertest.cpp.

Member Typedef Documentation

◆ Ch

typedef char IStreamWrapper::Ch

Definition at line 1364 of file readertest.cpp.

Constructor & Destructor Documentation

◆ IStreamWrapper()

IStreamWrapper::IStreamWrapper ( std::istream & is)
inline

Definition at line 1366 of file readertest.cpp.

1366: is_(is) {}

Member Function Documentation

◆ Flush()

void IStreamWrapper::Flush ( )
inline

Definition at line 1382 of file readertest.cpp.

1382{ assert(false); }

◆ Peek()

Ch IStreamWrapper::Peek ( ) const
inline

Definition at line 1368 of file readertest.cpp.

1368 {
1369 int c = is_.peek();
1370 return c == std::char_traits<char>::eof() ? '\0' : static_cast<Ch>(c);
1371 }

◆ Put()

void IStreamWrapper::Put ( Ch )
inline

Definition at line 1381 of file readertest.cpp.

1381{ assert(false); }

◆ PutBegin()

Definition at line 1380 of file readertest.cpp.

1380{ assert(false); return 0; }

◆ PutEnd()

size_t IStreamWrapper::PutEnd ( Ch * )
inline

Definition at line 1383 of file readertest.cpp.

1383{ assert(false); return 0; }

◆ Take()

Definition at line 1373 of file readertest.cpp.

1373 {
1374 int c = is_.get();
1375 return c == std::char_traits<char>::eof() ? '\0' : static_cast<Ch>(c);
1376 }

◆ Tell()

size_t IStreamWrapper::Tell ( ) const
inline

Definition at line 1378 of file readertest.cpp.

1378{ return static_cast<size_t>(is_.tellg()); }

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