4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef LAYOUTMODULELIST_H
13 #define LAYOUTMODULELIST_H
20 class LayoutModuleList {
23 typedef std::list<std::string>::const_iterator const_iterator;
25 typedef std::list<std::string>::iterator iterator;
27 iterator begin() { return lml_.begin(); }
29 iterator end() { return lml_.end(); }
31 const_iterator begin() const { return lml_.begin(); }
33 const_iterator end() const { return lml_.end(); }
35 void clear() { lml_.clear(); }
37 bool empty() const { return lml_.empty(); }
39 iterator erase(iterator pos) { return lml_.erase(pos); }
41 iterator insert(iterator pos, std::string const & str)
42 { return lml_.insert(pos, str); }
44 void push_back(std::string const & str) { lml_.push_back(str); }
46 size_t size() const { return lml_.size(); }
47 /// This is needed in GuiDocument. It seems better than an
48 /// implicit conversion.
49 std::list<std::string> const & list() const { return lml_; }
51 std::list<std::string> lml_;