|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Class.hpp>
类 ast::Class 继承关系图:Public 成员函数 | |
| Class (Class *parent=nullptr) | |
| Class * | getParent () const |
| void | addToRegistry () const |
| Object * | NewObject (Object *parentScope) const |
| Object * | getDefaultObject () const |
| void | setParent (Class *parent) |
| void | setConstructor (FConstructor constructor) |
| template<typename T > | |
| void | setParent () |
| template<typename T > | |
| void | setConstructor () |
Public 成员函数 继承自 ast::Struct | |
| 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 属性 | |
| Class * | parent_ {nullptr} |
| FConstructor | constructor_ {nullptr} |
| SharedPtr< Object > | defaultObject_ {nullptr} |
Protected 属性 继承自 ast::Struct | |
| PropertyList | properties_ |
| PropertyMap | propertyMap_ |
Protected 属性 继承自 ast::Field | |
| std::string | name_ |
| std::string | desc_ |
额外继承的成员函数 | |
Public 类型 继承自 ast::Struct | |
| using | PropertyMap = std::unordered_map<std::string, Property*> |
| using | PropertyList = std::vector<Property*> |
| ast::Class::Class | ( | Class * | parent = nullptr | ) |
构造函数
| parent | 父类指针 |
| Object * ast::Class::getDefaultObject | ( | ) | const |
获取默认对象
|
inline |
获取父类
|
inline |
设置构造函数
| T | 构造函数类型 |
|
inline |
设置构造函数
| constructor | 构造函数指针 |
|
inline |
设置父类
| T | 父类类型 |
|
inline |
设置父类
| parent | 父类指针 |