galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Disabled.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_FLAGS_DISABLED_HPP_
9#define GALAXY_FLAGS_DISABLED_HPP_
10
12
13namespace galaxy
14{
15 namespace flags
16 {
20 class Disabled final : public Serializable
21 {
22 public:
26 Disabled() noexcept;
27
33 Disabled(const nlohmann::json& json);
34
38 Disabled(Disabled&&) noexcept;
39
43 Disabled& operator=(Disabled&&) noexcept;
44
48 virtual ~Disabled() noexcept;
49
55 [[nodiscard]]
56 nlohmann::json serialize() override;
57
63 void deserialize(const nlohmann::json& json) override;
64
65 private:
69 Disabled& operator=(const Disabled&) = delete;
70
74 Disabled(const Disabled&) = delete;
75
76 private:
80 bool m_flag = true;
81 };
82 } // namespace flags
83} // namespace galaxy
84
85#endif
Serializable() noexcept=default
Constructor.
Disabled() noexcept
Constructor.
Definition Disabled.cpp:18
Disabled(const Disabled &)=delete
Copy constructor.
Disabled & operator=(Disabled &&) noexcept
Move assignment operator.
Definition Disabled.cpp:32
bool m_flag
Prevents empty type optimization.
Definition Disabled.hpp:80
nlohmann::json serialize() override
Serializes object.
Definition Disabled.cpp:42
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition Disabled.cpp:47
Disabled & operator=(const Disabled &)=delete
Copy assignment operator.
Tag.cpp galaxy.
Definition Tag.cpp:13