a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
Matching.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 HEPfit Collaboration
3  *
4  * For the licensing terms see doc/COPYING.
5  */
6 
7 #ifndef MATCHING_H
8 #define MATCHING_H
9 
10 template <typename T, typename U>
11 class Matching {
12 public:
13  Matching(const U& ur): obj(ur),objr(std::ref(obj)) {}
14  T& getObj() { return objr; }
15  void setObj(T& obji) {objr = std::ref(obji);}
16 private:
17  T obj;
18  std::reference_wrapper<T> objr;
19 };
20 
21 #endif /* MATCHING_H */
22 
Matching::getObj
T & getObj()
Definition: Matching.h:14
Matching::setObj
void setObj(T &obji)
Definition: Matching.h:15
Matching::objr
std::reference_wrapper< T > objr
Definition: Matching.h:18
Matching::obj
T obj
Definition: Matching.h:17
Matching
Definition: Matching.h:11
Matching::Matching
Matching(const U &ur)
Definition: Matching.h:13