|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
TOML值抽象基类 更多...
#include <toml_value.hpp>
Public 类型 | |
| enum | types { Boolean , Integer , Float , String , DateTime , Array , Table } |
| TOML值类型枚举 更多... | |
Public 成员函数 | |
| virtual | ~toml_value ()=default |
| 虚析构函数 | |
| virtual types | type () const noexcept=0 |
| 获取TOML值类型 | |
| virtual const toml_boolean * | as_boolean () const noexcept |
| 转换为布尔值指针 | |
| virtual const toml_integer * | as_integer () const noexcept |
| 转换为整数指针 | |
| virtual const toml_float * | as_float () const noexcept |
| 转换为浮点数指针 | |
| virtual const toml_string * | as_string () const noexcept |
| 转换为字符串指针 | |
| virtual const toml_datetime * | as_datetime () const noexcept |
| 转换为日期时间指针 | |
| virtual const toml_array * | as_array () const noexcept |
| 转换为数组指针 | |
| virtual const toml_table * | as_table () const noexcept |
| 转换为表格指针 | |
| bool | is_boolean () const noexcept |
| 判断是否为布尔类型 | |
| bool | is_integer () const noexcept |
| 判断是否为整数类型 | |
| bool | is_float () const noexcept |
| 判断是否为浮点数类型 | |
| bool | is_string () const noexcept |
| 判断是否为字符串类型 | |
| bool | is_datetime () const noexcept |
| 判断是否为日期时间类型 | |
| bool | is_array () const noexcept |
| 判断是否为数组类型 | |
| bool | is_table () const noexcept |
| 判断是否为表格类型 | |
| string | to_string () const |
| 转换为紧凑格式字符串 | |
| string | to_document () const |
| 转换为文档格式字符串 | |
| Public 成员函数 继承自 neforce::istringify< toml_value > | |
| constexpr string | to_string () const |
| 转换为字符串 | |
TOML值类型枚举
| 枚举值 | |
|---|---|
| Boolean | 布尔值类型 |
| Integer | 整数类型 |
| Float | 浮点数类型 |
| String | 字符串类型 |
| DateTime | 日期时间类型 |
| Array | 数组类型 |
| Table | 表格类型 |
在文件 toml_value.hpp 第 178 行定义.
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardvirtualnoexcept |
转换为布尔值指针
被 neforce::toml_boolean 重载.
在文件 toml_value.hpp 第 203 行定义.
引用了 as_boolean().
被这些函数引用 as_boolean().
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardvirtualnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
nodiscard |
转换为文档格式字符串
|
nodiscard |
转换为紧凑格式字符串
|
nodiscardpure virtualnoexcept |
获取TOML值类型
在 neforce::toml_array, neforce::toml_boolean, neforce::toml_datetime, neforce::toml_float, neforce::toml_integer, neforce::toml_string , 以及 neforce::toml_table 内被实现.
被这些函数引用 is_array(), is_boolean(), is_datetime(), is_float(), is_integer(), is_string() , 以及 is_table().