|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Struct.hpp>
类 ast::Struct 继承关系图:Public 类型 | |
| using | PropertyMap = std::unordered_map<std::string, Property*> |
| using | PropertyList = std::vector<Property*> |
Public 成员函数 | |
| Property * | addProperty (StringView name, Property *property) |
| Property * | addProperty (Property *property) |
| Property * | getProperty (StringView name) |
| const PropertyList & | getProperties () const |
| std::string | getModuleName () const |
| Field () | |
| Field (StringView name, StringView desc="") | |
Public 成员函数 继承自 ast::Field | |
| Field (StringView name, StringView desc="") | |
| const std::string & | name () const |
| void | setName (StringView name) |
| const std::string & | desc () const |
| void | setDesc (StringView desc) |
Protected 属性 | |
| PropertyList | properties_ |
| PropertyMap | propertyMap_ |
Protected 属性 继承自 ast::Field | |
| std::string | name_ |
| std::string | desc_ |
结构体类
结构体类,包含属性的名称、描述等信息
| std::string ast::Struct::getModuleName | ( | ) | const |
获取模块名, 不包含调试后缀
|
inline |
获取属性列表
| Property * ast::Struct::getProperty | ( | StringView | name | ) |
获取属性
| name | 属性名 |