6 #include "reactions/nubase.hpp" 7 #include "reactions/pdg.hpp" 26 using type = reactions::pdg_element;
28 return reactions::pdg_database::instance()(s);
34 using type = reactions::nubase_element;
36 return reactions::nubase_database::instance()(s);
53 template <
class T>
using builder_t = decltype(builder<T>);
reactions::nubase_element type
Definition: element_traits.hpp:34
Define properties for a given element kind.
Definition: element_traits.hpp:22
std::string string_element
Alias for an element based on a simple string.
Definition: element_traits.hpp:14
static constexpr auto builder
Default builder for a given kind of element.
Definition: element_traits.hpp:50
std::function< T(std::string const &)> const & builder_tpl_t
General builder type for a given kind of element.
Definition: element_traits.hpp:57
Main namespace of the Reactions package.
Definition: all.hpp:22
typename properties< T >::type element_t
Actual C++ type for the given kind of element.
Definition: element_traits.hpp:47
Handle the properties of elements.
Definition: element_traits.hpp:19
decltype(builder< T >) builder_t
Default builder type for a given kind of element.
Definition: element_traits.hpp:53
reactions::pdg_element type
Definition: element_traits.hpp:26