summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/assertion.hpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-02-08 15:23:29 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-02-28 16:09:09 -0800
commit75feda12f17dececadf72986c45af78fe18afc56 (patch)
treebb68d8bfa883b3d72f696d9a56a9244169610651 /include/mbgl/style/expression/assertion.hpp
parentf4833a2c4e760aac8f461110135e8180c63e0782 (diff)
downloadqtlocation-mapboxgl-75feda12f17dececadf72986c45af78fe18afc56.tar.gz
[core] Implement Expression::serialize()
Issue #10714 - Each expression stores its operator as a string, and default serialization is [operator, serialize(child1), ...] - Custom implementations of `serialize` for Expression types that don't follow the pattern - expression::Value -> mbgl::Value converter - node_expression bindings to expose `serialize`
Diffstat (limited to 'include/mbgl/style/expression/assertion.hpp')
-rw-r--r--include/mbgl/style/expression/assertion.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/assertion.hpp b/include/mbgl/style/expression/assertion.hpp
index 43ea73f2ba..d1e919b10f 100644
--- a/include/mbgl/style/expression/assertion.hpp
+++ b/include/mbgl/style/expression/assertion.hpp
@@ -26,6 +26,8 @@ public:
bool operator==(const Expression& e) const override;
std::vector<optional<Value>> possibleOutputs() const override;
+
+ std::string getOperator() const override;
private:
std::vector<std::unique_ptr<Expression>> inputs;