Sese Framework
x.y.z
A cross-platform framework
|
双向映射表 更多...
#include <Bimap.h>
Public 类型 | |
using | BimapKeyType = K |
using | BimapValueType = V |
Public 成员函数 | |
Bimap ()=default | |
~Bimap ()=default | |
Bimap (const Bimap &)=default | |
Bimap & | operator= (const Bimap &)=default |
Bimap (Bimap &&) noexcept=default | |
Bimap & | operator= (Bimap &&) noexcept=default |
Bimap (const std::initializer_list< std::pair< BimapKeyType, BimapValueType > > &init) | |
decltype(auto) | begin () const |
decltype(auto) | end () const |
void | insert (const BimapKeyType &key, const BimapValueType &value) |
void | eraseByKey (const BimapKeyType &key) |
void | eraseByValue (const BimapValueType &value) |
bool | tryEraseByKey (const BimapKeyType &key) |
bool | tryEraseByValue (const BimapValueType &value) |
bool | existByKey (const BimapKeyType &key) const |
bool | existByValue (const BimapValueType &value) const |
const BimapValueType & | getByKey (const BimapKeyType &key) const |
BimapValueType & | getByKey (const BimapKeyType &key) |
const BimapKeyType & | getByValue (const BimapValueType &value) const |
BimapKeyType & | getByValue (const BimapValueType &value) |
bool | empty () const |
size_t | size () const |
void | clear () |
Private 属性 | |
std::map< BimapKeyType, BimapValueType > | first {} |
std::map< BimapValueType, BimapKeyType > | second {} |
双向映射表
K | 键类型 |
V | 值类型 |
using sese::Bimap< K, V >::BimapKeyType = K |
using sese::Bimap< K, V >::BimapValueType = V |
|
default |
|
default |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
引用了 sese::Bimap< K, V >::first , 以及 sese::Bimap< K, V >::second.
被这些函数引用 sese::Bimap< K, V >::Bimap().
|
defaultnoexcept |
|
default |
|
inlinenodiscard |
|
inline |
|
inline |
|
private |
被这些函数引用 sese::Bimap< K, V >::begin(), sese::Bimap< K, V >::clear(), sese::Bimap< K, V >::empty(), sese::Bimap< K, V >::end(), sese::Bimap< K, V >::eraseByKey(), sese::Bimap< K, V >::eraseByValue(), sese::Bimap< K, V >::existByKey(), sese::Bimap< K, V >::getByKey(), sese::Bimap< K, V >::getByKey(), sese::Bimap< K, V >::insert(), sese::Bimap< K, V >::size() , 以及 sese::Bimap< K, V >::tryEraseByKey().
|
private |