ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
载入中...
搜索中...
未找到
TypeRegistry.h 文件参考
#include "ShitEngine/Reflection/TypeInfo.h"
#include "ShitEngine/Core/Core.h"
#include <string_view>
#include <functional>
#include <deque>
#include <unordered_map>
#include <string>

浏览该文件的源代码.

class  TypeRegistry
class  TypeInfoBuilder

命名空间

namespace  Shit

函数

std::string DemangleTypeName (const char *mangled)
template<typename T, typename M>
size_t memberOffset (M T::*member)
 计算成员指针相对于类基址的偏移量(供反射注册代码使用) 用法: memberOffset(&MyClass::myField) 需要通过 friend 声明获取 private/protected 成员的访问权
TypeInfoBuilder ReflectType (const char *name, size_t size)