Toolbox snapshot
The Reactive C++ Toolbox
|
Iterator is the base iterator for all iterator types. More...
#include <toolbox/hdr/Iterator.hpp>
Public Member Functions | |
Iterator (const Histogram &h) noexcept | |
virtual | ~Iterator () |
Iterator (const Iterator &)=delete | |
Iterator & | operator= (const Iterator &)=delete |
Iterator (Iterator &&) noexcept=default | |
Iterator & | operator= (Iterator &&)=delete |
std::int64_t | count () const noexcept |
Value directly from array for the current counts_index. | |
std::int64_t | cumulative_count () const noexcept |
Sum of all of the counts up to and including the count at this index. | |
std::int64_t | value () const noexcept |
The current value based on counts_index. | |
std::int64_t | highest_equivalent_value () const noexcept |
bool | next () noexcept |
Protected Member Functions | |
bool | has_buckets () const noexcept |
bool | has_next () const noexcept |
std::int64_t | peek_next_value_from_index () const noexcept |
bool | next_value_greater_than_reporting_level_upper_bound (std::int64_t reporting_level_upper_bound) const noexcept |
bool | basic_next () noexcept |
bool | move_next () noexcept |
void | update_iterated_values (std::int64_t new_value_iterated_to) noexcept |
virtual bool | do_next () noexcept |
Protected Attributes | |
const Histogram & | h_ |
std::int32_t | counts_index_ |
Raw index into the counts array. | |
std::int64_t | total_count_ |
Snapshot of the length at the time the iterator is created. | |
std::int64_t | count_ |
std::int64_t | cumulative_count_ |
std::int64_t | value_ |
std::int64_t | highest_equivalent_value_ |
std::int64_t | lowest_equivalent_value_ |
std::int64_t | median_equivalent_value_ |
std::int64_t | value_iterated_from_ |
std::int64_t | value_iterated_to_ |
Iterator is the base iterator for all iterator types.
Definition at line 28 of file Iterator.hpp.
Construct iterator.
h | The histogram to iterate over. |
Definition at line 26 of file Iterator.cpp.
|
virtualdefault |
|
defaultnoexcept |
|
inlinenoexcept |
Value directly from array for the current counts_index.
Definition at line 45 of file Iterator.hpp.
|
inlinenoexcept |
Sum of all of the counts up to and including the count at this index.
Definition at line 47 of file Iterator.hpp.
|
inlinenoexcept |
The current value based on counts_index.
Definition at line 49 of file Iterator.hpp.
|
inlinenoexcept |
Definition at line 50 of file Iterator.hpp.
|
inlinenoexcept |
Iterate to the next value for the iterator. If there are no more values available return false.
Definition at line 56 of file Iterator.hpp.
|
protectednoexcept |
Definition at line 50 of file Iterator.cpp.
Referenced by move_next().
|
protectednoexcept |
Definition at line 55 of file Iterator.cpp.
Referenced by basic_next(), toolbox::hdr::PercentileIterator::do_next(), toolbox::hdr::LinearIterator::do_next(), and toolbox::hdr::LogIterator::do_next().
|
protectednoexcept |
Definition at line 60 of file Iterator.cpp.
|
protectednoexcept |
Definition at line 65 of file Iterator.cpp.
Referenced by toolbox::hdr::LinearIterator::do_next(), and toolbox::hdr::LogIterator::do_next().
|
protectednoexcept |
Definition at line 74 of file Iterator.cpp.
Referenced by toolbox::hdr::PercentileIterator::do_next(), and toolbox::hdr::RecordedIterator::do_next().
|
protectednoexcept |
Definition at line 83 of file Iterator.cpp.
Referenced by basic_next(), do_next(), toolbox::hdr::LinearIterator::do_next(), and toolbox::hdr::LogIterator::do_next().
|
protectednoexcept |
Definition at line 101 of file Iterator.cpp.
Referenced by do_next(), toolbox::hdr::PercentileIterator::do_next(), toolbox::hdr::RecordedIterator::do_next(), toolbox::hdr::LinearIterator::do_next(), and toolbox::hdr::LogIterator::do_next().
|
protectedvirtualnoexcept |
Reimplemented in toolbox::hdr::PercentileIterator, toolbox::hdr::RecordedIterator, toolbox::hdr::LinearIterator, and toolbox::hdr::LogIterator.
Definition at line 41 of file Iterator.cpp.
Definition at line 71 of file Iterator.hpp.
Referenced by basic_next(), toolbox::hdr::PercentileIterator::do_next(), toolbox::hdr::LinearIterator::do_next(), toolbox::hdr::LogIterator::do_next(), has_buckets(), move_next(), and peek_next_value_from_index().
|
protected |
Raw index into the counts array.
Definition at line 73 of file Iterator.hpp.
Referenced by basic_next(), toolbox::hdr::PercentileIterator::do_next(), has_buckets(), move_next(), and peek_next_value_from_index().
|
protected |
Snapshot of the length at the time the iterator is created.
Definition at line 75 of file Iterator.hpp.
Referenced by has_next().
|
protected |
Definition at line 76 of file Iterator.hpp.
Referenced by toolbox::hdr::PercentileIterator::do_next(), toolbox::hdr::RecordedIterator::do_next(), toolbox::hdr::LinearIterator::do_next(), toolbox::hdr::LogIterator::do_next(), and move_next().
|
protected |
Definition at line 77 of file Iterator.hpp.
Referenced by toolbox::hdr::PercentileIterator::do_next(), has_next(), and move_next().
|
protected |
Definition at line 78 of file Iterator.hpp.
Referenced by do_next(), toolbox::hdr::PercentileIterator::do_next(), toolbox::hdr::RecordedIterator::do_next(), toolbox::hdr::LinearIterator::do_next(), toolbox::hdr::LogIterator::do_next(), and move_next().
|
protected |
Definition at line 79 of file Iterator.hpp.
Referenced by move_next().
|
protected |
Definition at line 80 of file Iterator.hpp.
Referenced by move_next().
|
protected |
Definition at line 81 of file Iterator.hpp.
Referenced by move_next().
|
protected |
Definition at line 82 of file Iterator.hpp.
|
protected |
Definition at line 83 of file Iterator.hpp.