#include <literal.hpp>
|
| Literal (const Value &value_) |
|
| Literal (const type::Array &type_, std::vector< Value > value_) |
|
EvaluationResult | evaluate (const EvaluationContext &) const override |
|
void | eachChild (const std::function< void(const Expression &)> &) const override |
|
bool | operator== (const Expression &e) const override |
|
std::vector< std::optional< Value > > | possibleOutputs () const override |
|
Value | getValue () const |
|
mbgl::Value | serialize () const override |
|
std::string | getOperator () const override |
|
| Expression (Kind kind_, type::Type type_) |
|
virtual | ~Expression ()=default |
|
bool | operator!= (const Expression &rhs) const |
|
Kind | getKind () const |
|
type::Type | getType () const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter) const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter, const std::set< std::string > &availableImages) const |
|
EvaluationResult | evaluate (std::optional< float > zoom, const Feature &feature, std::optional< double > colorRampParameter, const std::set< std::string > &availableImages, const CanonicalTileID &canonical) const |
|
EvaluationResult | evaluate (std::optional< mbgl::Value > accumulated, const Feature &feature) const |
|
|
template<typename T > |
static bool | childrenEqual (const T &lhs, const T &rhs) |
|
static bool | childEqual (const std::unique_ptr< Expression > &lhs, const std::unique_ptr< Expression > &rhs) |
|
template<typename T > |
static bool | childEqual (const std::pair< T, std::unique_ptr< Expression >> &lhs, const std::pair< T, std::unique_ptr< Expression >> &rhs) |
|
template<typename T > |
static bool | childEqual (const std::pair< T, std::shared_ptr< Expression >> &lhs, const std::pair< T, std::shared_ptr< Expression >> &rhs) |
|
static bool | childEqual (const std::pair< std::unique_ptr< Expression >, std::unique_ptr< Expression >> &lhs, const std::pair< std::unique_ptr< Expression >, std::unique_ptr< Expression >> &rhs) |
|
Definition at line 13 of file literal.hpp.
◆ Literal() [1/2]
mbgl::style::expression::Literal::Literal |
( |
const Value & |
value_ | ) |
|
|
inline |
◆ Literal() [2/2]
mbgl::style::expression::Literal::Literal |
( |
const type::Array & |
type_, |
|
|
std::vector< Value > |
value_ |
|
) |
| |
|
inline |
◆ eachChild()
void mbgl::style::expression::Literal::eachChild |
( |
const std::function< void(const Expression &)> & |
| ) |
const |
|
inlineoverridevirtual |
◆ evaluate()
◆ getOperator()
std::string mbgl::style::expression::Literal::getOperator |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getValue()
Value mbgl::style::expression::Literal::getValue |
( |
| ) |
const |
|
inline |
◆ operator==()
bool mbgl::style::expression::Literal::operator== |
( |
const Expression & |
e | ) |
const |
|
inlineoverridevirtual |
◆ parse()
◆ possibleOutputs()
std::vector<std::optional<Value> > mbgl::style::expression::Literal::possibleOutputs |
( |
| ) |
const |
|
inlineoverridevirtual |
Statically analyze the expression, attempting to enumerate possible outputs. Returns an array of values plus the sentinel null optional value, used to indicate that the complete set of outputs is statically undecidable.
Implements mbgl::style::expression::Expression.
Definition at line 36 of file literal.hpp.
◆ serialize()
mbgl::Value mbgl::style::expression::Literal::serialize |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/style/expression/literal.hpp