LibreOffice Module svl (master) 1
|
This array contains a set of SfxPoolItems, if those items are poolable then each item has a unique set of properties, and we often search linearly to ensure uniqueness. More...
#include <poolio.hxx>
Public Member Functions | |
o3tl::sorted_vector< SfxPoolItem * >::const_iterator | begin () const |
o3tl::sorted_vector< SfxPoolItem * >::const_iterator | end () const |
void | clear () |
clear array of PoolItem variants after all PoolItems are deleted or all ref counts are decreased More... | |
size_t | size () const |
bool | empty () const |
o3tl::sorted_vector< SfxPoolItem * >::const_iterator | find (SfxPoolItem *pItem) const |
void | insert (SfxPoolItem *pItem) |
const SfxPoolItem * | findByLessThan (const SfxPoolItem *pNeedle) const |
std::vector< const SfxPoolItem * > | findSurrogateRange (const SfxPoolItem *pNeedle) const |
void | erase (o3tl::sorted_vector< SfxPoolItem * >::const_iterator it) |
Private Attributes | |
o3tl::sorted_vector< SfxPoolItem * > | maPoolItemSet |
std::vector< SfxPoolItem * > | maSortablePoolItems |
This array contains a set of SfxPoolItems, if those items are poolable then each item has a unique set of properties, and we often search linearly to ensure uniqueness.
If they are non-poolable we maintain an (often large) list of pointers.
Definition at line 46 of file poolio.hxx.
|
inline |
Definition at line 56 of file poolio.hxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), and maPoolItemSet.
Referenced by SfxItemPool::GetItemSurrogates(), and SfxItemPool::PutImpl().
void SfxPoolItemArray_Impl::clear | ( | ) |
clear array of PoolItem variants after all PoolItems are deleted or all ref counts are decreased
Definition at line 91 of file itempool.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), maPoolItemSet, and maSortablePoolItems.
|
inline |
Definition at line 62 of file poolio.hxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), and maPoolItemSet.
|
inline |
Definition at line 57 of file poolio.hxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), and maPoolItemSet.
Referenced by SfxItemPool::GetItemSurrogates(), SfxItemPool::PutImpl(), and SfxItemPool::Remove().
|
inline |
Definition at line 118 of file poolio.hxx.
References CompareSortablePoolItems(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), maPoolItemSet, and maSortablePoolItems.
Referenced by SfxItemPool::Remove().
|
inline |
Definition at line 63 of file poolio.hxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), and maPoolItemSet.
Referenced by SfxItemPool::PutImpl(), and SfxItemPool::Remove().
|
inline |
Definition at line 79 of file poolio.hxx.
References CompareSortablePoolItems(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::front(), maPoolItemSet, and maSortablePoolItems.
Referenced by SfxItemPool::PutImpl().
|
inline |
Definition at line 97 of file poolio.hxx.
References CompareSortablePoolItems(), maPoolItemSet, maSortablePoolItems, and p.
Referenced by SfxItemPool::FindItemSurrogate().
|
inline |
Definition at line 64 of file poolio.hxx.
References CompareSortablePoolItems(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SfxPoolItem::IsSortable(), maPoolItemSet, and maSortablePoolItems.
Referenced by SfxItemPool::PutImpl().
|
inline |
Definition at line 61 of file poolio.hxx.
References maPoolItemSet, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SfxItemPool::GetItemCount2().
|
private |
Definition at line 49 of file poolio.hxx.
Referenced by begin(), clear(), empty(), end(), erase(), find(), findByLessThan(), findSurrogateRange(), insert(), and size().
|
private |
Definition at line 54 of file poolio.hxx.
Referenced by clear(), erase(), findByLessThan(), findSurrogateRange(), and insert().