Lines Matching refs:RingBuffer
36 class RingBuffer final {
42 explicit RingBuffer(size_t length);
174 RingBuffer<T>::RingBuffer(size_t length) : mFrontIdx{0}, mMaxBufferSize{length} {} in RingBuffer() function
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator()
181 typename RingBuffer<T>::iterator& RingBuffer<T>::iterator::operator++() {
194 typename RingBuffer<T>::iterator RingBuffer<T>::iterator::operator++(int) {
201 bool RingBuffer<T>::iterator::operator==(const iterator& rhs) {
206 bool RingBuffer<T>::iterator::operator!=(const iterator& rhs) {
211 T& RingBuffer<T>::iterator::operator*() {
216 T* RingBuffer<T>::iterator::operator->() {
221 RingBuffer<T>::const_iterator::const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) : in const_iterator()
225 typename RingBuffer<T>::const_iterator& RingBuffer<T>::const_iterator::operator++() {
238 typename RingBuffer<T>::const_iterator RingBuffer<T>::const_iterator::operator++(int) {
245 bool RingBuffer<T>::const_iterator::operator==(const const_iterator& rhs) {
250 bool RingBuffer<T>::const_iterator::operator!=(const const_iterator& rhs) {
255 const T& RingBuffer<T>::const_iterator::operator*() {
260 const T* RingBuffer<T>::const_iterator::operator->() {
265 void RingBuffer<T>::add(const T& item) { in add()
277 void RingBuffer<T>::add(T&& item) { in add()
291 void RingBuffer<T>::emplace(Args&&... args) { in emplace()
304 typename RingBuffer<T>::iterator RingBuffer<T>::begin() { in begin()
310 typename RingBuffer<T>::iterator RingBuffer<T>::end() { in end()
316 typename RingBuffer<T>::const_iterator RingBuffer<T>::begin() const { in begin()
323 typename RingBuffer<T>::const_iterator RingBuffer<T>::end() const { in end()
329 T& RingBuffer<T>::operator[](size_t index) {
338 const T& RingBuffer<T>::operator[](size_t index) const {
347 size_t RingBuffer<T>::size() const { in size()
352 void RingBuffer<T>::clear() { in clear()