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

Public Member Functions

 ValueCounter ()
bool EndObject (SizeType memberCount)
bool EndArray (SizeType elementCount)
Public Member Functions inherited from BaseReaderHandler< Encoding, Derived >
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

SizeType count_

Additional Inherited Members

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

Detailed Description

Definition at line 314 of file rapidjsontest.cpp.

Constructor & Destructor Documentation

◆ ValueCounter()

ValueCounter::ValueCounter ( )
inline

Definition at line 315 of file rapidjsontest.cpp.

315: count_(1) {} // root

Member Function Documentation

◆ EndArray()

bool ValueCounter::EndArray ( SizeType elementCount)
inline

Definition at line 318 of file rapidjsontest.cpp.

318{ count_ += elementCount; return true; }

◆ EndObject()

bool ValueCounter::EndObject ( SizeType memberCount)
inline

Definition at line 317 of file rapidjsontest.cpp.

317{ count_ += memberCount * 2; return true; }

Member Data Documentation

◆ count_

SizeType ValueCounter::count_

Definition at line 320 of file rapidjsontest.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/perftest/rapidjsontest.cpp