OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
BiMap< Left, Right >::left_view Struct Reference

Left-map view with find/at helpers. More...

#include <BiMap.h>

Collaboration diagram for BiMap< Left, Right >::left_view:
Collaboration graph

Public Member Functions

 left_view (left_map &m)
 Construct a left view from a map reference.
 
left_map::iterator find (const Left &key) const
 Find iterator for key in the left map.
 
left_map::iterator end () const
 End iterator for the left map.
 
const Right & at (const Left &key) const
 Get mapped value by key (throws if missing).
 

Public Attributes

left_mapmap_
 

Detailed Description

template<typename Left, typename Right>
struct BiMap< Left, Right >::left_view

Left-map view with find/at helpers.

Definition at line 51 of file BiMap.h.

Constructor & Destructor Documentation

◆ left_view()

template<typename Left , typename Right >
BiMap< Left, Right >::left_view::left_view ( left_map m)
inline

Construct a left view from a map reference.

Parameters
mInput: left map reference.

Definition at line 55 of file BiMap.h.

Member Function Documentation

◆ at()

template<typename Left , typename Right >
const Right & BiMap< Left, Right >::left_view::at ( const Left &  key) const
inline

Get mapped value by key (throws if missing).

Parameters
keyInput: left key.
Returns
Output: mapped right value.

Definition at line 66 of file BiMap.h.

References BiMap< Left, Right >::left_view::map_.

◆ end()

template<typename Left , typename Right >
left_map::iterator BiMap< Left, Right >::left_view::end ( ) const
inline

End iterator for the left map.

Returns
Output: end iterator.

Definition at line 62 of file BiMap.h.

References BiMap< Left, Right >::left_view::map_.

Referenced by TEST_F().

◆ find()

template<typename Left , typename Right >
left_map::iterator BiMap< Left, Right >::left_view::find ( const Left &  key) const
inline

Find iterator for key in the left map.

Parameters
keyInput: left key.
Returns
Output: iterator to entry or end().

Definition at line 59 of file BiMap.h.

References BiMap< Left, Right >::left_view::map_.

Referenced by TEST_F().

Member Data Documentation

◆ map_

template<typename Left , typename Right >
left_map& BiMap< Left, Right >::left_view::map_

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