#include <PropertyDouble.hpp>
|
| errc_t | getValueBool (const void *container, bool &value) override |
| |
| errc_t | setValueBool (void *container, bool value) override |
| |
| errc_t | getValueInt (const void *container, int &value) override |
| |
| errc_t | setValueInt (void *container, int value) override |
| |
| errc_t | getValueString (const void *container, std::string &value) override |
| |
| errc_t | setValueString (void *container, StringView value) override |
| |
| errc_t | getValueDouble (const void *container, double &value) override |
| |
| errc_t | setValueDouble (void *container, double value) override |
| |
| 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 |
| |
|
| Property (StringView name, StringView desc, FPropertyGet getter, FPropertySet setter) |
| |
|
| Property (FPropertyGet getter, FPropertySet setter) |
| |
|
| Field (StringView name, StringView desc="") |
| |
|
const std::string & | name () const |
| |
| void | setName (StringView name) |
| |
|
const std::string & | desc () const |
| |
| void | setDesc (StringView desc) |
| |
|
| A_ALWAYS_INLINE errc_t | setValue (void *container, const InputType *value) |
| |
| A_ALWAYS_INLINE errc_t | getValue (const void *container, OutputType *value) |
| |
| A_ALWAYS_INLINE errc_t | getValue (void *container, void *value) |
| |
| A_ALWAYS_INLINE errc_t | setValue (void *container, const void *value) |
| |
双精度浮点数属性
双精度浮点数属性,包含属性的名称、描述等信息
◆ accept()
| errc_t ast::PropertyDouble::accept |
( |
PropertyVisitor & | visitor, |
|
|
const void * | container ) |
|
overridevirtual |
◆ getValue()
| A_ALWAYS_INLINE errc_t ast::PropertyDouble::getValue |
( |
const void * | container, |
|
|
OutputType * | value ) |
|
inlineprotected |
获取属性值(double类型)
- 参数
-
- 返回
- 0 成功,其他值 失败
◆ getValueBool()
| errc_t ast::PropertyDouble::getValueBool |
( |
const void * | container, |
|
|
bool & | value ) |
|
overridevirtual |
获取属性值(bool类型)
- 参数
-
| container | 容器对象指针 |
| value | 指向bool类型变量的引用,用于存储属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ getValueDouble()
| errc_t ast::PropertyDouble::getValueDouble |
( |
const void * | container, |
|
|
double & | value ) |
|
overridevirtual |
- 参数
-
| container | 容器对象指针 |
| value | 指向double类型变量的引用,用于存储属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ getValueInt()
| errc_t ast::PropertyDouble::getValueInt |
( |
const void * | container, |
|
|
int & | value ) |
|
overridevirtual |
获取属性值(int类型)
- 参数
-
| container | 容器对象指针 |
| value | 指向int类型变量的引用,用于存储属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ getValueString()
| errc_t ast::PropertyDouble::getValueString |
( |
const void * | container, |
|
|
std::string & | value ) |
|
overridevirtual |
◆ setValue()
| A_ALWAYS_INLINE errc_t ast::PropertyDouble::setValue |
( |
void * | container, |
|
|
const InputType * | value ) |
|
inlineprotected |
设置属性值(double类型)
- 参数
-
- 返回
- 0 成功,其他值 失败
◆ setValueBool()
| errc_t ast::PropertyDouble::setValueBool |
( |
void * | container, |
|
|
bool | value ) |
|
overridevirtual |
设置属性值(bool类型)
- 参数
-
| container | 容器对象指针 |
| value | bool类型变量,用于设置属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ setValueDouble()
| errc_t ast::PropertyDouble::setValueDouble |
( |
void * | container, |
|
|
double | value ) |
|
overridevirtual |
设置属性值(double类型)
- 参数
-
| container | 容器对象指针 |
| value | double类型变量,用于设置属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ setValueInt()
| errc_t ast::PropertyDouble::setValueInt |
( |
void * | container, |
|
|
int | value ) |
|
overridevirtual |
设置属性值(int类型)
- 参数
-
| container | 容器对象指针 |
| value | int类型变量,用于设置属性值 |
- 返回
- errc_t 错误码
实现了 ast::Property.
◆ setValueString()
| errc_t ast::PropertyDouble::setValueString |
( |
void * | container, |
|
|
StringView | value ) |
|
overridevirtual |
该类的文档由以下文件生成: