CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
JME::bimap< T, U > Struct Template Reference

#include <JetResolutionObject.h>

Public Types

typedef std::unordered_map< T, U > left_type
 
typedef std::unordered_map< U, Tright_type
 

Public Member Functions

 bimap (std::initializer_list< typename left_type::value_type > l)
 
 bimap ()
 
 bimap (bimap &&rhs)
 

Public Attributes

left_type left
 
right_type right
 

Detailed Description

template<typename T, typename U>
struct JME::bimap< T, U >

Definition at line 42 of file JetResolutionObject.h.

Member Typedef Documentation

template<typename T, typename U>
typedef std::unordered_map<T, U> JME::bimap< T, U >::left_type

Definition at line 43 of file JetResolutionObject.h.

template<typename T, typename U>
typedef std::unordered_map<U, T> JME::bimap< T, U >::right_type

Definition at line 44 of file JetResolutionObject.h.

Constructor & Destructor Documentation

template<typename T, typename U>
JME::bimap< T, U >::bimap ( std::initializer_list< typename left_type::value_type >  l)
inline

Definition at line 49 of file JetResolutionObject.h.

49  {
50  for (auto& v: l) {
51  left.insert(v);
52  right.insert(typename right_type::value_type(v.second, v.first));
53  }
54  }
right_type right
template<typename T, typename U>
JME::bimap< T, U >::bimap ( )
inline

Definition at line 56 of file JetResolutionObject.h.

56  {
57  // Empty
58  }
template<typename T, typename U>
JME::bimap< T, U >::bimap ( bimap< T, U > &&  rhs)
inline

Definition at line 60 of file JetResolutionObject.h.

60  {
61  left = std::move(rhs.left);
62  right = std::move(rhs.right);
63  }
right_type right
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

template<typename T, typename U>
left_type JME::bimap< T, U >::left
template<typename T, typename U>
right_type JME::bimap< T, U >::right