Lines Matching refs:mBins
55 if (mBinSize <= 0 || mBins.size() < 2) { in add()
62 const int index = std::max(0, std::min((int)(mBins.size() - 1), unboundedIndex)); in add()
63 mBins[index]++; in add()
69 std::fill(mBins.begin(), mBins.end(), 0); in clear()
83 for (size_t i = 0; i < mBins.size(); i++) { in toString()
84 if (mBins[i] != 0) { in toString()
88 ss << static_cast<int>(i) - 1 << kDivider << mBins[i]; in toString()
98 if (totalCount() == 0 || mBinSize <= 0 || mBins.size() < 2) { in asciiArtString()
115 const unsigned maxCount = *std::max_element(mBins.begin(), mBins.end()); in asciiArtString()
123 for (; firstNonZeroBin < mBins.size() - 1 && mBins[firstNonZeroBin] == 0; firstNonZeroBin++) {} in asciiArtString()
126 size_t lastNonZeroBin = mBins.size() - 1; in asciiArtString()
128 for (; lastNonZeroBin > 0 && mBins[lastNonZeroBin] == 0; lastNonZeroBin--) {} in asciiArtString()
129 const size_t lastBinToPrint = lastNonZeroBin == mBins.size() - 1 ? lastNonZeroBin in asciiArtString()
136 } else if (bin == mBins.size() - 1) { in asciiArtString()
143 const uint64_t binCount = mBins[bin]; in asciiArtString()