Reactions  0.1.2
Handling reaction trees and decays
Classes | Typedefs | Variables
reactions::element_traits Namespace Reference

Handle the properties of elements. More...

Classes

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

Typedefs

template<class T >
using element_t = typename properties< T >::type
 Actual C++ type for the given kind of element. More...
 
template<class T >
using builder_t = decltype(builder< T >)
 Default builder type for a given kind of element. More...
 
template<class T >
using 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 builder = properties<T>::builder
 Default builder for a given kind of element. More...
 

Detailed Description

Handle the properties of elements.

Typedef Documentation

◆ builder_t

template<class T >
using reactions::element_traits::builder_t = typedef decltype(builder<T>)

Default builder type for a given kind of element.

◆ builder_tpl_t

template<class T >
using reactions::element_traits::builder_tpl_t = typedef std::function<T(std::string const &)> const &

General builder type for a given kind of element.

◆ element_t

template<class T >
using reactions::element_traits::element_t = typedef typename properties<T>::type

Actual C++ type for the given kind of element.

Variable Documentation

◆ builder

template<class T >
constexpr auto reactions::element_traits::builder = properties<T>::builder
static

Default builder for a given kind of element.