stats: make Histogram::GetBinCount const
This commit is contained in:
@@ -71,7 +71,7 @@ Histogram::SetDefaultBinWidth(double binWidth)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
Histogram::GetBinCount(uint32_t index)
|
||||
Histogram::GetBinCount(uint32_t index) const
|
||||
{
|
||||
NS_ASSERT(index < m_histogram.size());
|
||||
return m_histogram[index];
|
||||
|
||||
@@ -93,7 +93,7 @@ class Histogram
|
||||
* \param index the bin index
|
||||
* \return the number of data added to the bin
|
||||
*/
|
||||
uint32_t GetBinCount(uint32_t index);
|
||||
uint32_t GetBinCount(uint32_t index) const;
|
||||
|
||||
// Method for adding values
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user