diff -r 70eb948a2b02 -r 1f368f0a323b src/file.h --- a/src/file.h Sun May 19 00:47:07 2013 +0300 +++ b/src/file.h Sun May 19 01:31:13 2013 +0300 @@ -40,6 +40,9 @@ // ============================================================================= class OpenFile { public: + typedef std::vector::iterator it; + typedef std::vector::const_iterator c_it; + str m_filename, m_title; vector m_objs; vector m_objCache; // Cache of this file's contents, if desired @@ -73,6 +76,11 @@ } void insertObj (const ulong pos, LDObject* obj); + + it begin () { return m_objs.begin (); } + it end () { return m_objs.end (); } + c_it cbegin () const { return m_objs.cbegin (); } + c_it cend () const { return m_objs.cend (); } }; // Close all current loaded files and start off blank.