Class template iunordered_set_index
boost::interprocess::iunordered_set_index
 
Synopsis
template<typename MapConfig> 
class iunordered_set_index : private iunordered_set_index_aux::allocator_holder< MapConfig >,
                             public iunordered_set_index_aux::index_t< MapConfig >
{
public:
  
  typedef index_type::iterator           iterator;          
  typedef index_type::const_iterator     const_iterator;    
  typedef index_type::insert_commit_data insert_commit_data;
  typedef index_type::value_type         value_type;        
  typedef index_type::bucket_ptr         bucket_ptr;        
  typedef index_type::bucket_type        bucket_type;       
  typedef index_type::bucket_traits      bucket_traits;     
  typedef index_type::size_type          size_type;         
  
  iunordered_set_index(segment_manager_base *);
  ~iunordered_set_index();
  
  void reserve(size_type);
  void shrink_to_fit();
  iterator find(const intrusive_compare_key_type &);
  const_iterator find(const intrusive_compare_key_type &) const;
  std::pair< iterator, bool > 
  insert_check(const intrusive_compare_key_type &, insert_commit_data &);
  iterator insert_commit(value_type &, insert_commit_data &);
};
Description
Тип индекса, основанный на бустере::интрузивный::set. Просто происходит от boost::intrusive::set и определяет интерфейс, необходимый для управляемых сегментов памяти.
iunordered_set_index 
        public
       construct/copy/destruct
- <iunordered_set_index(segment_manager_base*mngr); >Конструктор. Введите указатель на менеджера сегмента. Умеет бросать 
- <~iunordered_set_index(); >
 
iunordered_set_index public member functions
- <voidreserve(size_typenew_n); >Это резервирует память для оптимизации вставки n элементов в индекс 
- <voidshrink_to_fit(); >Это позволяет освободить неиспользованную ранее выделенную память. 
- <iteratorfind(constintrusive_compare_key_type&key); >
- <const_iteratorfind(constintrusive_compare_key_type&key)const; >
- <std::pair<iterator,bool>
insert_check(constintrusive_compare_key_type&key,
            insert_commit_data&commit_data);>
- <iteratorinsert_commit(value_type&val,insert_commit_data&commit_data); >