|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Property.hpp>
类 ast::Property 继承关系图:Public 类型 | |
| enum | EPropertyFlag { eReadable = 0x01 , eWritable = 0x02 } |
Public 成员函数 | |
| Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter) | |
| Property (FPropertyGet getter, FPropertySet setter) | |
| virtual errc_t | accept (PropertyVisitor &visitor, const void *container)=0 |
| virtual errc_t | getValueDouble (const void *container, double &value)=0 |
| virtual errc_t | setValueDouble (void *container, double value)=0 |
| virtual errc_t | getValueInt (const void *container, int &value)=0 |
| virtual errc_t | setValueInt (void *container, int value)=0 |
| virtual errc_t | getValueBool (const void *container, bool &value)=0 |
| virtual errc_t | setValueBool (void *container, bool value)=0 |
| virtual errc_t | getValueString (const void *container, std::string &value)=0 |
| virtual errc_t | setValueString (void *container, StringView value)=0 |
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 成员函数 | |
| A_ALWAYS_INLINE errc_t | getValue (void *container, void *value) |
| A_ALWAYS_INLINE errc_t | setValue (void *container, const void *value) |
Protected 属性 | |
| FPropertyGet | getter_ {nullptr} |
| FPropertySet | setter_ {nullptr} |
Protected 属性 继承自 ast::Field | |
| std::string | name_ |
| std::string | desc_ |
反射属性类
|
pure virtual |
接受访问者
| visitor | 访问者对象 |
| container | 容器对象指针 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyObject, ast::PropertyPOD, ast::PropertyQuantity, ast::PropertyString, ast::PropertyStruct , 以及 ast::PropertyTimePoint 内被实现.
|
inlineprotected |
获取属性值
| container | 容器对象指针 |
| value | 指向void类型变量的指针,用于存储属性值 |
|
pure virtual |
获取属性值(bool类型)
| container | 容器对象指针 |
| value | 指向bool类型变量的引用,用于存储属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
| container | 容器对象指针 |
| value | 指向double类型变量的引用,用于存储属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
获取属性值(int类型)
| container | 容器对象指针 |
| value | 指向int类型变量的引用,用于存储属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
获取属性值(String类型)
| container | 容器对象指针 |
| value | 指向std::string类型变量的引用,用于存储属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyQuantity, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
inlineprotected |
设置属性值
| container | 容器对象指针 |
| value | 指向void类型变量的指针,用于设置属性值 |
|
pure virtual |
设置属性值(bool类型)
| container | 容器对象指针 |
| value | bool类型变量,用于设置属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
设置属性值(double类型)
| container | 容器对象指针 |
| value | double类型变量,用于设置属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
设置属性值(int类型)
| container | 容器对象指针 |
| value | int类型变量,用于设置属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.
|
pure virtual |
设置属性值(String类型)
| container | 容器对象指针 |
| value | StringView类型变量,用于设置属性值 |
在 ast::PropertyBool, ast::PropertyDouble, ast::PropertyInt, ast::PropertyNoop, ast::PropertyQuantity, ast::PropertyString , 以及 ast::PropertyTimePoint 内被实现.