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

#include <PropertyPOD.hpp>

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

Public 成员函数

errc_t accept (PropertyVisitor &visitor, const void *container) override
 
 Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter)
 
 Property (FPropertyGet getter, FPropertySet setter)
 
 Property ()=default
 
- Public 成员函数 继承自 ast::Property
 Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter)
 
 Property (FPropertyGet getter, FPropertySet setter)
 
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)
 

额外继承的成员函数

- Public 类型 继承自 ast::Property
enum  EPropertyFlag { eReadable = 0x01 , eWritable = 0x02 }
 
- Protected 成员函数 继承自 ast::Property
A_ALWAYS_INLINE errc_t getValue (void *container, void *value)
 
A_ALWAYS_INLINE errc_t setValue (void *container, const void *value)
 
- Protected 属性 继承自 ast::Property
FPropertyGet getter_ {nullptr}
 
FPropertySet setter_ {nullptr}
 
- Protected 属性 继承自 ast::Field
std::string name_
 
std::string desc_
 

详细描述

反射属性类(POD类型: plain old data)

POD类型是指简单的数据类型,如int、float、double、bool等。

待办事项
拟作为int, double, bool等的基础属性类,其他属性类继承自该类。

成员函数说明

◆ accept()

errc_t ast::PropertyPOD::accept ( PropertyVisitor & visitor,
const void * container )
overridevirtual

接受访问者

参数
visitor访问者对象
container容器对象指针
返回
errc_t 错误码

实现了 ast::Property.


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