From 82946e2372d012971731ca09152576e4709af98b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 27 Oct 2020 00:09:32 +0100 Subject: [PATCH] pool: storage_adapter -> storage_adapter_mixin --- src/entt/entity/pool.hpp | 14 +++++++------- test/example/multi_instance_storage.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/entt/entity/pool.hpp b/src/entt/entity/pool.hpp index d7085b47a..4a052148b 100644 --- a/src/entt/entity/pool.hpp +++ b/src/entt/entity/pool.hpp @@ -20,7 +20,7 @@ namespace entt { * @tparam Storage The type of the underlying storage. */ template -struct storage_adapter: Storage { +struct storage_adapter_mixin: Storage { static_assert(std::is_same_v>, "Invalid object type"); /*! @brief Type of the objects associated with the entities. */ @@ -170,7 +170,7 @@ struct sigh_pool_mixin: Pool { } /** - * @copybrief storage_adapter::emplace + * @copybrief storage_adapter_mixin::emplace * @tparam Args Types of arguments to use to construct the object. * @param owner The registry that issued the request. * @param entity A valid entity identifier. @@ -188,7 +188,7 @@ struct sigh_pool_mixin: Pool { } /** - * @copybrief storage_adapter::insert + * @copybrief storage_adapter_mixin::insert * @tparam It Type of input iterator. * @tparam Args Types of arguments to use to construct the objects * associated with the entities. @@ -210,7 +210,7 @@ struct sigh_pool_mixin: Pool { } /** - * @copybrief storage_adapter::remove + * @copybrief storage_adapter_mixin::remove * @param owner The registry that issued the request. * @param entity A valid entity identifier. */ @@ -220,7 +220,7 @@ struct sigh_pool_mixin: Pool { } /** - * @copybrief storage_adapter::remove + * @copybrief storage_adapter_mixin::remove * @tparam It Type of input iterator. * @param owner The registry that issued the request. * @param first An iterator to the first element of the range of entities. @@ -238,7 +238,7 @@ struct sigh_pool_mixin: Pool { } /** - * @copybrief storage_adapter::patch + * @copybrief storage_adapter_mixin::patch * @tparam Func Types of the function objects to invoke. * @param owner The registry that issued the request. * @param entity A valid entity identifier. @@ -280,7 +280,7 @@ private: template struct pool { /*! @brief Resulting type after component-to-pool conversion. */ - using type = sigh_pool_mixin>>; + using type = sigh_pool_mixin>>; }; diff --git a/test/example/multi_instance_storage.cpp b/test/example/multi_instance_storage.cpp index 8bc233f9a..230dd967b 100644 --- a/test/example/multi_instance_storage.cpp +++ b/test/example/multi_instance_storage.cpp @@ -53,7 +53,7 @@ struct multi_instance_type { int value; }; template struct entt::pool { - using type = storage_adapter>; + using type = storage_adapter_mixin>; }; TEST(Example, MultiInstanceStorage) {