|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
JSON对象类 更多...
#include <json_value.hpp>
Public 成员函数 | |
| json_object ()=default | |
| 默认构造函数 | |
| json_object (json_object &&other)=default | |
| 移动构造函数 | |
| json_object & | operator= (json_object &&other)=default |
| 移动赋值运算符 | |
| types | type () const noexcept override |
| 获取类型 | |
| const json_object * | as_object () const noexcept override |
| 转换为对象指针 | |
| void | add_member (const string &key, unique_ptr< json_value > value) |
| 添加成员 | |
| const json_value * | get_member (const string &key) const |
| 获取常量成员指针 | |
| const unordered_map< string, unique_ptr< json_value > > & | get_members () const noexcept |
| 获取所有成员的常量引用 | |
| Public 成员函数 继承自 json_value | |
| virtual | ~json_value ()=default |
| 虚析构函数 | |
| virtual const json_null * | as_null () const noexcept |
| 转换为null指针 | |
| virtual const json_bool * | as_bool () const noexcept |
| 转换为布尔值指针 | |
| virtual const json_number * | as_number () const noexcept |
| 转换为数字指针 | |
| virtual const json_string * | as_string () const noexcept |
| 转换为字符串指针 | |
| virtual const json_array * | as_array () const noexcept |
| 转换为数组指针 | |
| bool | is_null () const noexcept |
| 判断是否为null类型 | |
| bool | is_bool () const noexcept |
| 判断是否为布尔类型 | |
| bool | is_number () const noexcept |
| 判断是否为数字类型 | |
| bool | is_string () const noexcept |
| 判断是否为字符串类型 | |
| bool | is_object () const noexcept |
| 判断是否为对象类型 | |
| bool | is_array () const noexcept |
| 判断是否为数组类型 | |
| string | to_string () const |
| 转换为紧凑格式字符串 | |
| string | to_indent_string () const |
| 转换为缩进格式字符串 | |
| Public 成员函数 继承自 istringify< json_value > | |
| constexpr string | to_string () const |
| 转换为字符串 | |
额外继承的成员函数 | |
| Public 类型 继承自 json_value | |
| enum | types { Null , Bool , Number , String , Object , Array } |
| JSON值类型枚举 更多... | |
|
default |
|
inline |
|
inlinenodiscardoverridevirtualnoexcept |
|
inlinenodiscard |
|
inlinenodiscardnoexcept |
|
default |
|
inlinenodiscardoverridevirtualnoexcept |