|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
YAML序列值类型(数组) 更多...
#include <yaml_value.hpp>
Public 类型 | |
| enum | sequence_style { Block , Flow } |
| 序列集合样式枚举 更多... | |
| Public 类型 继承自 yaml_value | |
| enum | types { Null , Boolean , Integer , Float , String , Timestamp , Sequence , Mapping } |
| YAML值类型枚举 更多... | |
Public 成员函数 | |
| yaml_sequence (const sequence_style s=Block) | |
| 构造序列 | |
| types | type () const noexcept override |
| 获取值的具体类型 | |
| void | add_element (shared_ptr< yaml_value > value) |
| 添加元素到序列末尾 | |
| const yaml_value * | get_element (const size_t index) const noexcept |
| 获取指定索引的元素(常量版本) | |
| yaml_value * | get_element (const size_t index) noexcept |
| 获取指定索引的元素(可变版本) | |
| size_t | size () const noexcept |
| 获取序列大小 | |
| const vector< shared_ptr< yaml_value > > & | get_elements () const noexcept |
| 获取所有元素的常量引用 | |
| sequence_style | get_style () const noexcept |
| 获取集合样式 | |
| void | set_style (const sequence_style s) noexcept |
| 设置集合样式 | |
| Public 成员函数 继承自 yaml_value | |
| void | set_anchor (const string &a) |
| 设置锚点名 | |
| void | set_tag (const string &t) |
| 设置类型标签 | |
| string | to_string () const |
| 紧凑单行序列化 | |
| string | to_document () const |
| 格式化文档序列化 | |
| Public 成员函数 继承自 istringify< yaml_value > | |
| constexpr string | to_string () const |
| 转换为字符串 | |
额外继承的成员函数 | |
| Public 属性 继承自 yaml_value | |
| string | anchor |
| 锚点名(YAML &anchor 语法),空字符串表示无锚点 | |
| string | tag |
| 类型标签(YAML !tag 语法),空字符串表示无标签 | |
YAML序列值类型(数组)
表示YAML中的有序值列表。支持两种集合样式:
序列中的元素可以是任意YAML值类型(包括嵌套的序列和映射)。
在文件 yaml_value.hpp 第 581 行定义.
|
inlineexplicit |
|
inline |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardoverridevirtualnoexcept |
获取值的具体类型
实现了 yaml_value.
在文件 yaml_value.hpp 第 611 行定义.
引用了 yaml_value::Sequence , 以及 type().
被这些函数引用 type().