Electroneum
Loading...
Searching...
No Matches
ParseBoolHandler< expect > Struct Template Reference
Inheritance diagram for ParseBoolHandler< expect >:
Collaboration diagram for ParseBoolHandler< expect >:

Public Member Functions

 ParseBoolHandler ()
bool Default ()
bool Bool (bool b)
Public Member Functions inherited from BaseReaderHandler< UTF8<>, ParseBoolHandler< expect > >
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_

Additional Inherited Members

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

Detailed Description

template<bool expect>
struct ParseBoolHandler< expect >

Definition at line 42 of file readertest.cpp.

Constructor & Destructor Documentation

◆ ParseBoolHandler()

template<bool expect>
ParseBoolHandler< expect >::ParseBoolHandler ( )
inline

Definition at line 43 of file readertest.cpp.

43: step_(0) {}

Member Function Documentation

◆ Bool()

template<bool expect>
bool ParseBoolHandler< expect >::Bool ( bool b)
inline

Definition at line 47 of file readertest.cpp.

47{ /*EXPECT_EQ(expect, b); */EXPECT_TRUE(expect == b); ++step_; return true; }
#define EXPECT_TRUE(condition)
Definition gtest.h:1859

◆ Default()

template<bool expect>
bool ParseBoolHandler< expect >::Default ( )
inline

Definition at line 44 of file readertest.cpp.

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

Member Data Documentation

◆ step_

template<bool expect>
unsigned ParseBoolHandler< expect >::step_

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