Boolean number.
More...
#include <Boolean.h>
◆ Boolean() [1/3]
TBTK::Boolean::Boolean |
( |
| ) |
|
|
inline |
◆ Boolean() [2/3]
constexpr TBTK::Boolean::Boolean |
( |
bool |
value | ) |
|
|
inlineconstexpr |
Constructor.
- Parameters
-
value | The value to initilize the Boolean with. |
◆ Boolean() [3/3]
Constructs an Boolean from a serialization string.
- Parameters
-
serialization | Serialization string from which to construct the Boolean. |
mode | Mode with which the string has been serialized. |
◆ operator bool()
constexpr TBTK::Boolean::operator bool |
( |
| ) |
const |
|
inlineconstexpr |
Type conversion operator.
◆ operator=()
Boolean& TBTK::Boolean::operator= |
( |
bool |
rhs | ) |
|
|
inline |
Assignment operator.
- Parameters
-
value | The value to assign the Boolean. |
- Returns
- The Boolean after assignment has occured.
◆ serialize()
◆ from_json
void from_json |
( |
const nlohmann::json & |
j, |
|
|
Boolean & |
boolean |
|
) |
| |
|
friend |
Implements the Nlohmann json interface for conversion from json.
- Parameters
-
j | The json input. |
boolean | The Boolean to convert to. |
◆ to_json
void to_json |
( |
nlohmann::json & |
j, |
|
|
const Boolean & |
boolean |
|
) |
| |
|
friend |
Implements the Nlohmann json interface for conversion to json.
- Parameters
-
j | The json output. |
boolean | The Boolean to convert. |
The documentation for this class was generated from the following file: