From d39956a7b0a38ebeda147d52aa734e992c425d9f Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Thu, 23 Oct 2014 12:29:38 +0200 Subject: More work on drawing: interruptions work now halfway. --- dw/iterator.hh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'dw/iterator.hh') diff --git a/dw/iterator.hh b/dw/iterator.hh index 9460adc4..773cf303 100644 --- a/dw/iterator.hh +++ b/dw/iterator.hh @@ -263,6 +263,30 @@ public: hpos, vpos); } }; +/** + * \brief Some completely different kind of iterator: ... + */ +class StackingIteratorStack +{ +private: + lout::container::untyped::Vector *vector; + int topPos; + +public: + StackingIteratorStack (); + ~StackingIteratorStack (); + + void intoStringBuffer(lout::misc::StringBuffer *sb); + + inline bool atRealTop () { return topPos == vector->size () - 1; } + inline lout::object::Object *getTop () { return vector->get (topPos); } + + void push (lout::object::Object *object); + void pop (); + void forward (); + void backward (); +}; + } // namespace core } // namespace dw -- cgit v1.2.3