3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
13 #include "FloatList.h"
20 FloatList::FloatList()
24 FloatList::const_iterator
FloatList::begin() const
30 FloatList::const_iterator
FloatList::end() const
36 void FloatList::newFloat(Floating
const & fl
)
42 string
const FloatList::defaultPlacement(string
const & t
) const
44 List::const_iterator cit
= list
.find(t
);
45 if (cit
!= list
.end())
46 return cit
->second
.placement();
51 bool FloatList::typeExist(string
const & t
) const
53 List::const_iterator cit
= list
.find(t
);
54 return cit
!= list
.end();
58 Floating
const & FloatList::getType(string
const & t
) const
60 // I wish we could use exceptions
61 List::const_iterator cit
= list
.find(t
);
62 if (cit
!= list
.end())
64 #ifdef HAVE_EXCEPTIONS
65 throw UnknownFloatType(t
);
67 static Floating empty_float
;
73 void FloatList::erase(string
const & t
)
79 FloatList::const_iterator
FloatList::operator[](string
const & t
) const