MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
value.hpp File Reference
#include <mbgl/style/expression/collator.hpp>
#include <mbgl/style/expression/formatted.hpp>
#include <mbgl/style/expression/image.hpp>
#include <mbgl/style/expression/type.hpp>
#include <mbgl/style/position.hpp>
#include <mbgl/style/rotation.hpp>
#include <mbgl/style/types.hpp>
#include <mbgl/util/color.hpp>
#include <mbgl/util/enum.hpp>
#include <mbgl/util/feature.hpp>
#include <mbgl/util/variant.hpp>
#include <array>
#include <vector>
#include <optional>

Go to the source code of this file.

Classes

struct  mbgl::style::expression::Value
 
struct  mbgl::style::expression::ValueConverter< T, Enable >
 
struct  mbgl::style::expression::ValueConverter< Value >
 
struct  mbgl::style::expression::ValueConverter< mbgl::Value >
 
struct  mbgl::style::expression::ValueConverter< float >
 
struct  mbgl::style::expression::ValueConverter< Position >
 
struct  mbgl::style::expression::ValueConverter< Rotation >
 

Namespaces

 mbgl
 
 mbgl::style
 
 mbgl::style::expression
 

Typedefs

using mbgl::style::expression::ValueBase = variant< NullValue, bool, double, std::string, Color, Collator, Formatted, Image, mapbox::util::recursive_wrapper< std::vector< Value > >, mapbox::util::recursive_wrapper< std::unordered_map< std::string, Value > >>
 

Functions

type::Type mbgl::style::expression::typeOf (const Value &value)
 
std::string mbgl::style::expression::toString (const Value &value)
 
std::string mbgl::style::expression::stringify (const Value &value)
 
template<typename T >
type::Type mbgl::style::expression::valueTypeToExpressionType ()
 
template<typename T >
Value mbgl::style::expression::toExpressionValue (const T &value)
 
template<typename T >
std::optional< T > mbgl::style::expression::fromExpressionValue (const Value &value)
 
template<typename T >
std::vector< std::optional< T > > mbgl::style::expression::fromExpressionValues (const std::vector< std::optional< Value >> &values)
 

Variables

constexpr NullValue mbgl::style::expression::Null = NullValue()