Lines Matching refs:mBuffer
169 std::vector<T> mBuffer;
266 if (mBuffer.size() < mMaxBufferSize) {
267 mBuffer.push_back(item);
272 mBuffer[mFrontIdx] = item;
278 if (mBuffer.size() != mMaxBufferSize) {
279 mBuffer.push_back(std::forward<T>(item));
285 mBuffer[mFrontIdx] = std::forward<T>(item);
292 if (mBuffer.size() != mMaxBufferSize) {
293 mBuffer.emplace_back(std::forward<Args>(args)...);
299 mBuffer[mFrontIdx] = T(std::forward<Args>(args)...);
305 size_t tmp = (mBuffer.size() == 0) ? 0 : mBuffer.size() - 1;
306 return iterator(mBuffer.data(), mBuffer.size(), (mFrontIdx == 0) ? tmp : mFrontIdx - 1, 0);
311 size_t s = mBuffer.size();
312 return iterator(mBuffer.data(), s, s, s);
317 size_t tmp = (mBuffer.size() == 0) ? 0 : mBuffer.size() - 1;
318 return const_iterator(mBuffer.data(), mBuffer.size(),
324 size_t s = mBuffer.size();
325 return const_iterator(mBuffer.data(), s, s, s);
330 LOG_ALWAYS_FATAL_IF(index >= mBuffer.size(), "Index %zu out of bounds, size is %zu.",
331 index, mBuffer.size());
333 mBuffer.size() - 1 - (index - mFrontIdx) : mFrontIdx - 1 - index;
334 return mBuffer[pos];
339 LOG_ALWAYS_FATAL_IF(index >= mBuffer.size(), "Index %zu out of bounds, size is %zu.",
340 index, mBuffer.size());
342 mBuffer.size() - 1 - (index - mFrontIdx) : mFrontIdx - 1 - index;
343 return mBuffer[pos];
348 return mBuffer.size();
353 mBuffer.clear();