Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::common::BiMap< First, Second, Impl > Class Template Reference

#include <BiMap.hpp>

Public Types

using ForwardMap = Impl< First, Second >
 
using BackwardMap = Impl< Second, First >
 

Public Member Functions

bool empty () const
 
void clear ()
 
const Secondat (const First &first) const
 
const Firstat (const Second &second) const
 
void insert (First first, Second second)
 
void remove (First first)
 
void remove (Second second)
 

Private Attributes

ForwardMap forward
 
BackwardMap backward
 

Member Typedef Documentation

◆ BackwardMap

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
using shkyera::common::BiMap< First, Second, Impl >::BackwardMap = Impl<Second, First>

◆ ForwardMap

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
using shkyera::common::BiMap< First, Second, Impl >::ForwardMap = Impl<First, Second>

Member Function Documentation

◆ at() [1/2]

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
const Second & shkyera::common::BiMap< First, Second, Impl >::at ( const First first) const
inline

◆ at() [2/2]

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
const First & shkyera::common::BiMap< First, Second, Impl >::at ( const Second second) const
inline

◆ clear()

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
void shkyera::common::BiMap< First, Second, Impl >::clear ( )
inline

◆ empty()

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
bool shkyera::common::BiMap< First, Second, Impl >::empty ( ) const
inline

◆ insert()

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
void shkyera::common::BiMap< First, Second, Impl >::insert ( First  first,
Second  second 
)
inline

◆ remove() [1/2]

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
void shkyera::common::BiMap< First, Second, Impl >::remove ( First  first)
inline

◆ remove() [2/2]

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
void shkyera::common::BiMap< First, Second, Impl >::remove ( Second  second)
inline

Member Data Documentation

◆ backward

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
BackwardMap shkyera::common::BiMap< First, Second, Impl >::backward
private

◆ forward

template<typename First , typename Second , template< typename, typename > class Impl = std::unordered_map>
ForwardMap shkyera::common::BiMap< First, Second, Impl >::forward
private

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