|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
值类型节点。 更多...
#include <ValueNode.h>

Public 类型 | |
| using | Container = set< ValueNode > |
| using | iterator = Container::iterator |
| using | const_iterator = Container::const_iterator |
Public 成员函数 | |
| DefDeCtor (ValueNode) template< typename _tString | |
| 构造:使用字符串引用和值类型对象构造参数。 更多... | |
| typename _tParams | ValueNode (int, _tString &&str, _tParams &&...args) |
| template<typename _tIn > | |
| ValueNode (const pair< _tIn, _tIn > &pr) | |
| 构造:使用输入迭代器对。 更多... | |
| template<typename _tIn , typename _tString > | |
| ValueNode (const pair< _tIn, _tIn > &pr, _tString &&str) | |
| 构造:使用输入迭代器对、字符串引用和值参数。 更多... | |
| DefDeCopyCtor (ValueNode) DefDeMoveCtor(ValueNode) DefDeCopyAssignment(ValueNode) DefDeMoveAssignment(ValueNode) PDefHOp(bool | |
| const ynothrow | ImplRet (!Value) PDefHOp(const ValueNode & |
| const ynothrow const ValueNode &node const | ImplRet (Add(node),*this) PDefHOp(const ValueNode & |
| const ynothrow const ValueNode &node const ValueNode &&node const | ImplRet (Add(std::move(node)),*this) PDefHOp(const ValueNode & |
| const ynothrow const ValueNode &node const ValueNode &&node const const ValueNode &node const | ImplRet (Remove(node),*this) PDefHOp(const ValueNode & |
| const ynothrow const ValueNode &node const ValueNode &&node const const ValueNode &node const const string &str const | ImplRet (Remove(str),*this) PDefHOp(const ValueNode & |
| 替换同名子节点。 更多... | |
| const ynothrow const ValueNode &node const ValueNode &&node const const ValueNode &node const const string &str const const ValueNode &node const ImplRet this | PDefHOp (const ValueNode &,/=, ValueNode &&node) const ImplRet(*this% |
| PDefHOp (bool,==, const ValueNode &node) const ImplRet(name | |
| template<class _tCon > | |
| const ValueNode & | operator[] (const ystdex::path< _tCon > &pth) const |
| DefCvt (const ynothrow, bool, bool(Value)) DefCvt(const ynothrow | |
| DefGetter (const, Container &, Container, Value.Access< Container >()) DefGetter(const ynothrow | |
| Container Value | AccessPtr ()) DefGetter(const ynothrow |
| Container Value const string name size_t | GetSize () const ynothrow |
| bool | Add (const ValueNode &) const |
| bool | Add (ValueNode &&) const |
| PDefH (void, Clear,) ImplExpr(Value.Clear()) bool Remove(const ValueNode &) const | |
| PDefH (bool, Remove, const string &str) const ImplRet(Remove( | |
| const ValueNode & | at (const string &) const |
| const ynothrow const ValueNode &node const ValueNode &&node const const ValueNode &node const const string &str const const ValueNode &node const ImplRet this *this const ValueNode & | operator%= (const ValueNode &node) const |
| 替换同名子节点。 更多... | |
| const ValueNode & | operator%= (const ValueNode &&node) const |
Public 属性 | |
| ValueObject | Value |
| const string | name |
| Container | ContainerPtr |
| Container Value const string | Name |
Private 成员函数 | |
| Container & | CheckNodes () const |
Private 属性 | |
| string | name |
相关函数 | |||
(请注意: 这些不是成员函数.) | |||
| template<typename _type > | |||
| _type & | Access (const ValueNode &node) | ||
访问节点的指定类型对象。
| |||
| template<typename _type > | |||
| _type & | AccessChild (const ValueNode &node, const string &name) | ||
访问指定名称的子节点的指定类型对象。
| |||
| template<typename _tString , typename... _tParams> | |||
| ValueNode | MakeNode (_tString &&name, _tParams &&...args) | ||
| 取指定名称和退化参数的值类型节点。 更多... | |||
| template<typename _type > | |||
| _type * | AccessChildPtr (const ValueNode &node, const string &name) | ||
访问指定名称的子节点的指定类型对象的指针。
| |||
| begin | |||
| const | end | ||
| PDefH (iterator, begin,) ImplRet(GetContainer().begin()) PDefH(const_iterator | |||
| const | ImplRet (GetContainer().begin()) PDefH(iterator | ||
| const | ImplRet (GetContainer().end()) PDefH(const_iterator | ||
| using YSLib::ValueNode::const_iterator = Container::const_iterator |
在文件 ValueNode.h 第 52 行定义.
| using YSLib::ValueNode::Container = set<ValueNode> |
在文件 ValueNode.h 第 48 行定义.
| using YSLib::ValueNode::iterator = Container::iterator |
在文件 ValueNode.h 第 50 行定义.
|
inline |
在文件 ValueNode.h 第 69 行定义.
|
inline |
|
inline |
| bool YSLib::ValueNode::Add | ( | const ValueNode & | node | ) | const |
| bool YSLib::ValueNode::Add | ( | ValueNode && | node | ) | const |
在文件 ValueNode.cpp 第 83 行定义.
参考自 AccessChild() , 以及 YReader::ShlReader::SaveBookmarks().


|
private |
| YSLib::ValueNode::DefDeCopyCtor | ( | ValueNode | ) |
| YSLib::ValueNode::DefDeCtor | ( | ValueNode | ) |
构造:使用字符串引用和值类型对象构造参数。
| YSLib::ValueNode::DefGetter | ( | const | , |
| Container & | , | ||
| Container | , | ||
| Value.Access< Container > | () | ||
| ) | const |
| size_t YSLib::ValueNode::GetSize | ( | ) | const |
| const ynothrow YSLib::ValueNode::ImplRet | ( | ! | Value | ) | const |
| const ynothrow const ValueNode& node const ValueNode&& node const YSLib::ValueNode::ImplRet | ( | Add(std::move(node)) | , |
| * | this | ||
| ) | const |
| const ynothrow const ValueNode& node const ValueNode&& node const const ValueNode& node const YSLib::ValueNode::ImplRet | ( | Remove(node) | , |
| * | this | ||
| ) | const |
| const ynothrow const ValueNode& node const ValueNode&& node const const ValueNode& node const const string& str const YSLib::ValueNode::ImplRet | ( | Remove(str) | , |
| * | this | ||
| ) | const |
替换同名子节点。
| const YSLib::ValueNode::ImplRet | ( | GetContainer().begin() | ) |
| const YSLib::ValueNode::ImplRet | ( | GetContainer().end() | ) |
在文件 ValueNode.h 第 137 行定义.
|
inline |
在文件 ValueNode.h 第 157 行定义.
| YSLib::ValueNode::PDefH | ( | void | , |
| Clear | |||
| ) | const |
|
inline |
在文件 ValueNode.h 第 199 行定义.
| const ynothrow const ValueNode& node const ValueNode&& node const const ValueNode& node const const string& str const const ValueNode& node const ImplRet this YSLib::ValueNode::PDefHOp | ( | const ValueNode & | , |
| / | , | ||
| ValueNode && | node | ||
| ) | const |
| YSLib::ValueNode::PDefHOp | ( | bool | , |
| const ValueNode & | node | ||
| ) | const |
|
related |
|
related |
访问指定名称的子节点的指定类型对象。
| std::bad_cast | 空实例或类型检查失败 。 |
在文件 ValueNode.h 第 292 行定义.
参考 at().

|
related |
访问指定名称的子节点的指定类型对象的指针。
| std::bad_cast | 空实例或类型检查失败 。 |
在文件 ValueNode.h 第 306 行定义.
参考 YSLib::AccessNodePtr() , 以及 YSLib::UI::name.

|
related |
取指定名称和退化参数的值类型节点。
在文件 ValueNode.h 第 325 行定义.
参考 YSLib::UI::args, ystdex::decay_copy(), YSLib::UI::name , 以及 yforward.

| YSLib::ValueNode::begin |
在文件 ValueNode.h 第 210 行定义.
| Container YSLib::ValueNode::ContainerPtr |
在文件 ValueNode.h 第 173 行定义.
| const YSLib::ValueNode::end |
在文件 ValueNode.h 第 213 行定义.
|
private |
在文件 ValueNode.h 第 55 行定义.
| const string YSLib::ValueNode::name |
在文件 ValueNode.h 第 168 行定义.
在文件 ValueNode.h 第 175 行定义.
|
mutable |
在文件 ValueNode.h 第 59 行定义.
参考自 CheckNodes(), YReader::ShlReader::SaveBookmarks() , 以及 YSLib::WriteConfiguration().