载入中...
搜索中...
未找到
eve::ReflectedValue结构体 参考

Typed snapshot of one live instance property. 更多...

#include <Runtime.h>

Public 成员函数

bool empty () const noexcept
 True when the slot exists and is non-null.
 
bool asBool () const noexcept
 As bool.
 
int64_t asInt () const noexcept
 As int.
 
double asFloat () const noexcept
 As float.
 
const std::string & asString () const noexcept
 As string.
 

Public 属性

ReflectedValueKind kind = ReflectedValueKind::None
 
bool boolean = false
 
int64_t integer = 0
 
double floating = 0.0
 
std::string text
 

详细描述

Typed snapshot of one live instance property.

writeProperty() keeps the script slot's own type, so the numeric member used to build the value only matters when the slot is null.

在文件 Runtime.h 第 132 行定义.

成员函数说明

◆ asBool()

bool eve::ReflectedValue::asBool ( ) const
inlinenoexcept

As bool.

在文件 Runtime.h 第 142 行定义.

引用了 boolean.

被这些函数引用 eve::ui::DatabasePanel::sync().

◆ asFloat()

double eve::ReflectedValue::asFloat ( ) const
inlinenoexcept

As float.

在文件 Runtime.h 第 146 行定义.

◆ asInt()

int64_t eve::ReflectedValue::asInt ( ) const
inlinenoexcept

As int.

在文件 Runtime.h 第 144 行定义.

◆ asString()

const std::string & eve::ReflectedValue::asString ( ) const
inlinenoexcept

As string.

在文件 Runtime.h 第 148 行定义.

引用了 text.

◆ empty()

bool eve::ReflectedValue::empty ( ) const
inlinenoexcept

True when the slot exists and is non-null.

在文件 Runtime.h 第 140 行定义.

引用了 kind.

被这些函数引用 eve::property_access::ReflectedPropertyModel::write().

类成员变量说明

◆ boolean

bool eve::ReflectedValue::boolean = false

在文件 Runtime.h 第 134 行定义.

◆ floating

double eve::ReflectedValue::floating = 0.0

在文件 Runtime.h 第 136 行定义.

◆ integer

int64_t eve::ReflectedValue::integer = 0

在文件 Runtime.h 第 135 行定义.

◆ kind

ReflectedValueKind eve::ReflectedValue::kind = ReflectedValueKind::None

在文件 Runtime.h 第 133 行定义.

被这些函数引用 eve::ui::DatabasePanel::sync().

◆ text

std::string eve::ReflectedValue::text

在文件 Runtime.h 第 137 行定义.

被这些函数引用 eve::ui::DatabasePanel::sync().


该结构体的文档由以下文件生成: