@@ -29,18 +29,19 @@ class skat_game {
29
29
private: cpp2::i8 _value; private: constexpr skat_game (cpp2::in<cpp2::i64> _val);
30
30
31
31
private: constexpr auto operator =(cpp2::in<cpp2::i64> _val) -> skat_game& ;
32
- public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::i8;
33
- public: constexpr skat_game (skat_game const & that);
34
- public: constexpr auto operator =(skat_game const & that) -> skat_game& ;
35
- public: constexpr skat_game (skat_game&& that) noexcept ;
36
- public: constexpr auto operator =(skat_game&& that) noexcept -> skat_game& ;
37
- public: [[nodiscard]] auto operator <=>(skat_game const & that) const & -> std::strong_ordering = default ;
38
32
public: static const skat_game diamonds;
39
33
public: static const skat_game hearts;
40
34
public: static const skat_game spades;
41
35
public: static const skat_game clubs;
42
36
public: static const skat_game grand;
43
37
public: static const skat_game null;
38
+ public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::i8;
39
+ public: constexpr explicit skat_game ();
40
+ public: constexpr skat_game (skat_game const & that);
41
+ public: constexpr auto operator =(skat_game const & that) -> skat_game& ;
42
+ public: constexpr skat_game (skat_game&& that) noexcept ;
43
+ public: constexpr auto operator =(skat_game&& that) noexcept -> skat_game& ;
44
+ public: [[nodiscard]] auto operator <=>(skat_game const & that) const & -> std::strong_ordering = default ;
44
45
public: [[nodiscard]] auto to_string () const & -> std::string;
45
46
46
47
#line 4 "pure2-enum.cpp2"
@@ -58,14 +59,15 @@ class janus {
58
59
private: cpp2::i8 _value; private: constexpr janus (cpp2::in<cpp2::i64> _val);
59
60
60
61
private: constexpr auto operator =(cpp2::in<cpp2::i64> _val) -> janus& ;
62
+ public: static const janus past;
63
+ public: static const janus future;
61
64
public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::i8;
65
+ public: constexpr explicit janus ();
62
66
public: constexpr janus (janus const & that);
63
67
public: constexpr auto operator =(janus const & that) -> janus& ;
64
68
public: constexpr janus (janus&& that) noexcept ;
65
69
public: constexpr auto operator =(janus&& that) noexcept -> janus& ;
66
70
public: [[nodiscard]] auto operator <=>(janus const & that) const & -> std::strong_ordering = default ;
67
- public: static const janus past;
68
- public: static const janus future;
69
71
public: [[nodiscard]] auto to_string () const & -> std::string;
70
72
71
73
#line 19 "pure2-enum.cpp2"
@@ -75,12 +77,6 @@ class file_attributes {
75
77
private: cpp2::u8 _value; private: constexpr file_attributes (cpp2::in<cpp2::i64> _val);
76
78
77
79
private: constexpr auto operator =(cpp2::in<cpp2::i64> _val) -> file_attributes& ;
78
- public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::u8;
79
- public: constexpr file_attributes (file_attributes const & that);
80
- public: constexpr auto operator =(file_attributes const & that) -> file_attributes& ;
81
- public: constexpr file_attributes (file_attributes&& that) noexcept ;
82
- public: constexpr auto operator =(file_attributes&& that) noexcept -> file_attributes& ;
83
- public: [[nodiscard]] auto operator <=>(file_attributes const & that) const & -> std::strong_ordering = default ;
84
80
public: constexpr auto operator |=(file_attributes const & that) & -> void ;
85
81
public: constexpr auto operator &=(file_attributes const & that) & -> void ;
86
82
public: constexpr auto operator ^=(file_attributes const & that) & -> void ;
@@ -95,6 +91,13 @@ public: static const file_attributes current;
95
91
public: static const file_attributes obsolete;
96
92
public: static const file_attributes cached_and_current;
97
93
public: static const file_attributes none;
94
+ public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::u8;
95
+ public: constexpr explicit file_attributes ();
96
+ public: constexpr file_attributes (file_attributes const & that);
97
+ public: constexpr auto operator =(file_attributes const & that) -> file_attributes& ;
98
+ public: constexpr file_attributes (file_attributes&& that) noexcept ;
99
+ public: constexpr auto operator =(file_attributes&& that) noexcept -> file_attributes& ;
100
+ public: [[nodiscard]] auto operator <=>(file_attributes const & that) const & -> std::strong_ordering = default ;
98
101
public: [[nodiscard]] auto to_string () const & -> std::string;
99
102
100
103
#line 22 "pure2-enum.cpp2"
@@ -118,17 +121,6 @@ constexpr skat_game::skat_game(cpp2::in<cpp2::i64> _val)
118
121
constexpr auto skat_game::operator =(cpp2::in<cpp2::i64> _val) -> skat_game& {
119
122
_value = cpp2::unsafe_narrow<cpp2::i8>(_val);
120
123
return *this ; }
121
- [[nodiscard]] constexpr auto skat_game::get_raw_value () const & -> cpp2::i8 { return _value; }
122
- constexpr skat_game::skat_game (skat_game const & that)
123
- : _value{ that._value }{}
124
- constexpr auto skat_game::operator =(skat_game const & that) -> skat_game& {
125
- _value = that._value ;
126
- return *this ;}
127
- constexpr skat_game::skat_game (skat_game&& that) noexcept
128
- : _value{ std::move (that)._value }{}
129
- constexpr auto skat_game::operator =(skat_game&& that) noexcept -> skat_game& {
130
- _value = std::move (that)._value ;
131
- return *this ;}
132
124
inline CPP2_CONSTEXPR skat_game skat_game::diamonds = 9 ;
133
125
134
126
inline CPP2_CONSTEXPR skat_game skat_game::hearts = 10 ;
@@ -141,6 +133,19 @@ inline CPP2_CONSTEXPR skat_game skat_game::grand = 20;
141
133
142
134
inline CPP2_CONSTEXPR skat_game skat_game::null = 23 ;
143
135
136
+ [[nodiscard]] constexpr auto skat_game::get_raw_value () const & -> cpp2::i8 { return _value; }
137
+ constexpr skat_game::skat_game ()
138
+ : _value{ diamonds._value }{}
139
+ constexpr skat_game::skat_game (skat_game const & that)
140
+ : _value{ that._value }{}
141
+ constexpr auto skat_game::operator =(skat_game const & that) -> skat_game& {
142
+ _value = that._value ;
143
+ return *this ;}
144
+ constexpr skat_game::skat_game (skat_game&& that) noexcept
145
+ : _value{ std::move (that)._value }{}
146
+ constexpr auto skat_game::operator =(skat_game&& that) noexcept -> skat_game& {
147
+ _value = std::move (that)._value ;
148
+ return *this ;}
144
149
[[nodiscard]] auto skat_game::to_string () const & -> std::string{
145
150
if ((*this ) == diamonds) {return " diamonds" ; }
146
151
if ((*this ) == hearts) {return " hearts" ; }
@@ -163,7 +168,13 @@ return "invalid skat_game value";
163
168
constexpr auto janus::operator =(cpp2::in<cpp2::i64> _val) -> janus& {
164
169
_value = cpp2::unsafe_narrow<cpp2::i8>(_val);
165
170
return *this ; }
171
+ inline CPP2_CONSTEXPR janus janus::past = 0 ;
172
+
173
+ inline CPP2_CONSTEXPR janus janus::future = 1 ;
174
+
166
175
[[nodiscard]] constexpr auto janus::get_raw_value () const & -> cpp2::i8 { return _value; }
176
+ constexpr janus::janus ()
177
+ : _value{ past._value }{}
167
178
constexpr janus::janus (janus const & that)
168
179
: _value{ that._value }{}
169
180
constexpr auto janus::operator =(janus const & that) -> janus& {
@@ -174,10 +185,6 @@ constexpr janus::janus(janus&& that) noexcept
174
185
constexpr auto janus::operator =(janus&& that) noexcept -> janus& {
175
186
_value = std::move (that)._value ;
176
187
return *this ;}
177
- inline CPP2_CONSTEXPR janus janus::past = 0 ;
178
-
179
- inline CPP2_CONSTEXPR janus janus::future = 1 ;
180
-
181
188
[[nodiscard]] auto janus::to_string () const & -> std::string{
182
189
if ((*this ) == past) {return " past" ; }
183
190
if ((*this ) == future) {return " future" ; }
@@ -189,17 +196,6 @@ inline CPP2_CONSTEXPR janus janus::future = 1;
189
196
constexpr auto file_attributes::operator =(cpp2::in<cpp2::i64> _val) -> file_attributes& {
190
197
_value = cpp2::unsafe_narrow<cpp2::u8>(_val);
191
198
return *this ; }
192
- [[nodiscard]] constexpr auto file_attributes::get_raw_value () const & -> cpp2::u8 { return _value; }
193
- constexpr file_attributes::file_attributes (file_attributes const & that)
194
- : _value{ that._value }{}
195
- constexpr auto file_attributes::operator =(file_attributes const & that) -> file_attributes& {
196
- _value = that._value ;
197
- return *this ;}
198
- constexpr file_attributes::file_attributes (file_attributes&& that) noexcept
199
- : _value{ std::move (that)._value }{}
200
- constexpr auto file_attributes::operator =(file_attributes&& that) noexcept -> file_attributes& {
201
- _value = std::move (that)._value ;
202
- return *this ;}
203
199
constexpr auto file_attributes::operator |=(file_attributes const & that) & -> void { _value |= that._value ; }
204
200
constexpr auto file_attributes::operator &=(file_attributes const & that) & -> void { _value &= that._value ; }
205
201
constexpr auto file_attributes::operator ^=(file_attributes const & that) & -> void { _value ^= that._value ; }
@@ -219,6 +215,19 @@ inline CPP2_CONSTEXPR file_attributes file_attributes::cached_and_current = cach
219
215
220
216
inline CPP2_CONSTEXPR file_attributes file_attributes::none = 0 ;
221
217
218
+ [[nodiscard]] constexpr auto file_attributes::get_raw_value () const & -> cpp2::u8 { return _value; }
219
+ constexpr file_attributes::file_attributes ()
220
+ : _value{ none._value }{}
221
+ constexpr file_attributes::file_attributes (file_attributes const & that)
222
+ : _value{ that._value }{}
223
+ constexpr auto file_attributes::operator =(file_attributes const & that) -> file_attributes& {
224
+ _value = that._value ;
225
+ return *this ;}
226
+ constexpr file_attributes::file_attributes (file_attributes&& that) noexcept
227
+ : _value{ std::move (that)._value }{}
228
+ constexpr auto file_attributes::operator =(file_attributes&& that) noexcept -> file_attributes& {
229
+ _value = std::move (that)._value ;
230
+ return *this ;}
222
231
[[nodiscard]] auto file_attributes::to_string () const & -> std::string{
223
232
224
233
std::string _ret {" (" };
0 commit comments