MySQL 9.1.0
Source Code Documentation
Json_uint Class Referencefinal

Represents a MySQL integer (64 bits unsigned) JSON scalar (an extension of the ECMA number value), type J_UINT. More...

#include <json_dom.h>

Inheritance diagram for Json_uint:
[legend]

Public Member Functions

 Json_uint (ulonglong value)
 
enum_json_type json_type () const override
 
ulonglong value () const
 Return the unsigned int held by this object. More...
 
bool is_16bit () const
 
bool is_32bit () const
 
Json_dom_ptr clone () const override
 Make a deep clone. More...
 
- Public Member Functions inherited from Json_number
bool is_number () const final
 
- Public Member Functions inherited from Json_scalar
uint32 depth () const final
 Compute the depth of a document. More...
 
bool is_scalar () const final
 
- Public Member Functions inherited from Json_dom
virtual ~Json_dom ()=default
 
void * operator new (size_t size, const std::nothrow_t &) noexcept
 Allocate space on the heap for a Json_dom object. More...
 
void operator delete (void *ptr) noexcept
 Deallocate the space used by a Json_dom object. More...
 
void operator delete (void *ptr, const std::nothrow_t &) noexcept
 Nothrow delete. More...
 
Json_containerparent () const
 Get the parent dom to which this dom is attached. More...
 
Json_path get_location () const
 Get the path location of this dom, measured from the outermost document it nests inside. More...
 
bool seek (const Json_seekable_path &path, size_t legs, Json_dom_vector *hits, bool auto_wrap, bool only_need_one)
 Finds all of the json sub-documents which match the path expression. More...
 

Private Attributes

ulonglong m_i
 holds the value More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Json_dom
static Json_dom_ptr parse (const char *text, size_t length, const JsonParseErrorHandler &error_handler, const JsonErrorHandler &depth_handler)
 Parse Json text to DOM (using rapidjson). More...
 
static Json_dom_ptr parse (const json_binary::Value &v)
 Construct a DOM object based on a binary JSON value. More...
 

Detailed Description

Represents a MySQL integer (64 bits unsigned) JSON scalar (an extension of the ECMA number value), type J_UINT.

Constructor & Destructor Documentation

◆ Json_uint()

Json_uint::Json_uint ( ulonglong  value)
inlineexplicit

Member Function Documentation

◆ clone()

Json_dom_ptr Json_uint::clone ( ) const
inlineoverridevirtual

Make a deep clone.

The ownership of the returned object is henceforth with the caller.

Returns
a cloned Json_dom object.

Implements Json_dom.

◆ is_16bit()

bool Json_uint::is_16bit ( ) const
inline
Returns
true if the number can be held by a 16 bit unsigned integer.

◆ is_32bit()

bool Json_uint::is_32bit ( ) const
inline
Returns
true if the number can be held by a 32 bit unsigned integer.

◆ json_type()

enum_json_type Json_uint::json_type ( ) const
inlineoverridevirtual
Returns
the type corresponding to the actual Json_dom subclass

Implements Json_dom.

◆ value()

ulonglong Json_uint::value ( ) const
inline

Return the unsigned int held by this object.

Returns
the value

Member Data Documentation

◆ m_i

ulonglong Json_uint::m_i
private

holds the value


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