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

RecordedIterator is a recorded value iterator. More...

#include <toolbox/hdr/Iterator.hpp>

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

Public Member Functions

 RecordedIterator (const Histogram &h)
 
 ~RecordedIterator () override=default
 
 RecordedIterator (const RecordedIterator &)=delete
 
RecordedIteratoroperator= (const RecordedIterator &)=delete
 
 RecordedIterator (RecordedIterator &&) noexcept=default
 
RecordedIteratoroperator= (RecordedIterator &&)=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

RecordedIterator is a recorded value iterator.

Definition at line 136 of file Iterator.hpp.

Constructor & Destructor Documentation

◆ RecordedIterator() [1/3]

toolbox::hdr::RecordedIterator::RecordedIterator ( const Histogram h)
explicit

Definition at line 155 of file Iterator.cpp.

◆ ~RecordedIterator()

toolbox::hdr::RecordedIterator::~RecordedIterator ( )
overridedefault

◆ RecordedIterator() [2/3]

toolbox::hdr::RecordedIterator::RecordedIterator ( const RecordedIterator )
delete

◆ RecordedIterator() [3/3]

toolbox::hdr::RecordedIterator::RecordedIterator ( RecordedIterator &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ do_next()

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

Reimplemented from toolbox::hdr::Iterator.

Definition at line 160 of file Iterator.cpp.


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