Browse Source

*: minor changes

Michele Caini 5 years ago
parent
commit
aabcc445ee
3 changed files with 9 additions and 9 deletions
  1. 4 4
      src/entt/entity/group.hpp
  2. 2 2
      src/entt/entity/view.hpp
  3. 3 3
      src/entt/entity/view_pack.hpp

+ 4 - 4
src/entt/entity/group.hpp

@@ -71,14 +71,14 @@ class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>> final {
     template<typename Component>
     template<typename Component>
     using pool_type = pool_t<Entity, Component>;
     using pool_type = pool_t<Entity, Component>;
 
 
-    class iterable_group {
+    class iterable_group final {
         friend class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>>;
         friend class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>>;
 
 
         template<typename, typename>
         template<typename, typename>
         class iterable_group_iterator;
         class iterable_group_iterator;
 
 
         template<typename It, typename... Type>
         template<typename It, typename... Type>
-        class iterable_group_iterator<It, type_list<Type...>> {
+        class iterable_group_iterator<It, type_list<Type...>> final {
             friend class iterable_group;
             friend class iterable_group;
 
 
             template<typename... Args>
             template<typename... Args>
@@ -596,14 +596,14 @@ class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...> final
     template<typename Component>
     template<typename Component>
     using pool_type = pool_t<Entity, Component>;
     using pool_type = pool_t<Entity, Component>;
 
 
-    class iterable_group {
+    class iterable_group final {
         friend class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...>;
         friend class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...>;
 
 
         template<typename, typename, typename>
         template<typename, typename, typename>
         class iterable_group_iterator;
         class iterable_group_iterator;
 
 
         template<typename It, typename... OIt, typename... Type>
         template<typename It, typename... OIt, typename... Type>
-        class iterable_group_iterator<It, type_list<OIt...>, type_list<Type...>> {
+        class iterable_group_iterator<It, type_list<OIt...>, type_list<Type...>> final {
             friend class iterable_group;
             friend class iterable_group;
 
 
             template<typename... Other>
             template<typename... Other>

+ 2 - 2
src/entt/entity/view.hpp

@@ -150,11 +150,11 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> final {
         std::tuple<const pool_type<Exclude> *...> filter;
         std::tuple<const pool_type<Exclude> *...> filter;
     };
     };
 
 
-    class iterable_view {
+    class iterable_view final {
         friend class basic_view<Entity, exclude_t<Exclude...>, Component...>;
         friend class basic_view<Entity, exclude_t<Exclude...>, Component...>;
 
 
         template<typename It>
         template<typename It>
-        class iterable_view_iterator {
+        class iterable_view_iterator final {
             friend class iterable_view;
             friend class iterable_view;
 
 
             iterable_view_iterator(It from, const basic_view &parent) ENTT_NOEXCEPT
             iterable_view_iterator(It from, const basic_view &parent) ENTT_NOEXCEPT

+ 3 - 3
src/entt/entity/view_pack.hpp

@@ -30,7 +30,7 @@ namespace entt {
 template<typename View, typename... Other>
 template<typename View, typename... Other>
 class view_pack {
 class view_pack {
     template<typename It>
     template<typename It>
-    class view_pack_iterator {
+    class view_pack_iterator final {
         friend class view_pack<View, Other...>;
         friend class view_pack<View, Other...>;
 
 
         view_pack_iterator(It from, It to, const std::tuple<View, Other...> &ref) ENTT_NOEXCEPT
         view_pack_iterator(It from, It to, const std::tuple<View, Other...> &ref) ENTT_NOEXCEPT
@@ -83,13 +83,13 @@ class view_pack {
         const std::tuple<Other...> pack;
         const std::tuple<Other...> pack;
     };
     };
 
 
-    class iterable_view_pack {
+    class iterable_view_pack final {
         friend class view_pack<View, Other...>;
         friend class view_pack<View, Other...>;
 
 
         using iterable_view = decltype(std::declval<View>().each());
         using iterable_view = decltype(std::declval<View>().each());
 
 
         template<typename It>
         template<typename It>
-        class iterable_view_pack_iterator {
+        class iterable_view_pack_iterator final {
             friend class iterable_view_pack;
             friend class iterable_view_pack;
 
 
             iterable_view_pack_iterator(It from, It to, const std::tuple<Other...> &ref) ENTT_NOEXCEPT
             iterable_view_pack_iterator(It from, It to, const std::tuple<Other...> &ref) ENTT_NOEXCEPT