🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::Struct类 参考

#include <Struct.hpp>

+ 类 ast::Struct 继承关系图:

Public 类型

using PropertyMap = std::unordered_map<std::string, Property*>
 
using PropertyList = std::vector<Property*>
 

Public 成员函数

PropertyaddProperty (StringView name, Property *property)
 
PropertyaddProperty (Property *property)
 
PropertygetProperty (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_
 

详细描述

结构体类

结构体类,包含属性的名称、描述等信息

成员函数说明

◆ addProperty()

Property * ast::Struct::addProperty ( Property * property)

添加属性

参数
property属性
返回
Property* 属性指针

◆ getModuleName()

std::string ast::Struct::getModuleName ( ) const

获取模块名, 不包含调试后缀

返回
std::string 模块名

◆ getProperties()

const PropertyList & ast::Struct::getProperties ( ) const
inline

获取属性列表

返回
const PropertyList& 属性列表

◆ getProperty()

Property * ast::Struct::getProperty ( StringView name)

获取属性

参数
name属性名
返回
Property* 属性指针

该类的文档由以下文件生成: