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

EVENGINE_API_FOUNDATION public API. 更多...

#include <Runtime.h>

Public 成员函数

const ReflectedAttribute * findAttribute (const std::string &name) const noexcept
 Looks up an attribute by name; nullptr when absent.
 
float attrFloat (const std::string &name, float def=0.f) const noexcept
 Numeric attribute value; def when missing or not numeric.
 
bool attrBool (const std::string &name, bool def=false) const noexcept
 Boolean attribute value; def when missing or not boolean.
 
std::string attrString (const std::string &name, const std::string &def={}) const
 Raw string attribute value; def when missing.
 
std::vector< std::string > attrOptions (const std::string &name) const
 Comma-separated string attribute split into trimmed options.
 

Public 属性

std::string name
 
ssq::Type type = ssq::Type::NULLPTR
 
bool method = false
 
std::vector< ReflectedAttribute > attributes
 
ReflectedValue value
 Live value; empty for class-level reflection.
 

详细描述

EVENGINE_API_FOUNDATION public API.

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

成员函数说明

◆ attrBool()

bool eve::ReflectedMember::attrBool ( const std::string &  name,
bool  def = false 
) const
noexcept

Boolean attribute value; def when missing or not boolean.

在文件 Runtime.cpp 第 346 行定义.

引用了 name , 以及 eve::ReflectedAttribute::value.

◆ attrFloat()

float eve::ReflectedMember::attrFloat ( const std::string &  name,
float  def = 0.f 
) const
noexcept

Numeric attribute value; def when missing or not numeric.

在文件 Runtime.cpp 第 336 行定义.

引用了 end, name, eve::ReflectedAttribute::value , 以及 value.

◆ attrOptions()

std::vector< std::string > eve::ReflectedMember::attrOptions ( const std::string &  name) const

Comma-separated string attribute split into trimmed options.

在文件 Runtime.cpp 第 364 行定义.

引用了 findAttribute(), first, name, options , 以及 eve::ReflectedAttribute::value.

◆ attrString()

std::string eve::ReflectedMember::attrString ( const std::string &  name,
const std::string &  def = {} 
) const

Raw string attribute value; def when missing.

在文件 Runtime.cpp 第 358 行定义.

引用了 findAttribute(), name , 以及 eve::ReflectedAttribute::value.

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

◆ findAttribute()

const ReflectedAttribute * eve::ReflectedMember::findAttribute ( const std::string &  name) const
noexcept

Looks up an attribute by name; nullptr when absent.

在文件 Runtime.cpp 第 329 行定义.

引用了 name.

被这些函数引用 attrOptions() , 以及 attrString().

类成员变量说明

◆ attributes

std::vector<ReflectedAttribute> eve::ReflectedMember::attributes

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

◆ method

bool eve::ReflectedMember::method = false

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

◆ name

std::string eve::ReflectedMember::name

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

被这些函数引用 attrOptions() , 以及 attrString().

◆ type

ssq::Type eve::ReflectedMember::type = ssq::Type::NULLPTR

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

◆ value

ReflectedValue eve::ReflectedMember::value

Live value; empty for class-level reflection.

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


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