diff options
author | Hop311 <hop3114@gmail.com> | 2023-05-22 11:26:37 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-05-22 11:26:37 +0200 |
commit | 212d591c31f4200b06d38e98b23c5c2bccde1772 (patch) | |
tree | 6a9964038de099006036c693b49080bf544d3747 /src/openvic/Types.hpp | |
parent | 15e960f93ced8c94a6a45ebb2b44d0705ff7f8f6 (diff) |
Formatting / style cleanup
Diffstat (limited to 'src/openvic/Types.hpp')
-rw-r--r-- | src/openvic/Types.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/openvic/Types.hpp b/src/openvic/Types.hpp index c528ac0..e332bf2 100644 --- a/src/openvic/Types.hpp +++ b/src/openvic/Types.hpp @@ -1,9 +1,9 @@ #pragma once -#include <vector> -#include <cstdint> #include <algorithm> +#include <cstdint> #include <map> +#include <vector> #include "Logger.hpp" @@ -44,8 +44,10 @@ namespace OpenVic { */ class HasIdentifier { const std::string identifier; + protected: HasIdentifier(std::string const& new_identifier); + public: HasIdentifier(HasIdentifier const&) = delete; HasIdentifier(HasIdentifier&&) = default; @@ -60,8 +62,10 @@ namespace OpenVic { */ class HasColour { const colour_t colour; + protected: HasColour(colour_t const new_colour, bool can_be_null = false); + public: HasColour(HasColour const&) = delete; HasColour(HasColour&&) = default; @@ -87,6 +91,7 @@ namespace OpenVic { std::vector<T> items; bool locked = false; identifier_index_map_t identifier_index_map; + public: IdentifierRegistry(std::string const& new_name) : name(new_name) {} return_t add_item(T&& item) { |