codeproject::bimap< from_type_, to_type_, from_compare, to_compare, allocator_type > Class Template Reference

#include <bimap.h>

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 2020 of file bimap.h.


Member Typedef Documentation

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 2084 of file bimap.h.

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 2043 of file bimap.h.


Constructor & Destructor Documentation

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() 
) [inline, explicit]

Definition at line 2046 of file bimap.h.

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  )  [inline, explicit]

Definition at line 2086 of file bimap.h.

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 2122 of file bimap.h.


Member Function Documentation

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 2161 of file bimap.h.

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 2162 of file bimap.h.

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 2164 of file bimap.h.

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 2056 of file bimap.h.

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 2160 of file bimap.h.

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 2163 of file bimap.h.

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 2165 of file bimap.h.


The documentation for this class was generated from the following file:

Generated on Thu Dec 29 00:12:02 2011 for SpringLobby by doxygen 1.6.3