#include "TH1F.h"
#include <iostream>
#include <vector>
#include <map>
Go to the source code of this file.
Functions | |
template<class K, class V> | |
void | keyVector (const std::map< K, V > &extract, std::vector< K > &output) |
template<class T> | |
std::pair< T, T > | operator+ (const std::pair< T, T > &one, const std::pair< T, T > &two) |
Operators.h Various operators and handy methods for std::pairs and std::maps. | |
template<class T> | |
std::pair< T, T > | operator- (const std::pair< T, T > &one, const std::pair< T, T > &two) |
template<class T> | |
std::ostream & | operator<< (std::ostream &s, const std::pair< T, T > &aT) |
template<class K, class V> | |
void | valueVector (const std::map< K, V > &extract, std::vector< V > &output) |
void keyVector | ( | const std::map< K, V > & | extract, | |
std::vector< K > & | output | |||
) | [inline] |
Definition at line 52 of file Operators.h.
00052 { 00053 for(typename std::map<K, V>::const_iterator cit = extract.begin(); cit != extract.end(); ++cit) { 00054 output.push_back((*cit).first); 00055 } 00056 }
std::pair<T, T> operator+ | ( | const std::pair< T, T > & | one, | |
const std::pair< T, T > & | two | |||
) | [inline] |
Operators.h Various operators and handy methods for std::pairs and std::maps.
Definition at line 19 of file Operators.h.
References r.
00019 { 00020 std::pair<T, T> r(one.first + two.first, one.second + two.second); 00021 return r; 00022 }
std::pair<T, T> operator- | ( | const std::pair< T, T > & | one, | |
const std::pair< T, T > & | two | |||
) | [inline] |
Definition at line 27 of file Operators.h.
References r.
00027 { 00028 std::pair<T, T> r(one.first - two.first, one.second - two.second); 00029 return r; 00030 }
std::ostream& operator<< | ( | std::ostream & | s, | |
const std::pair< T, T > & | aT | |||
) | [inline] |
void valueVector | ( | const std::map< K, V > & | extract, | |
std::vector< V > & | output | |||
) | [inline] |
Definition at line 43 of file Operators.h.
00043 { 00044 for(typename std::map<K, V>::const_iterator cit = extract.begin(); cit != extract.end(); ++cit) { 00045 output.push_back((*cit).second); 00046 } 00047 }