MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::style::expression::FormatSectionOverride< T > Class Template Referencefinal

#include <format_section_override.hpp>

Inheritance diagram for mbgl::style::expression::FormatSectionOverride< T >:
mbgl::style::expression::Expression

Public Member Functions

 FormatSectionOverride (const type::Type &type_, PossiblyEvaluatedPropertyValue< T > defaultValue_, std::string propertyName_)
 
EvaluationResult evaluate (const EvaluationContext &context) const final
 
void eachChild (const std::function< void(const Expression &)> &fn) const final
 
bool operator== (const Expression &e) const final
 
std::vector< std::optional< Value > > possibleOutputs () const final
 
std::string getOperator () const final
 
- Public Member Functions inherited from mbgl::style::expression::Expression
 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
 
virtual mbgl::Value serialize () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from mbgl::style::expression::Expression
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)
 

Detailed Description

template<class T>
class mbgl::style::expression::FormatSectionOverride< T >

Definition at line 11 of file format_section_override.hpp.

Constructor & Destructor Documentation

◆ FormatSectionOverride()

template<class T >
mbgl::style::expression::FormatSectionOverride< T >::FormatSectionOverride ( const type::Type type_,
PossiblyEvaluatedPropertyValue< T >  defaultValue_,
std::string  propertyName_ 
)
inline

Definition at line 13 of file format_section_override.hpp.

Member Function Documentation

◆ eachChild()

template<class T >
void mbgl::style::expression::FormatSectionOverride< T >::eachChild ( const std::function< void(const Expression &)> &  fn) const
inlinefinalvirtual

Implements mbgl::style::expression::Expression.

Definition at line 37 of file format_section_override.hpp.

◆ evaluate()

template<class T >
EvaluationResult mbgl::style::expression::FormatSectionOverride< T >::evaluate ( const EvaluationContext context) const
inlinefinalvirtual

Implements mbgl::style::expression::Expression.

Definition at line 21 of file format_section_override.hpp.

◆ getOperator()

template<class T >
std::string mbgl::style::expression::FormatSectionOverride< T >::getOperator ( ) const
inlinefinalvirtual

Implements mbgl::style::expression::Expression.

Definition at line 77 of file format_section_override.hpp.

◆ operator==()

template<class T >
bool mbgl::style::expression::FormatSectionOverride< T >::operator== ( const Expression e) const
inlinefinalvirtual

Implements mbgl::style::expression::Expression.

Definition at line 42 of file format_section_override.hpp.

◆ possibleOutputs()

template<class T >
std::vector<std::optional<Value> > mbgl::style::expression::FormatSectionOverride< T >::possibleOutputs ( ) const
inlinefinalvirtual

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 73 of file format_section_override.hpp.


The documentation for this class was generated from the following file: