MCPcopy Create free account
hub / github.com/boostorg/histogram / idx

Method idx

include/boost/histogram/iterator.hpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 std::size_t dim() const noexcept { return histogram_.dim(); }
35
36 int idx(std::size_t dim = 0) const noexcept {
37 if (!cache_) { cache_.set(histogram_); }
38 cache_.set_idx(idx_);
39 return cache_.get(dim);
40 }
41
42 auto bin() const -> decltype(std::declval<Histogram&>().axis()[0]) {
43 return histogram_.axis()[idx()];

Callers 6

run_testsFunction · 0.45
test_axis_iteratorFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

setMethod · 0.80
set_idxMethod · 0.80
getMethod · 0.80

Tested by 3

run_testsFunction · 0.36
test_axis_iteratorFunction · 0.36
mainFunction · 0.36