*: some final here and there

This commit is contained in:
Michele Caini
2020-10-14 23:54:49 +02:00
parent 4f0baa80d7
commit 11fcf88b88
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ class basic_group;
* @tparam Get Type of components observed by the group.
*/
template<typename Entity, typename... Exclude, typename... Get>
class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>> {
class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>> final {
/*! @brief A registry is allowed to create groups. */
friend class basic_registry<Entity>;
@@ -599,7 +599,7 @@ private:
* @tparam Owned Types of components owned by the group.
*/
template<typename Entity, typename... Exclude, typename... Get, typename... Owned>
class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...> {
class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...> final {
/*! @brief A registry is allowed to create groups. */
friend class basic_registry<Entity>;

View File

@@ -54,7 +54,7 @@ namespace entt {
* @tparam Entity A valid entity type (see entt_traits for more details).
*/
template<typename Entity>
class basic_runtime_view {
class basic_runtime_view final {
/*! @brief A registry is allowed to create views. */
friend class basic_registry<Entity>;

View File

@@ -64,7 +64,7 @@ class basic_view;
* @tparam Component Types of components iterated by the view.
*/
template<typename Entity, typename... Exclude, typename... Component>
class basic_view<Entity, exclude_t<Exclude...>, Component...> {
class basic_view<Entity, exclude_t<Exclude...>, Component...> final {
/*! @brief A registry is allowed to create views. */
friend class basic_registry<Entity>;
@@ -650,7 +650,7 @@ private:
* @tparam Component Type of component iterated by the view.
*/
template<typename Entity, typename Component>
class basic_view<Entity, exclude_t<>, Component> {
class basic_view<Entity, exclude_t<>, Component> final {
/*! @brief A registry is allowed to create views. */
friend class basic_registry<Entity>;