Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
ParseArrayHandler< count > Struct Template Reference
Inheritance diagram for ParseArrayHandler< count >:
Collaboration diagram for ParseArrayHandler< count >:

Public Member Functions

 ParseArrayHandler ()
 
bool Default ()
 
bool Uint (unsigned i)
 
bool StartArray ()
 
bool EndArray (SizeType)
 
- Public Member Functions inherited from BaseReaderHandler< UTF8<>, ParseArrayHandler< count > >
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<>, ParseArrayHandler< count > >
typedef UTF8<>::Ch Ch
 
typedef internal::SelectIf< internal::IsSame< ParseArrayHandler< count >, void >, BaseReaderHandler, ParseArrayHandler< count > >::Type Override
 

Detailed Description

template<unsigned count>
struct ParseArrayHandler< count >

Definition at line 1031 of file readertest.cpp.

Constructor & Destructor Documentation

◆ ParseArrayHandler()

template<unsigned count>
ParseArrayHandler< count >::ParseArrayHandler ( )
inline

Definition at line 1032 of file readertest.cpp.

1032: step_(0) {}

Member Function Documentation

◆ Default()

template<unsigned count>
bool ParseArrayHandler< count >::Default ( )
inline

Definition at line 1034 of file readertest.cpp.

1034{ ADD_FAILURE(); return false; }
#define ADD_FAILURE()
Definition gtest.h:1844

◆ EndArray()

template<unsigned count>
bool ParseArrayHandler< count >::EndArray ( SizeType )
inline

Definition at line 1037 of file readertest.cpp.

1037{ step_++; return true; }

◆ StartArray()

template<unsigned count>
bool ParseArrayHandler< count >::StartArray ( )
inline

Definition at line 1036 of file readertest.cpp.

1036{ EXPECT_EQ(0u, step_); step_++; return true; }
#define EXPECT_EQ(val1, val2)
Definition gtest.h:1954

◆ Uint()

template<unsigned count>
bool ParseArrayHandler< count >::Uint ( unsigned i)
inline

Definition at line 1035 of file readertest.cpp.

1035{ EXPECT_EQ(step_, i); step_++; return true; }

Member Data Documentation

◆ step_

template<unsigned count>
unsigned ParseArrayHandler< count >::step_

Definition at line 1039 of file readertest.cpp.


The documentation for this struct was generated from the following file: