Electroneum
Loading...
Searching...
No Matches
ParseIntHandler Struct Reference
Inheritance diagram for ParseIntHandler:
Collaboration diagram for ParseIntHandler:

Public Member Functions

 ParseIntHandler ()
bool Default ()
bool Int (int i)
Public Member Functions inherited from BaseReaderHandler< UTF8<>, ParseIntHandler >
bool Default ()
bool Null ()
bool Bool (bool)
bool Int (int)
bool Uint (unsigned)
bool Int64 (int64_t)
bool Uint64 (uint64_t)
bool Double (double)
bool RawNumber (const Ch *str, SizeType len, bool copy)
 enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool String (const Ch *, SizeType, bool)
bool StartObject ()
bool Key (const Ch *str, SizeType len, bool copy)
bool EndObject (SizeType)
bool StartArray ()
bool EndArray (SizeType)

Public Attributes

unsigned step_
int actual_

Additional Inherited Members

Public Types inherited from BaseReaderHandler< UTF8<>, ParseIntHandler >
typedef UTF8<>::Ch Ch
typedef internal::SelectIf< internal::IsSame< ParseIntHandler, void >, BaseReaderHandler, ParseIntHandler >::Type Override

Detailed Description

Definition at line 68 of file readertest.cpp.

Constructor & Destructor Documentation

◆ ParseIntHandler()

ParseIntHandler::ParseIntHandler ( )
inline

Definition at line 69 of file readertest.cpp.

69: step_(0), actual_() {}

Member Function Documentation

◆ Default()

bool ParseIntHandler::Default ( )
inline

Definition at line 70 of file readertest.cpp.

70{ ADD_FAILURE(); return false; }
#define ADD_FAILURE()
Definition gtest.h:1808

◆ Int()

bool ParseIntHandler::Int ( int i)
inline

Definition at line 71 of file readertest.cpp.

71{ actual_ = i; step_++; return true; }

Member Data Documentation

◆ actual_

int ParseIntHandler::actual_

Definition at line 74 of file readertest.cpp.

◆ step_

unsigned ParseIntHandler::step_

Definition at line 73 of file readertest.cpp.


The documentation for this struct 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