Boost C++ Libraries Home Libraries People FAQ More

Next

Chapter 1. Boost.Bimap

Matias Capeletto

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents 目錄

Preface 前言
Introduction 簡介
One minute tutorial 一分鐘教程
The tutorial 指南
Roadmap 路標
Discovering the bimap framework 介紹 bimap 框架
Controlling collection types 控制集合的類型
The collection of relations type 相關類型的集合
Differences with standard maps 與標準 map 的差異
Useful functions 有用的函數
Bimaps with user defined names 帶用戶自定義名字的 bimap
Unconstrained Sets 不受限的 set
Additional information 其它信息
Complete instantiation scheme 完全的實例化方案
Bimap and Boost  Bimap 與 Boost
Bimap and MultiIndex  Bimap 與 MultiIndex
Boost Libraries that work well with Boost.Bimap 可以和 Boost.Bimap 一起使用的 Boost 庫
Dependencies 依賴關係
Reference 參考
Headers 頭文件
Bimap Reference  Bimap 參考
set_of Reference  set_of 參考
unordered_set_of Reference  unordered_set_of 參考
list_of Reference  list_of 參考
vector_of Reference  vector_of 參考
unconstrained_set_of Reference  unconstrained_set_of 參考
Compiler specifics 關於編譯器的特別說明
Performance 性能
Examples 示例
Examples list 例子列表
Simple Bimap 簡單的 Bimap
Mighty Bimap 強大的 Bimap
MultiIndex to Bimap Path - Bidirectional Map 從 MultiIndex 到 Bimap 的道路 - 雙向 Map
MultiIndex to Bimap Path - Hashed indices 從 MultiIndex 到 Bimap 的道路 - 散列索引
Test suite 測試套件
Future work 未來的工作
Release notes 發佈說明
Rationale 原理
General Design 概要設計
Additional Features 其它特性
Code 代碼
The student and the mentor 學生與導師
History 歷史
The long path from Code Project to Boost 從 Code Project 到 Boost 的漫長道路
MultiIndex and Bimap  MultiIndex 與 Bimap
Acknowledgements 鳴謝

Description 說明

boost.bimap.logo

Boost.Bimap is a bidirectional maps library for C++. With Boost.Bimap you can create associative containers in which both types can be used as key. A bimap<X,Y> can be thought of as a combination of a std::map<X,Y> and a std::map<Y,X>. The learning curve of bimap is almost flat if you know how to use standard containers. A great deal of effort has been put into mapping the naming scheme of the STL in Boost.Bimap. The library is designed to match the common STL containers.

Boost.Bimap 是一個C++的雙向 map 庫。使用 Boost.Bimap,你可以創建兩個類型都可用作鍵值的關聯容器。bimap<X,Y> 可以被視為 std::map<X,Y> 加上 std::map<Y,X>。如果你知道如何使用標準容器,那麼 bimap 的學習曲線就幾乎是平的。在 Boost.Bimap 中作出了大量的努力,以符合STL的命名規則。本庫是按照與常見STL容器相匹配的方式進行設計的。

Influences and Related Work 影響及相關工作

The design of Boost.Bimap interface follows the standard template library. It has been strongly influenced by Joaquin Lopez Munoz's Boost.MultiIndex library (the heart of bimaps) and codeproject::bimap library.

Boost.Bimap 接口的設計是遵照標準模板庫的。它受到了 Joaquin Lopez Munoz 的 Boost.MultiIndex 庫(bimap 的核心)以及 codeproject::bimap 庫的強烈影響。

Last revised: March 15, 2008 at 13:59:41 GMT


Next