CUBRID Engine  latest
JSON_SERIALIZER_LENGTH Class Reference
Inheritance diagram for JSON_SERIALIZER_LENGTH:
Inheritance graph
Collaboration diagram for JSON_SERIALIZER_LENGTH:
Collaboration graph

Public Member Functions

 JSON_SERIALIZER_LENGTH ()
 
 ~JSON_SERIALIZER_LENGTH () override=default
 
std::size_t GetLength () const
 
std::size_t GetTypePackedSize (void) const
 
std::size_t GetStringPackedSize (const char *str) const
 
bool Null () override
 
bool Bool (bool b) override
 
bool Int (int i) override
 
bool Uint (unsigned i) override
 
bool Int64 (std::int64_t i) override
 
bool Uint64 (std::uint64_t i) override
 
bool Double (double d) override
 
bool String (const Ch *str, SizeType length, bool copy) override
 
bool StartObject () override
 
bool Key (const Ch *str, SizeType length, bool copy) override
 
bool StartArray () override
 
bool EndObject (SizeType memberCount) override
 
bool EndArray (SizeType elementCount) override
 
- Public Member Functions inherited from JSON_BASE_HANDLER
 JSON_BASE_HANDLER ()=default
 
virtual ~JSON_BASE_HANDLER ()=default
 
virtual bool RawNumber (const Ch *str, SizeType length, bool copy)
 

Private Attributes

std::size_t m_length
 

Additional Inherited Members

- Public Types inherited from JSON_BASE_HANDLER
typedef JSON_DOC::Ch Ch
 
typedef unsigned SizeType
 

Detailed Description

Definition at line 470 of file db_json.cpp.

Constructor & Destructor Documentation

JSON_SERIALIZER_LENGTH::JSON_SERIALIZER_LENGTH ( )
inline

Definition at line 473 of file db_json.cpp.

JSON_SERIALIZER_LENGTH::~JSON_SERIALIZER_LENGTH ( )
overridedefault

Member Function Documentation

bool JSON_SERIALIZER_LENGTH::Bool ( bool  b)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3485 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::Double ( double  d)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3597 of file db_json.cpp.

References OR_DOUBLE_SIZE.

bool JSON_SERIALIZER_LENGTH::EndArray ( SizeType  elementCount)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3700 of file db_json.cpp.

bool JSON_SERIALIZER_LENGTH::EndObject ( SizeType  memberCount)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3686 of file db_json.cpp.

std::size_t JSON_SERIALIZER_LENGTH::GetLength ( ) const
inline

Definition at line 481 of file db_json.cpp.

Referenced by db_json_serialize_length().

Here is the caller graph for this function:

std::size_t JSON_SERIALIZER_LENGTH::GetStringPackedSize ( const char *  str) const
inline

Definition at line 491 of file db_json.cpp.

References i, NULL, and or_packed_string_length().

std::size_t JSON_SERIALIZER_LENGTH::GetTypePackedSize ( void  ) const
inline

Definition at line 486 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::Int ( int  i)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3505 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::Int64 ( std::int64_t  i)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3551 of file db_json.cpp.

References OR_BIGINT_SIZE, and OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::Key ( const Ch str,
SizeType  length,
bool  copy 
)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3630 of file db_json.cpp.

bool JSON_SERIALIZER_LENGTH::Null ( )
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3472 of file db_json.cpp.

bool JSON_SERIALIZER_LENGTH::StartArray ( )
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3665 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::StartObject ( )
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3644 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::String ( const Ch str,
SizeType  length,
bool  copy 
)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3617 of file db_json.cpp.

bool JSON_SERIALIZER_LENGTH::Uint ( unsigned  i)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3528 of file db_json.cpp.

References OR_INT_SIZE.

bool JSON_SERIALIZER_LENGTH::Uint64 ( std::uint64_t  i)
overridevirtual

Reimplemented from JSON_BASE_HANDLER.

Definition at line 3574 of file db_json.cpp.

References OR_BIGINT_SIZE, and OR_INT_SIZE.

Member Data Documentation

std::size_t JSON_SERIALIZER_LENGTH::m_length
private

Definition at line 511 of file db_json.cpp.


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