22 #include <boost/multi_index_container.hpp>
23 #include <boost/multi_index/composite_key.hpp>
24 #include <boost/multi_index/identity.hpp>
25 #include <boost/multi_index/mem_fun.hpp>
26 #include <boost/multi_index/ordered_index.hpp>
27 #include <boost/multi_index/random_access_index.hpp>
32 : boost::multi_index::composite_key<
33 SwFrameFormat*, boost::multi_index::const_mem_fun<SwFormat, sal_uInt16, &SwFormat::Which>,
34 boost::multi_index::const_mem_fun<SwFormat, const OUString&, &SwFormat::GetName>,
35 boost::multi_index::identity<SwFrameFormat*>
40 typedef boost::multi_index_container<
42 boost::multi_index::indexed_by<boost::multi_index::random_access<>,
43 boost::multi_index::ordered_unique<type_name_key>>>
52 typedef SwFrameFormatsBase::nth_index<0>::type
ByPos;
70 bool empty()
const {
return m_Array.empty(); }
71 size_t size()
const {
return m_Array.size(); }
74 std::pair<const_iterator, bool> push_back(
const value_type& x);
77 bool erase(
const value_type& x);
78 void erase(size_type index);
79 void erase(const_iterator
const& position);
84 const_iterator
find(
const value_type& x)
const;
88 std::pair<const_range_iterator, const_range_iterator> rangeFind(sal_uInt16 type,
89 const OUString& name)
const;
92 std::pair<const_range_iterator, const_range_iterator> rangeFind(
const value_type& x)
const;
94 const_range_iterator
rangeEnd()
const {
return m_TypeAndNameIndex.end(); }
97 return m_Array.project<0>(position);
100 const value_type&
operator[](
size_t index_)
const {
return m_PosIndex.operator[](index_); }
101 const value_type&
front()
const {
return m_PosIndex.front(); }
102 const value_type&
back()
const {
return m_PosIndex.back(); }
103 const_iterator
begin()
const {
return m_PosIndex.begin(); }
104 const_iterator
end()
const {
return m_PosIndex.end(); }
117 void DeleteAndDestroyAll(
bool keepDefault =
false);
119 bool newDefault(
const value_type& x);
120 void newDefault(const_iterator
const& position);
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
struct _xmlTextWriter * xmlTextWriterPtr