MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
function.hpp
Go to the documentation of this file.
1 #pragma once
2 
8 
9 #include <optional>
10 
11 namespace mbgl {
12 namespace style {
13 namespace conversion {
14 
15 bool hasTokens(const std::string&);
16 std::unique_ptr<expression::Expression> convertTokenStringToFormatExpression(const std::string&);
17 std::unique_ptr<expression::Expression> convertTokenStringToImageExpression(const std::string&);
18 std::unique_ptr<expression::Expression> convertTokenStringToExpression(const std::string&);
19 
20 std::optional<std::unique_ptr<expression::Expression>> convertFunctionToExpression(expression::type::Type, const Convertible&, Error&, bool convertTokens);
21 
22 template <class T>
23 std::optional<PropertyExpression<T>> convertFunctionToExpression(const Convertible& value, Error& error, bool convertTokens);
24 
25 } // namespace conversion
26 } // namespace style
27 } // namespace mbgl
std::unique_ptr< expression::Expression > convertTokenStringToExpression(const std::string &)
bool hasTokens(const std::string &)
std::optional< std::unique_ptr< expression::Expression > > convertFunctionToExpression(expression::type::Type, const Convertible &, Error &, bool convertTokens)
std::unique_ptr< expression::Expression > convertTokenStringToImageExpression(const std::string &)
std::unique_ptr< expression::Expression > convertTokenStringToFormatExpression(const std::string &)
std::unique_ptr< Expression > error(std::string)
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
variant< NullType, NumberType, BooleanType, StringType, ColorType, ObjectType, ValueType, mapbox::util::recursive_wrapper< Array >, CollatorType, FormattedType, ErrorType, ImageType > Type
Definition: type.hpp:108
Definition: actor.hpp:15