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 38 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 39 of file JetResolutionObject.h.

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

Definition at line 40 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 45 of file JetResolutionObject.h.

45  {
46  for (auto& v: l) {
47  left.insert(v);
48  right.insert(typename right_type::value_type(v.second, v.first));
49  }
50  }
right_type right
template<typename T, typename U>
JME::bimap< T, U >::bimap ( )
inline

Definition at line 52 of file JetResolutionObject.h.

52  {
53  // Empty
54  }
template<typename T, typename U>
JME::bimap< T, U >::bimap ( bimap< T, U > &&  rhs)
inline

Definition at line 56 of file JetResolutionObject.h.

56  {
57  left = std::move(rhs.left);
58  right = std::move(rhs.right);
59  }
right_type right
def move(src, dest)
Definition: eostools.py:510

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