Skip to content

add syntactic sugar for type registration

Christian Gutschow requested to merge type_registry_sugar into release-3-2-x

With this change set, the following are equivalent:

  • handler().registerType<YODA::BinnedEstimate<double, int, string, double>>();
    handler().registerType<YODA::BinnedHisto<double, int, string, double>>();
    handler().registerType<YODA::BinnedProfile<double, int, string, double>>();
  • RIVET_REGISTER_TYPE(YODA::BinnedEstimate<double, int, string, double>);
    RIVET_REGISTER_TYPE(YODA::BinnedHisto<double, int, string, double>);
    RIVET_REGISTER_TYPE(YODA::BinnedProfile<double, int, string, double>);
  • RIVET_REGISTER_BINNED_SET(double, int, string, double);

Merge request reports