Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template iset_index

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Indexes and Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template iset_index

boost::interprocess::iset_index

Synopsis

// In header: <boost/interprocess/indexes/iset_index.hpp>
template<typename MapConfig> 
class iset_index : public iset_index_aux::index_t< MapConfig > {
public:
  // types
  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;        
  // construct/copy/destruct
  iset_index(typename MapConfig::segment_manager_base *);
  // public member functions
  void reserve(typename MapConfig::segment_manager_base::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 &);
};

Description

Тип индекса, основанный на бустере::интрузивный::set. Просто происходит от boost::intrusive::set и определяет интерфейс, необходимый для управляемых сегментов памяти.

iset_index public construct/copy/destruct

  1. <
    iset_index(typenameMapConfig::segment_manager_base*);
    >

    Конструктор. Введите указатель на менеджера сегмента. Умеет бросать

iset_index public member functions

  1. <
    voidreserve(typenameMapConfig::segment_manager_base::size_type);
    >

    Это резервирует память для оптимизации вставки n элементов в индекс

  2. <
    voidshrink_to_fit();
    >Это освобождает все ненужные воспоминания.
  3. <
    iteratorfind(constintrusive_compare_key_type&key);
    >
  4. <
    const_iteratorfind(constintrusive_compare_key_type&key)const;
    >
  5. <
    std::pair<iterator,bool>
    insert_check(constintrusive_compare_key_type&key,
                insert_commit_data&commit_data);
    >

PrevUpHomeNext

Статья Class template iset_index раздела The Boost C++ Libraries BoostBook Documentation Subset Indexes and Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Indexes and Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 21:14:14/0.0064280033111572/0