A dynamically-typed aggregate value.
More...
#include "Aggregation.h"
|
| | AggValue () |
| | Construct a NULL (NONE) value.
|
| |
| | AggValue (long l) |
| | Construct an integer value.
|
| |
| | AggValue (double d) |
| | Construct a float value.
|
| |
| | AggValue (bool b) |
| | Construct a boolean value.
|
| |
| | AggValue (std::string s) |
| | Construct a string value.
|
| |
| | AggValue (std::vector< long > vec) |
| | Construct an integer-array value.
|
| |
| | AggValue (std::vector< double > vec) |
| | Construct a float-array value.
|
| |
| | AggValue (std::vector< bool > vec) |
| | Construct a boolean-array value.
|
| |
| | AggValue (std::vector< std::string > vec) |
| | Construct a string-array value.
|
| |
| ValueType | getType () const |
| | Return the runtime type tag of this value.
|
| |
|
| std::variant< long, double, bool, std::string, std::vector< long >, std::vector< double >, std::vector< bool >, std::vector< std::string > > | v |
| | The variant holding the actual value.
|
| |
A dynamically-typed aggregate value.
Wraps a std::variant of all supported scalar and array types. The active alternative is identified by the ValueType tag returned by getType().
Definition at line 85 of file Aggregation.h.
◆ AggValue() [1/9]
Construct a NULL (NONE) value.
Definition at line 95 of file Aggregation.h.
◆ AggValue() [2/9]
| AggValue::AggValue |
( |
long |
l | ) |
|
|
inline |
Construct an integer value.
- Parameters
-
Definition at line 98 of file Aggregation.h.
◆ AggValue() [3/9]
| AggValue::AggValue |
( |
double |
d | ) |
|
|
inline |
Construct a float value.
- Parameters
-
Definition at line 101 of file Aggregation.h.
◆ AggValue() [4/9]
| AggValue::AggValue |
( |
bool |
b | ) |
|
|
inline |
Construct a boolean value.
- Parameters
-
Definition at line 104 of file Aggregation.h.
◆ AggValue() [5/9]
| AggValue::AggValue |
( |
std::string |
s | ) |
|
|
inline |
Construct a string value.
- Parameters
-
Definition at line 107 of file Aggregation.h.
◆ AggValue() [6/9]
| AggValue::AggValue |
( |
std::vector< long > |
vec | ) |
|
|
inline |
Construct an integer-array value.
- Parameters
-
Definition at line 110 of file Aggregation.h.
◆ AggValue() [7/9]
| AggValue::AggValue |
( |
std::vector< double > |
vec | ) |
|
|
inline |
Construct a float-array value.
- Parameters
-
Definition at line 113 of file Aggregation.h.
◆ AggValue() [8/9]
| AggValue::AggValue |
( |
std::vector< bool > |
vec | ) |
|
|
inline |
Construct a boolean-array value.
- Parameters
-
Definition at line 116 of file Aggregation.h.
◆ AggValue() [9/9]
| AggValue::AggValue |
( |
std::vector< std::string > |
vec | ) |
|
|
inline |
Construct a string-array value.
- Parameters
-
Definition at line 119 of file Aggregation.h.
◆ getType()
Return the runtime type tag of this value.
- Returns
- The
ValueType identifying the active alternative.
Definition at line 126 of file Aggregation.h.
| std::variant<long, double, bool, std::string, std::vector<long>, std::vector<double>, std::vector<bool>, std::vector<std::string> > AggValue::v |
The variant holding the actual value.
Definition at line 92 of file Aggregation.h.
The documentation for this struct was generated from the following file: