22#include <kiwano/core/Resource.h>
23#include <kiwano/base/ObjectBase.h>
57 template <
typename _Ty>
60 return dynamic_cast<_Ty*
>(Get(
id).Get());
79 UnorderedMap<String, RefPtr<ObjectBase>> object_cache_;
基础对象
Definition: ObjectBase.h:138
引用计数智能指针
Definition: RefBasePtr.hpp:35
资源缓存
Definition: ResourceCache.h:31
RefPtr< _Ty > Get(StringView id) const
获取资源
Definition: ResourceCache.h:58