Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
toolbox::hdr::LogIterator Class Referencefinal

LogIterator is a logarithmic value iterator. More...

#include <toolbox/hdr/Iterator.hpp>

Inheritance diagram for toolbox::hdr::LogIterator:
Inheritance graph
[legend]
Collaboration diagram for toolbox::hdr::LogIterator:
Collaboration graph
[legend]

Public Member Functions

 LogIterator (const Histogram &h, std::int64_t value_units_first_bucket, double log_base) noexcept
 
 ~LogIterator () override=default
 
 LogIterator (const LogIterator &)=delete
 
LogIteratoroperator= (const LogIterator &)=delete
 
 LogIterator (LogIterator &&) noexcept=default
 
LogIteratoroperator= (LogIterator &&)=delete
 
- Public Member Functions inherited from toolbox::hdr::CountAddedIterator
 CountAddedIterator (const CountAddedIterator &)=delete
 
CountAddedIteratoroperator= (const CountAddedIterator &)=delete
 
 CountAddedIterator (CountAddedIterator &&) noexcept=default
 
CountAddedIteratoroperator= (CountAddedIterator &&)=delete
 
std::int64_t count_added_in_this_iteration_step () const noexcept
 
- Public Member Functions inherited from toolbox::hdr::Iterator
 Iterator (const Histogram &h) noexcept
 
virtual ~Iterator ()
 
 Iterator (const Iterator &)=delete
 
Iteratoroperator= (const Iterator &)=delete
 
 Iterator (Iterator &&) noexcept=default
 
Iteratoroperator= (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 do_next () noexcept override
 
- Protected Member Functions inherited from toolbox::hdr::CountAddedIterator
 CountAddedIterator (const Histogram &h)
 
 ~CountAddedIterator () override
 
- Protected Member Functions inherited from toolbox::hdr::Iterator
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
 

Additional Inherited Members

- Protected Attributes inherited from toolbox::hdr::CountAddedIterator
std::int64_t count_added_in_this_iteration_step_ {0}
 
- Protected Attributes inherited from toolbox::hdr::Iterator
const Histogramh_
 
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_
 

Detailed Description

LogIterator is a logarithmic value iterator.

Definition at line 177 of file Iterator.hpp.

Constructor & Destructor Documentation

◆ LogIterator() [1/3]

toolbox::hdr::LogIterator::LogIterator ( const Histogram h,
std::int64_t  value_units_first_bucket,
double  log_base 
)
noexcept

◆ ~LogIterator()

toolbox::hdr::LogIterator::~LogIterator ( )
overridedefault

◆ LogIterator() [2/3]

toolbox::hdr::LogIterator::LogIterator ( const LogIterator )
delete

◆ LogIterator() [3/3]

toolbox::hdr::LogIterator::LogIterator ( LogIterator &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

LogIterator & toolbox::hdr::LogIterator::operator= ( const LogIterator )
delete

◆ operator=() [2/2]

LogIterator & toolbox::hdr::LogIterator::operator= ( LogIterator &&  )
delete

◆ do_next()

bool toolbox::hdr::LogIterator::do_next ( )
overrideprotectedvirtualnoexcept

Reimplemented from toolbox::hdr::Iterator.

Definition at line 215 of file Iterator.cpp.


The documentation for this class was generated from the following files: