From 972ec9851bcad017b9680562959587f638535aa5 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Wed, 10 Apr 2019 01:58:11 +0200 Subject: [PATCH] Timeline: perform track profile with given interpreter object --- src/stage/timeline/track-profile.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/stage/timeline/track-profile.hpp b/src/stage/timeline/track-profile.hpp index 8cd50f52b..f13bc7912 100644 --- a/src/stage/timeline/track-profile.hpp +++ b/src/stage/timeline/track-profile.hpp @@ -80,7 +80,7 @@ namespace timeline { struct TrackProfile { using SlopeVerb = lib::VerbToken; - using SlopeElm = std::tuple; + using SlopeElm = std::pair; using Elements = std::vector; Elements elements; @@ -93,6 +93,13 @@ namespace timeline { return not util::isnil (elements); } + void + performWith (ProfileInterpreter& interpreter) + { + for (auto& slopeElm : elements) + slopeElm.first.applyTo (interpreter, uint(slopeElm.second)); + } + private:/* ===== Internals: handling tokens ===== */ void append (SlopeVerb::Handler handler, Literal token, uint param)