12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Copyright 2020 Hans Dembinski
- //
- // Distributed under the Boost Software License, Version 1.0.
- // (See accompanying file LICENSE_1_0.txt
- // or copy at http://www.boost.org/LICENSE_1_0.txt)
- #ifndef BOOST_HISTOGRAM_DETAIL_REDUCE_COMMAND_HPP
- #define BOOST_HISTOGRAM_DETAIL_REDUCE_COMMAND_HPP
- #include <boost/histogram/fwd.hpp>
- namespace boost {
- namespace histogram {
- namespace detail {
- struct reduce_command {
- static constexpr unsigned unset = static_cast<unsigned>(-1);
- unsigned iaxis;
- enum class range_t : char {
- none,
- indices,
- values,
- } range = range_t::none;
- union {
- axis::index_type index;
- double value;
- } begin, end;
- unsigned merge = 0; // default value indicates unset option
- bool crop = false;
- // for internal use by the reduce algorithm
- bool is_ordered = true;
- bool use_underflow_bin = true;
- bool use_overflow_bin = true;
- };
- } // namespace detail
- } // namespace histogram
- } // namespace boost
- #endif
|