#include <BackendOptions.hpp>
Definition at line 31 of file BackendOptions.hpp.
◆ Var() [1/7]
Constructors.
Definition at line 36 of file BackendOptions.hpp.
36 : m_Vals(i), m_Type(VarTypes::Integer) {};
◆ Var() [2/7]
◆ Var() [3/7]
◆ Var() [4/7]
◆ Var() [5/7]
◆ Var() [6/7]
Definition at line 44 of file BackendOptions.hpp.
46 static_assert(CheckAllowed<DisallowedType>::value,
"Type is not allowed for Var<DisallowedType>.");
47 assert(
false &&
"Unreachable code");
◆ Var() [7/7]
Copy Construct.
Definition at line 51 of file BackendOptions.hpp.
52 : m_Type(other.m_Type)
56 case VarTypes::String:
58 new (&m_Vals.s) std::string(other.m_Vals.s);
63 DoOp(other, [](
auto& a,
auto& b)
◆ ~Var()
◆ AsBool()
◆ AsFloat()
◆ AsInt()
◆ AsString()
std::string AsString |
( |
| ) |
const |
|
inline |
◆ IsBool()
◆ IsFloat()
◆ IsInt()
◆ IsString()
◆ operator=()
Var& operator= |
( |
const Var & |
other | ) |
|
|
inline |
Copy operator.
Definition at line 73 of file BackendOptions.hpp.
76 if (m_Type == VarTypes::String)
81 m_Type = other.m_Type;
84 case VarTypes::String:
87 new (&m_Vals.s) std::string(other.m_Vals.s);
92 DoOp(other, [](
auto& a,
auto& b)
The documentation for this class was generated from the following file: