|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
属性反射元数据 更多...
#include "NeForce/core/functional/function.hpp"#include "NeForce/core/string/string.hpp"#include "NeForce/core/reflect/any.hpp"类 | |
| class | neforce::reflect::meta_property |
| 属性反射元数据类 更多... | |
枚举 | |
| enum | neforce::reflect::property_attr : uint16_t { neforce::reflect::PROP_NONE = 0 , neforce::reflect::PROP_TRANSIENT = 1 << 0 , neforce::reflect::PROP_REQUIRED = 1 << 1 , neforce::reflect::PROP_READ_ONLY = 1 << 2 , neforce::reflect::PROP_OPTIONAL = 1 << 3 , neforce::reflect::PROP_VERSIONED = 1 << 4 , neforce::reflect::PROP_PRIMARY_KEY = 1 << 5 , neforce::reflect::PROP_AUTO_INC = 1 << 6 , neforce::reflect::PROP_UNIQUE = 1 << 7 , neforce::reflect::PROP_INDEX = 1 << 8 , neforce::reflect::PROP_FOREIGN_KEY = 1 << 9 } |
| 属性注解标志 更多... | |
函数 | |
| constexpr bool | neforce::reflect::prop_has_attr (const uint16_t attrs, const property_attr flag) noexcept |
| 检查属性注解是否包含指定标志 | |
属性反射元数据
此文件提供了属性反射的元数据类,用于描述和访问对象的成员变量。 支持属性注解(transient、required、read_only、optional、versioned) 以控制序列化行为。
在文件 property.hpp 中定义.