33 #ifndef __H__UG_BRIDGE__UTIL__
34 #define __H__UG_BRIDGE__UTIL__
45 template <
typename Functionality>
48 Functionality::Common(reg,grp);
51 template <
typename Functionality>
55 Functionality::template Dimension<1>(reg,grp);
58 Functionality::template Dimension<2>(reg,grp);
61 Functionality::template Dimension<3>(reg,grp);
65 template <
typename Functionality>
69 Functionality::template Dimension<1>(reg,grp);
73 template <
typename Functionality>
77 Functionality::template Dimension<2>(reg,grp);
81 template <
typename Functionality>
85 Functionality::template Dimension<3>(reg,grp);
89 template <
typename Functionality>
92 RegisterDimension2dDependent<Functionality>(reg, grp);
93 RegisterDimension3dDependent<Functionality>(reg, grp);
102 #define UG_REGISTRY_CATCH_THROW(grp) \
103 catch(ug::bridge::UGRegistryError& ex) {\
104 UG_ERR_LOG("### ERROR while registering functionality at '"<<(grp)<<"'. "\
105 "Registration failed (using name " << ex.name << ").\n");\
Registry for functions and classes that are exported to scripts and visualizations.
Definition: registry.h:138
void RegisterDimension2dDependent(Registry ®, std::string grp)
Definition: util.h:74
void RegisterDimension1dDependent(Registry ®, std::string grp)
Definition: util.h:66
void RegisterCommon(Registry ®, std::string grp)
Definition: util.h:46
void RegisterDimension3dDependent(Registry ®, std::string grp)
Definition: util.h:82
void RegisterDimensionDependent(Registry ®, std::string grp)
Definition: util.h:52
void RegisterDimension2d3dDependent(Registry ®, std::string grp)
Definition: util.h:90