]> git.lyx.org Git - lyx.git/blobdiff - src/BackStack.h
Forgot to add this files.
[lyx.git] / src / BackStack.h
index 69b21695623d904225c42280a74d9b1391062cfb..ca5a1b5264ced59ecb0a6aef5fd0e02d2495adda 100644 (file)
 
 #include "LString.h"
 
-using std::stack;
-
-// Created by Alejandro Aguilar Sierra, 970806
-
 /**  Utility to get back from a reference or from a child document.
+     @author Alejandro Aguilar Sierra
+     @version 970806
  */
 class BackStack {
 private:
        ///
        struct BackStackItem {
                ///
+               BackStackItem() 
+                       : x(0), y(0) {}
+               ///
                BackStackItem(string const & f, int xx, int yy)
                        : fname(f), x(xx), y(yy) {}
                /// Filename
@@ -49,13 +50,15 @@ public:
                stakk.pop();
                return bit.fname;
        }
-       ///
+       /**
+          @return returns #true# if the stack is empty, #false# otherwise.
+        */
        bool empty() const {
                return stakk.empty();
        }
 private:
        ///
-       stack<BackStackItem> stakk;
+       std::stack<BackStackItem> stakk;
 };
 
 #endif