JayBeams
0.1
Another project to have fun coding.
|
Verify the constraints on the histogram template class template parameters, and generate better error messages when they are not met. More...
#include <histogram.hpp>
Classes | |
struct | error |
An object to create a SFINAE condition. More... | |
Public Types | |
typedef histogram< binning_strategy > | histo |
typedef histo::sample_type | sample_type |
Public Member Functions | |
check_constraints () | |
auto | histogram_min_return_type () -> decltype(std::declval< const binning_strategy >().histogram_min()) |
auto | histogram_max_return_type () -> decltype(std::declval< const binning_strategy >().histogram_max()) |
auto | theoretical_min_return_type () -> decltype(std::declval< const binning_strategy >().theoretical_min()) |
auto | theoretical_max_return_type () -> decltype(std::declval< const binning_strategy >().theoretical_max()) |
auto | sample2bin_return_type () -> decltype(std::declval< const binning_strategy >().sample2bin(std::declval< const sample_type >())) |
auto | bin2sample_return_type () -> decltype(std::declval< const binning_strategy >().bin2sample(std::size_t(0))) |
auto | interpolate_return_type () -> decltype(std::declval< const binning_strategy >().interpolate(std::declval< const sample_type >(), std::declval< const sample_type >(), double(1.0), double(1.0), double(0.5))) |
error | has_less_than (...) |
auto | has_less_than (sample_type const &t) -> decltype(static_cast< void >(t< t), char(0)) |
error | has_less_than_or_equal (...) |
auto | has_less_than_or_equal (sample_type const &t) -> decltype(static_cast< void >(t<=t), char(0)) |
Verify the constraints on the histogram template class template parameters, and generate better error messages when they are not met.
Definition at line 261 of file histogram.hpp.
struct jb::histogram::check_constraints::error |
An object to create a SFINAE condition.
Definition at line 340 of file histogram.hpp.
Class Members | ||
---|---|---|
char | fill[2] |
typedef histogram<binning_strategy> jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::histo |
Definition at line 262 of file histogram.hpp.
typedef histo::sample_type jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::sample_type |
Definition at line 263 of file histogram.hpp.
|
inline |
Definition at line 265 of file histogram.hpp.
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::bin2sample_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().bin2sample(std::size_t(0))) |
error jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::has_less_than | ( | ... | ) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::has_less_than | ( | sample_type const & | t | ) | -> decltype(static_cast< void >(t< t), char(0)) |
error jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::has_less_than_or_equal | ( | ... | ) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::has_less_than_or_equal | ( | sample_type const & | t | ) | -> decltype(static_cast< void >(t<=t), char(0)) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::histogram_max_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().histogram_max()) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::histogram_min_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().histogram_min()) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::interpolate_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().interpolate(std::declval< const sample_type >(), std::declval< const sample_type >(), double(1.0), double(1.0), double(0.5))) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::sample2bin_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().sample2bin(std::declval< const sample_type >())) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::theoretical_max_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().theoretical_max()) |
auto jb::histogram< binning_strategy_t, counter_type_t >::check_constraints::theoretical_min_return_type | ( | ) | -> decltype(std::declval< const binning_strategy >().theoretical_min()) |