17#ifndef _FGE_C_FLAG_HPP_INCLUDED
18#define _FGE_C_FLAG_HPP_INCLUDED
33 inline Flag(
bool defaultValue =
false) :
64 inline void set(
bool value) { this->g_flag = value; }
70 [[nodiscard]]
inline bool get()
const {
return this->g_flag; }
78 inline bool operator=(
bool value) {
return this->g_flag = value; }
85 inline operator bool()
const {
return this->g_flag; }
A class to handle flags.
Definition C_flag.hpp:31
void set(bool value)
Manually set the flag value.
Definition C_flag.hpp:64
bool operator=(bool value)
Manually set the flag value operator.
Definition C_flag.hpp:78
bool check(bool input)
Check the input and return the flag value.
Definition C_flag.hpp:45
bool get() const
Get the flag value.
Definition C_flag.hpp:70