载入中...
搜索中...
未找到
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
 
int64_t asInt () const noexcept
 
double asFloat () const noexcept
 
const std::string & asString () const noexcept
 

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.h119 行定义.

成员函数说明

◆ asBool()

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

在文件 Runtime.h128 行定义.

被这些函数引用 eve::ui::DatabasePanel::sync() , 以及 eve::ui::Inspector::sync().

◆ asFloat()

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

在文件 Runtime.h130 行定义.

◆ asInt()

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

在文件 Runtime.h129 行定义.

◆ asString()

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

在文件 Runtime.h131 行定义.

◆ empty()

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

True when the slot exists and is non-null.

在文件 Runtime.h127 行定义.

引用了 kind.

类成员变量说明

◆ boolean

bool eve::ReflectedValue::boolean = false

在文件 Runtime.h121 行定义.

◆ floating

double eve::ReflectedValue::floating = 0.0

在文件 Runtime.h123 行定义.

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

◆ integer

int64_t eve::ReflectedValue::integer = 0

在文件 Runtime.h122 行定义.

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

◆ kind

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

在文件 Runtime.h120 行定义.

被这些函数引用 eve::ui::DatabasePanel::sync() , 以及 eve::ui::Inspector::sync().

◆ text

std::string eve::ReflectedValue::text

在文件 Runtime.h124 行定义.

被这些函数引用 eve::ui::DatabasePanel::sync() , 以及 eve::ui::Inspector::sync().


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