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

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

#include <BiMap.h>

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

Public Member Functions

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

Public Attributes

right_mapmap_
 

Detailed Description

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

Right-map view with find/at helpers.

Definition at line 70 of file BiMap.h.

Constructor & Destructor Documentation

◆ right_view()

template<typename Left , typename Right >
BiMap< Left, Right >::right_view::right_view ( right_map m)
inline

Construct a right view from a map reference.

Parameters
mInput: right map reference.

Definition at line 74 of file BiMap.h.

Member Function Documentation

◆ at()

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

Get mapped value by key (throws if missing).

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

Definition at line 85 of file BiMap.h.

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

◆ end()

template<typename Left , typename Right >
right_map::iterator BiMap< Left, Right >::right_view::end ( ) const
inline

End iterator for the right map.

Returns
Output: end iterator.

Definition at line 81 of file BiMap.h.

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

Referenced by TEST_F().

◆ find()

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

Find iterator for key in the right map.

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

Definition at line 78 of file BiMap.h.

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

Referenced by TEST_F().

Member Data Documentation

◆ map_

template<typename Left , typename Right >
right_map& BiMap< Left, Right >::right_view::map_

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