]> git.lyx.org Git - lyx.git/blobdiff - src/support/limited_stack.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / limited_stack.h
index f56d0c3ca621f430f9f1f80691c00254c0ce2259..21a5059c5087ed36fa90f8fb9bd4b23d324b2828 100644 (file)
@@ -26,6 +26,7 @@ public:
        typedef std::deque<T> container_type;
        typedef typename container_type::value_type value_type;
        typedef typename container_type::size_type size_type;
+       typedef typename container_type::const_iterator const_iterator;
 
        /// limit is the maximum size of the stack
        limited_stack(size_type limit = 100) {
@@ -33,7 +34,7 @@ public:
        }
 
        /// Return the top element.
-       value_type top() {
+       value_type top() {
                return c_.front();
        }
 
@@ -70,6 +71,15 @@ public:
        size_type size() const {
                return c_.size();
        }
+
+       const_iterator begin() const {
+               return c_.begin();
+       }
+
+       const_iterator end() const {
+               return c_.end();
+       }
+
 private:
        /// Internal contents.
        container_type c_;