Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tools/Utils.hh File Reference
#include <exception>
#include <map>
#include <unordered_map>
#include <string>
#include <complex>
#include <algorithm>
#include <iterator>
#include <vector>
#include <boost/functional/hash.hpp>
#include "Hammer/Config/HammerConfig.hh"
+ Include dependency graph for Tools/Utils.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Hammer::reversion_wrapper< T >
 

Namespaces

 Hammer
 The Hammer namespace contains the library code.
 

Macros

#define UNUSED(x)   ((void)(x))
 

Typedefs

template<typename K , typename V >
using Hammer::UMap = std::unordered_map< K, V, boost::hash< K >>
 

Functions

std::string Hammer::version ()
 
template<typename KeyType , typename ValueType >
ValueType Hammer::getOrDefault (const std::map< KeyType, ValueType > &data, KeyType key, ValueType fallback)
 
template<typename KeyType , typename ValueType >
ValueType Hammer::getOrDefault (const std::unordered_map< KeyType, ValueType > &data, KeyType key, ValueType fallback)
 
template<typename KeyType , typename ValueType >
auto const & Hammer::getOrThrow (const std::map< KeyType, ValueType > &data, KeyType key, std::exception error)
 
template<typename KeyType , typename ValueType >
auto & Hammer::getOrThrow (std::map< KeyType, ValueType > &data, KeyType key, std::exception error)
 
template<typename _InputIterator , typename _OutputIterator , typename _UnaryOperation >
_OutputIterator Hammer::transform_n (_InputIterator __first, size_t __n, _OutputIterator __result, _UnaryOperation __op)
 
template<typename T >
auto Hammer::begin (reversion_wrapper< T > w)
 
template<typename T >
auto Hammer::end (reversion_wrapper< T > w)
 
template<typename T >
reversion_wrapper< T > Hammer::reverse_range (T &&iterable)
 
template<typename T >
std::ostream & Hammer::operator<< (std::ostream &out, const std::vector< T > &v)
 

Macro Definition Documentation

#define UNUSED (   x)    ((void)(x))

Definition at line 28 of file Tools/Utils.hh.