]> git.lyx.org Git - lyx.git/blob - src/FloatList.h
Make us satisfy concept checks
[lyx.git] / src / FloatList.h
1 // -*- C++ -*-
2 /**
3  * \file FloatList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FLOATLIST_H
13 #define FLOATLIST_H
14
15 #include "Floating.h"
16
17 #include <map>
18 #include <string>
19
20
21 ///
22 class FloatList {
23 public:
24         ///
25         typedef std::map<std::string, Floating> List;
26         ///
27         typedef List::const_iterator const_iterator;
28         ///
29         FloatList();
30         ///
31         const_iterator begin() const;
32         ///
33         const_iterator end() const;
34         ///
35         void newFloat(Floating const & fl);
36         ///
37         std::string const defaultPlacement(std::string const & t) const;
38         ///
39         bool typeExist(std::string const & t) const;
40         ///
41         Floating const & getType(std::string const & t) const;
42         ///
43         void erase(std::string const & t);
44         ///
45         const_iterator operator[](std::string const & t) const;
46 private:
47         ///
48         List list;
49 };
50
51 #endif