#include <encodable_value.h>
|
| using | super = internal::EncodableValueVariant |
| |
Definition at line 166 of file encodable_value.h.
◆ super
◆ EncodableValue() [1/4]
| flutter::EncodableValue::EncodableValue |
( |
| ) |
|
|
explicitdefault |
◆ EncodableValue() [2/4]
| flutter::EncodableValue::EncodableValue |
( |
const char * |
string | ) |
|
|
inlineexplicit |
◆ EncodableValue() [3/4]
◆ EncodableValue() [4/4]
template<class T >
| constexpr flutter::EncodableValue::EncodableValue |
( |
T && |
t | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ IsNull()
| bool flutter::EncodableValue::IsNull |
( |
| ) |
const |
|
inline |
◆ LongValue()
| int64_t flutter::EncodableValue::LongValue |
( |
| ) |
const |
|
inline |
Definition at line 213 of file encodable_value.h.
213 {
214 if (std::holds_alternative<int32_t>(*this)) {
215 return std::get<int32_t>(*this);
216 }
217 return std::get<int64_t>(*this);
218 }
Referenced by flutter::TEST().
◆ operator=()
| EncodableValue & flutter::EncodableValue::operator= |
( |
const char * |
other | ) |
|
|
inline |
Definition at line 178 of file encodable_value.h.
178 {
179 *this = std::string(other);
180 return *this;
181 }
◆ TryGetLongValue()
| std::optional< int64_t > flutter::EncodableValue::TryGetLongValue |
( |
| ) |
const |
|
inline |
Definition at line 227 of file encodable_value.h.
227 {
228 if (std::holds_alternative<int32_t>(*this)) {
229 return std::get<int32_t>(*this);
230 }
231 if (std::holds_alternative<int64_t>(*this)) {
232 return std::get<int64_t>(*this);
233 }
234 return std::nullopt;
235 }
◆ operator<
The documentation for this class was generated from the following file: