Embedded Template Library 1.0
|
Histogram with a run time start index. More...
#include <histogram.h>
Public Types | |
typedef TKey | key_type |
typedef TCount | count_type |
typedef TCount | value_type |
![]() | |
typedef etl::array< TCount, Max_Size >::const_iterator | const_iterator |
![]() | |
typedef TKey | argument_type |
typedef void | result_type |
Public Member Functions | |
ETL_STATIC_ASSERT (etl::is_integral< TKey >::value, "Only integral keys allowed") | |
ETL_STATIC_ASSERT (etl::is_integral< TCount >::value, "Only integral count allowed") | |
histogram (key_type start_index_) | |
Constructor. | |
template<typename TIterator > | |
histogram (key_type start_index_, TIterator first, TIterator last) | |
Constructor. | |
histogram (const histogram &other) | |
Copy constructor. | |
histogram & | operator= (const histogram &rhs) |
Copy assignment. | |
void | add (key_type key) |
Add. | |
template<typename TIterator > | |
void | add (TIterator first, TIterator last) |
Add. | |
void | operator() (key_type key) |
operator () | |
template<typename TIterator > | |
void | operator() (TIterator first, TIterator last) |
operator () | |
value_type | operator[] (key_type key) const |
operator [] | |
![]() | |
ETL_STATIC_ASSERT (etl::is_integral< TCount >::value, "Only integral count allowed") | |
const_iterator | begin () const |
Beginning of the histogram. | |
const_iterator | cbegin () const |
Beginning of the histogram. | |
const_iterator | end () const |
End of the histogram. | |
const_iterator | cend () const |
End of the histogram. | |
void | clear () |
Clear the histogram. | |
ETL_CONSTEXPR size_t | size () const |
Size of the histogram. | |
ETL_CONSTEXPR size_t | max_size () const |
Max size of the histogram. | |
size_t | count () const |
Count of items in the histogram. | |
Additional Inherited Members | |
![]() | |
static ETL_CONSTANT size_t | Max_Size |
![]() | |
etl::array< TCount, Max_Size > | accumulator |
Histogram with a run time start index.