Lines Matching refs:kSize
24 template <typename T, size_t kSize>
29 size_t BufferSize() const { return kSize; } in BufferSize()
71 if (index_ == kSize)
88 Iterator(const RingBuffer<T, kSize>& buffer, size_t index) in Iterator()
91 const RingBuffer<T, kSize>& buffer_;
95 friend class RingBuffer<T, kSize>;
102 if (current_index_ < kSize) in Begin()
103 return Iterator(*this, kSize - current_index_); in Begin()
110 Iterator End() const { return Iterator(*this, kSize - 1); } in End()
114 return (current_index_ + n) % kSize; in BufferIndex()
125 T buffer_[kSize];