Reactions  0.0.0
Handling reaction trees and decays
Classes | Namespaces | Typedefs | Variables
element_traits.hpp File Reference

Utilities to work with element types. More...

#include "reactions/pdg.hpp"
#include "reactions/pow_enum.hpp"
#include <functional>
#include <string>
Include dependency graph for element_traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  reactions::element_traits::properties< T >
 Define properties for a given element kind. More...
 
struct  reactions::element_traits::properties< reactions::pdg_element >
 Definition of the properties of a PDG element. More...
 
struct  reactions::element_traits::properties< reactions::string_element >
 Definition of the properties of a string element. More...
 

Namespaces

 reactions
 Main namespace of the Reactions package.
 
 reactions::element_traits
 Handle the properties of elements.
 

Typedefs

using reactions::string_element = std::string
 Alias for an element based on a simple string. More...
 
template<class T >
using reactions::element_traits::element_t = typename properties< T >::type
 Actual C++ type for the given kind of element. More...
 
template<class T >
using reactions::element_traits::builder_t = decltype(builder< T >)
 Default builder type for a given kind of element. More...
 
template<class T >
using reactions::element_traits::builder_tpl_t = std::function< T(std::string const &)> const &
 General builder type for a given kind of element. More...
 

Variables

template<class T >
static constexpr auto reactions::element_traits::builder = properties<T>::builder
 Default builder for a given kind of element. More...
 

Detailed Description

Utilities to work with element types.