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

#include <property_value.hpp>

Public Member Functions

 PropertyValue ()=default
 
 PropertyValue (T constant)
 
 PropertyValue (PropertyExpression< T > expression)
 
bool isUndefined () const
 
bool isConstant () const
 
bool isExpression () const
 
bool isDataDriven () const
 
bool isZoomConstant () const
 
const T & asConstant () const
 
const PropertyExpression< T > & asExpression () const
 
template<class... Ts>
auto match (Ts &&... ts) const
 
template<typename Evaluator >
auto evaluate (const Evaluator &evaluator, TimePoint={}) const
 
bool hasDataDrivenPropertyDifference (const PropertyValue< T > &other) const
 

Friends

bool operator== (const PropertyValue &lhs, const PropertyValue &rhs)
 
bool operator!= (const PropertyValue &lhs, const PropertyValue &rhs)
 

Detailed Description

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

Definition at line 11 of file property_value.hpp.

Constructor & Destructor Documentation

◆ PropertyValue() [1/3]

template<class T >
mbgl::style::PropertyValue< T >::PropertyValue ( )
default

◆ PropertyValue() [2/3]

template<class T >
mbgl::style::PropertyValue< T >::PropertyValue ( constant)
inline

Definition at line 33 of file property_value.hpp.

◆ PropertyValue() [3/3]

template<class T >
mbgl::style::PropertyValue< T >::PropertyValue ( PropertyExpression< T >  expression)
inline

Definition at line 36 of file property_value.hpp.

Member Function Documentation

◆ asConstant()

template<class T >
const T& mbgl::style::PropertyValue< T >::asConstant ( ) const
inline

Definition at line 67 of file property_value.hpp.

◆ asExpression()

template<class T >
const PropertyExpression<T>& mbgl::style::PropertyValue< T >::asExpression ( ) const
inline

Definition at line 71 of file property_value.hpp.

◆ evaluate()

template<class T >
template<typename Evaluator >
auto mbgl::style::PropertyValue< T >::evaluate ( const Evaluator &  evaluator,
TimePoint  = {} 
) const
inline

Definition at line 81 of file property_value.hpp.

◆ hasDataDrivenPropertyDifference()

template<class T >
bool mbgl::style::PropertyValue< T >::hasDataDrivenPropertyDifference ( const PropertyValue< T > &  other) const
inline

Definition at line 85 of file property_value.hpp.

◆ isConstant()

template<class T >
bool mbgl::style::PropertyValue< T >::isConstant ( ) const
inline

Definition at line 43 of file property_value.hpp.

◆ isDataDriven()

template<class T >
bool mbgl::style::PropertyValue< T >::isDataDriven ( ) const
inline

Definition at line 51 of file property_value.hpp.

◆ isExpression()

template<class T >
bool mbgl::style::PropertyValue< T >::isExpression ( ) const
inline

Definition at line 47 of file property_value.hpp.

◆ isUndefined()

template<class T >
bool mbgl::style::PropertyValue< T >::isUndefined ( ) const
inline

Definition at line 39 of file property_value.hpp.

◆ isZoomConstant()

template<class T >
bool mbgl::style::PropertyValue< T >::isZoomConstant ( ) const
inline

Definition at line 59 of file property_value.hpp.

◆ match()

template<class T >
template<class... Ts>
auto mbgl::style::PropertyValue< T >::match ( Ts &&...  ts) const
inline

Definition at line 76 of file property_value.hpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 25 of file property_value.hpp.

◆ operator==

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

Definition at line 20 of file property_value.hpp.


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