6 #include "reactions/pdg.hpp" 26 using type = reactions::pdg_element;
28 return reactions::pdg_database::instance()(s);
45 template <
class T>
using builder_t = decltype(builder<T>);
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:42
Contains macros to define smart enumeration types.
std::function< T(std::string const &)> const & builder_tpl_t
General builder type for a given kind of element.
Definition: element_traits.hpp:49
Main namespace of the Reactions package.
Definition: all.hpp:21
typename properties< T >::type element_t
Actual C++ type for the given kind of element.
Definition: element_traits.hpp:39
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:45
reactions::pdg_element type
Definition: element_traits.hpp:26