minor changes all over the codebase (final)

This commit is contained in:
Michele Caini
2020-03-07 00:41:21 +01:00
parent ef7c572018
commit 50e8db28b8
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class basic_registry {
using traits_type = entt_traits<std::underlying_type_t<Entity>>;
template<typename Component>
struct pool_handler: storage<Entity, Component> {
struct pool_handler final: storage<Entity, Component> {
static_assert(std::is_same_v<Component, std::decay_t<Component>>);
std::size_t super{};
+1 -1
View File
@@ -60,7 +60,7 @@ class basic_runtime_view {
using underlying_iterator_type = typename sparse_set<Entity>::iterator_type;
class iterator {
class iterator final {
friend class basic_runtime_view<Entity>;
using direct_type = std::vector<const sparse_set<Entity> *>;
+1 -1
View File
@@ -52,7 +52,7 @@ class sparse_set {
static_assert(ENTT_PAGE_SIZE && ((ENTT_PAGE_SIZE & (ENTT_PAGE_SIZE - 1)) == 0));
static constexpr auto entt_per_page = ENTT_PAGE_SIZE / sizeof(typename traits_type::entity_type);
class iterator {
class iterator final {
friend class sparse_set<Entity>;
using direct_type = std::vector<Entity>;
+2 -2
View File
@@ -52,7 +52,7 @@ class storage: public sparse_set<Entity> {
using traits_type = entt_traits<std::underlying_type_t<Entity>>;
template<bool Const>
class iterator {
class iterator final {
friend class storage<Entity, Type>;
using instance_type = std::conditional_t<Const, const std::vector<Type>, std::vector<Type>>;
@@ -489,7 +489,7 @@ class storage<Entity, Type, std::enable_if_t<ENTT_ENABLE_ETO(Type)>>: public spa
using traits_type = entt_traits<std::underlying_type_t<Entity>>;
using underlying_type = sparse_set<Entity>;
class iterator {
class iterator final {
friend class storage<Entity, Type>;
using index_type = typename traits_type::difference_type;
+1 -1
View File
@@ -78,7 +78,7 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> {
using unchecked_type = std::array<const sparse_set<Entity> *, (sizeof...(Component) - 1)>;
using filter_type = std::array<const sparse_set<Entity> *, sizeof...(Exclude)>;
class iterator {
class iterator final {
friend class basic_view<Entity, exclude_t<Exclude...>, Component...>;
iterator(const sparse_set<Entity> *candidate, unchecked_type other, filter_type ignore, underlying_iterator_type curr) ENTT_NOEXCEPT
+1 -1
View File
@@ -37,7 +37,7 @@ class dispatcher {
};
template<typename Event>
struct pool_handler: basic_pool {
struct pool_handler final: basic_pool {
using signal_type = sigh<void(const Event &)>;
using sink_type = typename signal_type::sink_type;
+1 -1
View File
@@ -49,7 +49,7 @@ class emitter {
};
template<typename Event>
struct pool_handler: basic_pool {
struct pool_handler final: basic_pool {
using listener_type = std::function<void(const Event &, Derived &)>;
using element_type = std::pair<bool, listener_type>;
using container_type = std::list<element_type>;