Value class for databases.
More...
#include <value.hxx>
|
| | Value (const Value &)=default |
| |
| | Value (Value &&) noexcept=default |
| |
| Value & | operator= (const Value &)=default |
| |
| Value & | operator= (Value &&) noexcept=default |
| |
| | ~Value () noexcept=default |
| |
template<typename T >
requires StormByte::Type::VariantHasType<ValuesVariant, std::decay_t<T>> |
| std::decay_t< T > | Get () const |
| |
| Type | Type () const noexcept |
| |
| bool | IsNull () const noexcept |
| |
|
|
| Value (int value) noexcept |
| |
|
| Value (unsigned int value) noexcept |
| |
|
| Value (long int value) noexcept |
| |
|
| Value (unsigned long int value) noexcept |
| |
|
| Value (double value) noexcept |
| |
|
| Value (const std::string &value) noexcept |
| |
|
| Value (std::string &&value) noexcept |
| |
|
| Value (const char *value) noexcept |
| |
|
| Value (const std::vector< std::byte > &value) noexcept |
| |
|
| Value (std::vector< std::byte > &&value) noexcept |
| |
|
| Value (bool value) noexcept |
| |
Value class for databases.
◆ Type
Type of a value.
| Enumerator |
|---|
| Null | Null type.
|
| Integer | Integer type.
|
| UnsignedInteger | Unsigned integer type.
|
| LongInteger | Long Integer type.
|
| UnsignedLongInteger | Unsigned long integer type.
|
| Double | Double type.
|
| Text | Text type.
|
| Blob | Blob type.
|
| Boolean | Boolean type.
|
◆ Value() [1/3]
| StormByte::Database::Value::Value |
( |
| ) |
|
|
inlinenoexcept |
Constructors to different types
- Parameters
-
◆ Value() [2/3]
| StormByte::Database::Value::Value |
( |
const Value & |
| ) |
|
|
default |
◆ Value() [3/3]
| StormByte::Database::Value::Value |
( |
Value && |
| ) |
|
|
defaultnoexcept |
◆ ~Value()
| StormByte::Database::Value::~Value |
( |
| ) |
|
|
defaultnoexcept |
◆ IsNull()
| bool StormByte::Database::Value::IsNull |
( |
| ) |
const |
|
inlinenoexcept |
Checks if the value is null
- Returns
- true if the value is null, false otherwise
◆ operator=() [1/2]
| Value & StormByte::Database::Value::operator= |
( |
const Value & |
| ) |
|
|
default |
◆ operator=() [2/2]
| Value & StormByte::Database::Value::operator= |
( |
Value && |
| ) |
|
|
defaultnoexcept |
◆ Type()
Gets the type of the value
- Returns
- Type
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Database/StormByte-Database/lib/public/StormByte/database/value.hxx