CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > Class Template Reference

#include <bimap.h>

Inheritance diagram for codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >:
[legend]
Collaboration diagram for codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >:
[legend]

Public Types

typedef bimap< to_type_, from_type_, to_compare, from_compare, typename allocator_type::template rebind< direct_pair< const to_type_, const from_type_ > >::other > inv_bimap

Public Member Functions

 bimap (const from_compare &from_comp=from_compare(), const to_compare &to_comp=to_compare(), const allocator_type &al=allocator_type())
bimapoperator= (const bimap &r)
 bimap (const inv_bimap &r)
template<typename it_type>
 bimap (it_type first, it_type last, const from_compare &from_comp=from_compare(), const to_compare &to_comp=to_compare(), const allocator_type &al=allocator_type())
bool operator== (const bimap &r) const
bool operator!= (const bimap &r) const
bool operator< (const bimap &r) const
bool operator> (const bimap &r) const
bool operator<= (const bimap &r) const
bool operator>= (const bimap &r) const

Protected Types

typedef bimap_detail::select< bimap_detail::equal_types< from_type_, to_type_ >::value, bimap_equal_types< from_type_, to_type_, from_compare, to_compare, allocator_type >, bimap_different_types< from_type_, to_type_, from_compare, to_compare, allocator_type > >::result super

Detailed Description

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
class codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >

Definition at line 2040 of file bimap.h.

Member Typedef Documentation

◆ inv_bimap

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
typedef bimap< to_type_,from_type_, to_compare,from_compare, typename allocator_type::template rebind< direct_pair<const to_type_,const from_type_> >::other> codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::inv_bimap

Definition at line 2104 of file bimap.h.

◆ super

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
typedef bimap_detail::select<bimap_detail::equal_types<from_type_,to_type_>::value,bimap_equal_types<from_type_,to_type_,from_compare,to_compare,allocator_type>,bimap_different_types<from_type_,to_type_,from_compare,to_compare,allocator_type>>::result codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::super
protected

Definition at line 2063 of file bimap.h.

Constructor & Destructor Documentation

◆ bimap() [1/3]

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::bimap ( const from_compare & from_comp = from_compare(),
const to_compare & to_comp = to_compare(),
const allocator_type & al = allocator_type() )
inlineexplicit

Definition at line 2066 of file bimap.h.

◆ bimap() [2/3]

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::bimap ( const inv_bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r)
inlineexplicit

Definition at line 2106 of file bimap.h.

◆ bimap() [3/3]

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
template<typename it_type>
codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::bimap ( it_type first,
it_type last,
const from_compare & from_comp = from_compare(),
const to_compare & to_comp = to_compare(),
const allocator_type & al = allocator_type() )
inline

Definition at line 2142 of file bimap.h.

Member Function Documentation

◆ operator!=()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator!= ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2181 of file bimap.h.

◆ operator<()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator< ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2182 of file bimap.h.

◆ operator<=()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator<= ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2184 of file bimap.h.

◆ operator=()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bimap & codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator= ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r)
inline

Definition at line 2076 of file bimap.h.

◆ operator==()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator== ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2180 of file bimap.h.

◆ operator>()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator> ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2183 of file bimap.h.

◆ operator>=()

template<typename from_type_, typename to_type_, typename from_compare = std::less<from_type_>, typename to_compare = std::less<to_type_>, typename allocator_type = std::allocator<direct_pair<const from_type_,const to_type_> >>
bool codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type >::operator>= ( const bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > & r) const
inline

Definition at line 2185 of file bimap.h.


The documentation for this class was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/bimap.h