2#ifndef LIBSBX_SCRIPTING_TYPE_CACHE_HPP_
3#define LIBSBX_SCRIPTING_TYPE_CACHE_HPP_
5#include <unordered_map>
8#include <libsbx/containers/stable_vector.hpp>
10#include <libsbx/scripting/managed/core.hpp>
11#include <libsbx/scripting/managed/type.hpp>
13namespace sbx::scripting::managed::detail {
21 auto cache_type(
type&& InType) ->
type*;
23 auto get_type_by_name(std::string_view name)
const ->
type*;
25 auto get_type_by_id(type_id
id)
const ->
type*;
32 std::unordered_map<std::string, type*> _name_cache;
33 std::unordered_map<type_id, type*> _id_cache;
Definition: stable_vector.hpp:21
Definition: type_cache.hpp:15