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

Public Member Functions

 ParseDoubleHandler ()
bool Default ()
bool Double (double d)
Public Member Functions inherited from BaseReaderHandler< UTF8<>, ParseDoubleHandler >
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_
double actual_

Additional Inherited Members

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

Detailed Description

Definition at line 104 of file readertest.cpp.

Constructor & Destructor Documentation

◆ ParseDoubleHandler()

ParseDoubleHandler::ParseDoubleHandler ( )
inline

Definition at line 105 of file readertest.cpp.

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

Member Function Documentation

◆ Default()

bool ParseDoubleHandler::Default ( )
inline

Definition at line 106 of file readertest.cpp.

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

◆ Double()

bool ParseDoubleHandler::Double ( double d)
inline

Definition at line 107 of file readertest.cpp.

107{ actual_ = d; step_++; return true; }

Member Data Documentation

◆ actual_

double ParseDoubleHandler::actual_

Definition at line 110 of file readertest.cpp.

◆ step_

unsigned ParseDoubleHandler::step_

Definition at line 109 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