Value Container Class.
More...
#include <Value.h>
|
enum class | Type {
NONE = 0
, BOOL
, INT
, DOUBLE
,
STRING
, BLOB
, LIST
, DICT
} |
|
using | Integer = int64_t |
|
using | String = std::string |
|
using | Blob = std::vector<uint8_t> |
|
using | StreamifyStack = std::stack<std::tuple<const Value *, unsigned int, unsigned int>> |
|
using | StreamifyIterStack = std::stack<std::map<std::string, std::shared_ptr<Value>>::const_iterator> |
|
◆ Blob
◆ Integer
◆ StreamifyIterStack
◆ StreamifyStack
◆ String
◆ Type
Enumerator |
---|
NONE | |
BOOL | |
INT | |
DOUBLE | |
STRING | |
BLOB | |
LIST | |
DICT | |
◆ Value() [1/11]
◆ Value() [2/11]
Value::Value |
( |
Type | type | ) |
|
|
explicit |
◆ Value() [3/11]
Value::Value |
( |
bool | value | ) |
|
|
explicit |
◆ Value() [4/11]
◆ Value() [5/11]
Value::Value |
( |
double | value | ) |
|
|
explicit |
◆ Value() [6/11]
Value::Value |
( |
const char * | value | ) |
|
|
explicit |
◆ Value() [7/11]
Value::Value |
( |
const char * | bytes, |
|
|
size_t | length ) |
|
explicit |
◆ Value() [8/11]
Value::Value |
( |
String && | value | ) |
|
|
explicitnoexcept |
◆ Value() [9/11]
Value::Value |
( |
Blob && | value | ) |
|
|
explicit |
◆ Value() [10/11]
Value::Value |
( |
List && | value | ) |
|
|
explicit |
◆ Value() [11/11]
Value::Value |
( |
Dict && | value | ) |
|
|
explicit |
◆ dict()
◆ getBlob() [1/2]
◆ getBlob() [2/2]
◆ getBool()
bool Value::getBool |
( |
| ) |
const |
|
nodiscard |
◆ getDict() [1/2]
◆ getDict() [2/2]
◆ getDouble()
double Value::getDouble |
( |
| ) |
const |
|
nodiscard |
◆ getIfBlob()
◆ getIfBool()
std::optional< bool > Value::getIfBool |
( |
| ) |
const |
|
nodiscard |
◆ getIfDict()
◆ getIfDouble()
std::optional< double > Value::getIfDouble |
( |
| ) |
const |
|
nodiscard |
Allow numeric types to be converted to double
- Returns
- Double value
References data, isDouble(), and isInt().
◆ getIfInt()
Allow numeric types to be converted to integer
- Returns
- Integer value
References data, isDouble(), and isInt().
◆ getIfList()
◆ getIfString()
◆ getInt()
◆ getList() [1/2]
◆ getList() [2/2]
◆ getString() [1/2]
◆ getString() [2/2]
◆ getType()
◆ isBlob()
bool Value::isBlob |
( |
| ) |
const |
|
nodiscard |
◆ isBool()
bool Value::isBool |
( |
| ) |
const |
|
nodiscard |
◆ isDict()
bool Value::isDict |
( |
| ) |
const |
|
nodiscard |
◆ isDouble()
bool Value::isDouble |
( |
| ) |
const |
|
nodiscard |
◆ isInt()
bool Value::isInt |
( |
| ) |
const |
|
nodiscard |
◆ isList()
bool Value::isList |
( |
| ) |
const |
|
nodiscard |
◆ isNull()
bool Value::isNull |
( |
| ) |
const |
|
nodiscard |
◆ isString()
bool Value::isString |
( |
| ) |
const |
|
nodiscard |
◆ list()
◆ operator!=()
bool Value::operator!= |
( |
const Value & | rhs | ) |
const |
◆ operator==()
bool Value::operator== |
( |
const Value & | rhs | ) |
const |
◆ toString() [1/2]
std::string Value::toString |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ toString() [2/2]
◆ toStringBasic()
std::string Value::toStringBasic |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ toStringDict()
◆ toStringList()
◆ writeSpace()
◆ data
Referenced by getBlob(), getBlob(), getBool(), getDict(), getDict(), getDouble(), getIfBlob(), getIfBool(), getIfDict(), getIfDouble(), getIfInt(), getIfList(), getIfString(), getInt(), getList(), getList(), getString(), getString(), getType(), operator==(), toStringBasic(), Value(), and Value().
The documentation for this class was generated from the following files: