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

#include <property_expression.hpp>

Inheritance diagram for mbgl::style::PropertyExpression< T >:
mbgl::style::PropertyExpressionBase

Public Member Functions

 PropertyExpression (std::unique_ptr< expression::Expression > expression_, std::optional< T > defaultValue_=std::nullopt)
 
evaluate (const expression::EvaluationContext &context, T finalDefaultValue=T()) const
 
evaluate (float zoom) const
 
evaluate (const GeometryTileFeature &feature, T finalDefaultValue) const
 
evaluate (const GeometryTileFeature &feature, const std::set< std::string > &availableImages, T finalDefaultValue) const
 
evaluate (const GeometryTileFeature &feature, const CanonicalTileID &canonical, T finalDefaultValue) const
 
evaluate (const GeometryTileFeature &feature, const std::set< std::string > &availableImages, const CanonicalTileID &canonical, T finalDefaultValue) const
 
evaluate (float zoom, const GeometryTileFeature &feature, T finalDefaultValue) const
 
evaluate (float zoom, const GeometryTileFeature &feature, const std::set< std::string > &availableImages, T finalDefaultValue) const
 
evaluate (float zoom, const GeometryTileFeature &feature, const std::set< std::string > &availableImages, const CanonicalTileID &canonical, T finalDefaultValue) const
 
evaluate (float zoom, const GeometryTileFeature &feature, const CanonicalTileID &canonical, T finalDefaultValue) const
 
evaluate (float zoom, const GeometryTileFeature &feature, const FeatureState &state, T finalDefaultValue) const
 
std::vector< std::optional< T > > possibleOutputs () const
 
- Public Member Functions inherited from mbgl::style::PropertyExpressionBase
 PropertyExpressionBase (std::unique_ptr< expression::Expression >)
 
bool isZoomConstant () const noexcept
 
bool isFeatureConstant () const noexcept
 
bool isRuntimeConstant () const noexcept
 
float interpolationFactor (const Range< float > &, float) const noexcept
 
Range< float > getCoveringStops (float, float) const noexcept
 
const expression::ExpressiongetExpression () const noexcept
 
std::shared_ptr< const expression::ExpressiongetSharedExpression () const noexcept
 

Friends

bool operator== (const PropertyExpression &lhs, const PropertyExpression &rhs)
 

Additional Inherited Members

- Public Attributes inherited from mbgl::style::PropertyExpressionBase
bool useIntegerZoom = false
 
- Protected Attributes inherited from mbgl::style::PropertyExpressionBase
std::shared_ptr< const expression::Expressionexpression
 
variant< std::nullptr_t, const expression::Interpolate *, const expression::Step * > zoomCurve
 
bool isZoomConstant_
 
bool isFeatureConstant_
 
bool isRuntimeConstant_
 

Detailed Description

template<class T>
class mbgl::style::PropertyExpression< T >

Definition at line 42 of file property_expression.hpp.

Constructor & Destructor Documentation

◆ PropertyExpression()

template<class T >
mbgl::style::PropertyExpression< T >::PropertyExpression ( std::unique_ptr< expression::Expression expression_,
std::optional< T >  defaultValue_ = std::nullopt 
)
inline

Definition at line 45 of file property_expression.hpp.

Member Function Documentation

◆ evaluate() [1/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( const expression::EvaluationContext context,
finalDefaultValue = T() 
) const
inline

Definition at line 50 of file property_expression.hpp.

◆ evaluate() [2/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( const GeometryTileFeature &  feature,
const CanonicalTileID canonical,
finalDefaultValue 
) const
inline

Definition at line 78 of file property_expression.hpp.

◆ evaluate() [3/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( const GeometryTileFeature &  feature,
const std::set< std::string > &  availableImages,
const CanonicalTileID canonical,
finalDefaultValue 
) const
inline

Definition at line 82 of file property_expression.hpp.

◆ evaluate() [4/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( const GeometryTileFeature &  feature,
const std::set< std::string > &  availableImages,
finalDefaultValue 
) const
inline

Definition at line 71 of file property_expression.hpp.

◆ evaluate() [5/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( const GeometryTileFeature &  feature,
finalDefaultValue 
) const
inline

Definition at line 65 of file property_expression.hpp.

◆ evaluate() [6/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom) const
inline

Definition at line 59 of file property_expression.hpp.

◆ evaluate() [7/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom,
const GeometryTileFeature &  feature,
const CanonicalTileID canonical,
finalDefaultValue 
) const
inline

Definition at line 115 of file property_expression.hpp.

◆ evaluate() [8/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom,
const GeometryTileFeature &  feature,
const FeatureState state,
finalDefaultValue 
) const
inline

Definition at line 123 of file property_expression.hpp.

◆ evaluate() [9/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom,
const GeometryTileFeature &  feature,
const std::set< std::string > &  availableImages,
const CanonicalTileID canonical,
finalDefaultValue 
) const
inline

Definition at line 104 of file property_expression.hpp.

◆ evaluate() [10/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom,
const GeometryTileFeature &  feature,
const std::set< std::string > &  availableImages,
finalDefaultValue 
) const
inline

Definition at line 96 of file property_expression.hpp.

◆ evaluate() [11/11]

template<class T >
T mbgl::style::PropertyExpression< T >::evaluate ( float  zoom,
const GeometryTileFeature &  feature,
finalDefaultValue 
) const
inline

Definition at line 92 of file property_expression.hpp.

◆ possibleOutputs()

template<class T >
std::vector<std::optional<T> > mbgl::style::PropertyExpression< T >::possibleOutputs ( ) const
inline

Definition at line 128 of file property_expression.hpp.

Friends And Related Function Documentation

◆ operator==

template<class T >
bool operator== ( const PropertyExpression< T > &  lhs,
const PropertyExpression< T > &  rhs 
)
friend

Definition at line 132 of file property_expression.hpp.


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