ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
yield_key.cpp
Go to the documentation of this file.
1 #include "yield_key.hpp"
2 
3 using namespace std;
4 
5 const Bin & GetBin(const YieldKey &yk){
6  return get<0>(yk);
7 }
8 
9 const Process & GetProcess(const YieldKey &yk){
10  return get<1>(yk);
11 }
12 
13 const Cut & GetCut(const YieldKey &yk){
14  return get<2>(yk);
15 }
16 
17 ostream & operator<<(ostream &stream, const YieldKey &key){
18  stream << "YieldKey(" << GetBin(key)
19  << "," << GetProcess(key)
20  << "," << GetCut(key)
21  << ")";
22  return stream;
23 }
Definition: bin.hpp:12
Definition: cut.hpp:8
STL namespace.
std::tuple< Bin, Process, Cut > YieldKey
Definition: yield_key.hpp:11
const Process & GetProcess(const YieldKey &yk)
Definition: yield_key.cpp:9
const Cut & GetCut(const YieldKey &yk)
Definition: yield_key.cpp:13
ostream & operator<<(ostream &stream, const YieldKey &key)
Definition: yield_key.cpp:17
const Bin & GetBin(const YieldKey &yk)
Definition: yield_key.cpp:5