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 ()
 
 bimap (bimap &&rhs)
 
 bimap (std::initializer_list< typename left_type::value_type > l)
 

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

◆ left_type

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.

◆ right_type

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

◆ bimap() [1/3]

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  }

◆ bimap() [2/3]

template<typename T, typename U>
JME::bimap< T, U >::bimap ( )
inline

Definition at line 52 of file JetResolutionObject.h.

52  {
53  // Empty
54  }

◆ bimap() [3/3]

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  }

Member Data Documentation

◆ left

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

◆ right

template<typename T, typename U>
right_type JME::bimap< T, U >::right
findQualityFiles.v
v
Definition: findQualityFiles.py:179
JME::bimap::left
left_type left
Definition: JetResolutionObject.h:42
JME::bimap::right
right_type right
Definition: JetResolutionObject.h:43
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
eostools.move
def move(src, dest)
Definition: eostools.py:511