|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
枚举反射元数据类 更多...
#include <enum.hpp>
Public 成员函数 | |
| meta_enum (string_view name, type_id underlying_id) | |
| 构造函数 | |
| void | add_entry (string_view entry_name, const int64_t entry_value) |
| 添加枚举条目 | |
| string_view | name () const noexcept |
| 获取枚举类型名称 | |
| type_id | underlying_type_id () const noexcept |
| 获取底层类型 ID | |
| const vector< enum_entry > & | entries () const noexcept |
| 获取所有枚举条目 | |
| bool | value_of (string_view entry_name, int64_t &out_value) const noexcept |
| 通过名称查找枚举值 | |
| string_view | name_of (const int64_t entry_value) const noexcept |
| 通过数值查找枚举名称 | |
|
inline |
|
inline |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |