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
10template <typename T, typename U>
11class Matching {
12public:
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);}
16private:
17 T obj;
18 std::reference_wrapper<T> objr;
19};
20
21#endif /* MATCHING_H */
22
Matching(const U &ur)
Definition: Matching.h:13
T & getObj()
Definition: Matching.h:14
std::reference_wrapper< T > objr
Definition: Matching.h:18
void setObj(T &obji)
Definition: Matching.h:15