QCircularBuffer Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | QCircularBuffer

Qt 5.6.2 Reference Documentation

# QCircularBuffer Class

(Qt3DCore::QCircularBuffer)

- List of all members, including inherited members

## Public Types

class | const_iterator
class | iterator
typedef | ArrayRange
typedef | ConstArrayRange
typedef | ConstIterator
typedef | Iterator
typedef | array_range
typedef | const_array_range
typedef | const_pointer
typedef | const_reference
typedef | const_reverse_iterator
typedef | difference_type
typedef | pointer
typedef | reference
typedef | reverse_iterator
typedef | size_type
typedef | value_type

## Public Functions

| QCircularBuffer()
| QCircularBuffer(int amount)
| QCircularBuffer(int amount, const T &val)
| QCircularBuffer(int amount, int initialSize, const T &value)
| QCircularBuffer(std::initializer_list<T> list)
| QCircularBuffer(ForwardIterator f, ForwardIterator l)
| QCircularBuffer(const QCircularBuffer<T> &other)
| ~QCircularBuffer()
void | append(const T &val)
const T & | at(int i) const
T & | back()
const T & | back() const
iterator | begin()
const_iterator | begin() const
int | capacity() const
const_iterator | cbegin() const
const_iterator | cend() const
void | clear()
const_iterator | constBegin() const
const_array_range | constData() const
const_array_range | constDataOne() const
const_array_range | constDataTwo() const
const_iterator | constEnd() const
bool | contains(const T &val) const
int | count(const T &val) const
int | count() const
const_reverse_iterator | crbegin() const
const_reverse_iterator | crend() const
array_range | data()
const_array_range | data() const
array_range | dataOne()
const_array_range | dataOne() const
array_range | dataTwo()
const_array_range | dataTwo() const
bool | empty() const
iterator | end()
const_iterator | end() const
bool | endsWith(const T &val) const
iterator | erase(const_iterator b, const_iterator e)
iterator | erase(const_iterator pos)
QCircularBuffer<T> & | fill(const T &val, int number = -1)
T & | first()
const T & | first() const
int | freeSize() const
T & | front()
const T & | front() const
int | indexOf(const T &val, int from = 0) const
iterator | insert(const_iterator before, int number, const T &val)
iterator | insert(const_iterator before, const T &val)
void | insert(int i, const T &val)
void | insert(int i, int number, const T &val)
bool | isEmpty() const
bool | isFull() const
bool | isLinearised() const
bool | isSharedWith(const QCircularBuffer &other) const
T & | last()
const T & | last() const
int | lastIndexOf(const T &val, int from = -1) const
void | linearise()
int | max_size() const
void | pop_back()
void | pop_front()
void | prepend(const T &val)
void | push_back(const T &t)
void | push_front(const T &t)
reverse_iterator | rbegin()
const_reverse_iterator | rbegin() const
QAtomicInt | refCount() const
void | remove(int i)
void | remove(int i, int number)
reverse_iterator | rend()
const_reverse_iterator | rend() const
void | replace(int i, const T &val)
void | reserve(int amount)
void | resize(int newSize)
void | setCapacity(int amount)
int | size() const
int | sizeAvailable() const
void | squeeze()
bool | startsWith(const T &val) const
void | swap(QCircularBuffer &other)
QList<T> | toList() const
QVector<T> | toVector() const
T | value(int i) const
T | value(int i, const T &defaultValue) const
QCircularBuffer<T> & | operator+=(const T &other)
QCircularBuffer<T> & | operator+=(const QCircularBuffer<T> &other)
QCircularBuffer<T> & | operator+=(const QVector<T> &other)
QCircularBuffer<T> & | operator+=(const QList<T> &other)
QCircularBuffer<T> & | operator<<(const T &other)
QCircularBuffer<T> & | operator<<(const QCircularBuffer<T> &other)
QCircularBuffer<T> & | operator<<(const QVector<T> &other)
QCircularBuffer<T> & | operator<<(const QList<T> &other)
QCircularBuffer<T> & | operator=(const QCircularBuffer<T> &other)
const T & | operator[](int i) const
T & | operator[](int i)

## Static Public Members

QCircularBuffer<T> | fromList(const QList<T> &list)
QCircularBuffer<T> | fromVector(const QVector<T> &vector)

## Member Type Documentation

### typedef QCircularBuffer::ArrayRange

### typedef QCircularBuffer::ConstArrayRange

### typedef QCircularBuffer::ConstIterator

### typedef QCircularBuffer::Iterator

### typedef QCircularBuffer::array_range

### typedef QCircularBuffer::const_array_range

### typedef QCircularBuffer::const_pointer

### typedef QCircularBuffer::const_reference

### typedef QCircularBuffer::const_reverse_iterator

### typedef QCircularBuffer::difference_type

### typedef QCircularBuffer::pointer

### typedef QCircularBuffer::reference

### typedef QCircularBuffer::reverse_iterator

### typedef QCircularBuffer::size_type

### typedef QCircularBuffer::value_type

## Member Function Documentation

### QCircularBuffer::QCircularBuffer()

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(int amount)

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(int amount, const T &val)

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(int amount, int initialSize, const T &value)

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(std::initializer_list<T> list)

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(ForwardIterator f, ForwardIterator l)

Default constructs an instance of QCircularBuffer.

### QCircularBuffer::QCircularBuffer(const QCircularBuffer<T> &other)

Copy constructor.

### QCircularBuffer::~QCircularBuffer()

Destroys the instance of QCircularBuffer.

### void QCircularBuffer::append(const T &val)

### const T &QCircularBuffer::at(int i) const

### T &QCircularBuffer::back()

### const T &QCircularBuffer::back() const

### iterator QCircularBuffer::begin()

### const_iterator QCircularBuffer::begin() const

### int QCircularBuffer::capacity() const

See also setCapacity().

### const_iterator QCircularBuffer::cbegin() const

### const_iterator QCircularBuffer::cend() const

### void QCircularBuffer::clear()

### const_iterator QCircularBuffer::constBegin() const

### const_array_range QCircularBuffer::constData() const

### const_array_range QCircularBuffer::constDataOne() const

### const_array_range QCircularBuffer::constDataTwo() const

### const_iterator QCircularBuffer::constEnd() const

### bool QCircularBuffer::contains(const T &val) const

### int QCircularBuffer::count(const T &val) const

### int QCircularBuffer::count() const

### const_reverse_iterator QCircularBuffer::crbegin() const

### const_reverse_iterator QCircularBuffer::crend() const

### array_range QCircularBuffer::data()

### const_array_range QCircularBuffer::data() const

### array_range QCircularBuffer::dataOne()

### const_array_range QCircularBuffer::dataOne() const

### array_range QCircularBuffer::dataTwo()

### const_array_range QCircularBuffer::dataTwo() const

### bool QCircularBuffer::empty() const

### iterator QCircularBuffer::end()

### const_iterator QCircularBuffer::end() const

### bool QCircularBuffer::endsWith(const T &val) const

### iterator QCircularBuffer::erase(const_iterator b, const_iterator e)

### iterator QCircularBuffer::erase(const_iterator pos)

### QCircularBuffer<T> &QCircularBuffer::fill(const T &val, int number = -1)

### T &QCircularBuffer::first()

### const T &QCircularBuffer::first() const

### int QCircularBuffer::freeSize() const

### `[static]` QCircularBuffer<T> QCircularBuffer::fromList(const QList<T> &list)

### `[static]` QCircularBuffer<T> QCircularBuffer::fromVector(const QVector<T> &vector)

### T &QCircularBuffer::front()

### const T &QCircularBuffer::front() const

### int QCircularBuffer::indexOf(const T &val, int from = 0) const

### iterator QCircularBuffer::insert(const_iterator before, int number, const T &val)

### iterator QCircularBuffer::insert(const_iterator before, const T &val)

### void QCircularBuffer::insert(int i, const T &val)

### void QCircularBuffer::insert(int i, int number, const T &val)

### bool QCircularBuffer::isEmpty() const

### bool QCircularBuffer::isFull() const

### bool QCircularBuffer::isLinearised() const

### bool QCircularBuffer::isSharedWith(const QCircularBuffer &other) const

### T &QCircularBuffer::last()

### const T &QCircularBuffer::last() const

### int QCircularBuffer::lastIndexOf(const T &val, int from = -1) const

### void QCircularBuffer::linearise()

### int QCircularBuffer::max_size() const

### void QCircularBuffer::pop_back()

### void QCircularBuffer::pop_front()

### void QCircularBuffer::prepend(const T &val)

### void QCircularBuffer::push_back(const T &t)

### void QCircularBuffer::push_front(const T &t)

### reverse_iterator QCircularBuffer::rbegin()

### const_reverse_iterator QCircularBuffer::rbegin() const

### QAtomicInt QCircularBuffer::refCount() const

### void QCircularBuffer::remove(int i)

### void QCircularBuffer::remove(int i, int number)

### reverse_iterator QCircularBuffer::rend()

### const_reverse_iterator QCircularBuffer::rend() const

### void QCircularBuffer::replace(int i, const T &val)

### void QCircularBuffer::reserve(int amount)

### void QCircularBuffer::resize(int newSize)

### void QCircularBuffer::setCapacity(int amount)

See also capacity().

### int QCircularBuffer::size() const

### int QCircularBuffer::sizeAvailable() const

### void QCircularBuffer::squeeze()

### bool QCircularBuffer::startsWith(const T &val) const

### void QCircularBuffer::swap(QCircularBuffer &other)

### QList<T> QCircularBuffer::toList() const

### QVector<T> QCircularBuffer::toVector() const

### T QCircularBuffer::value(int i) const

### T QCircularBuffer::value(int i, const T &defaultValue) const

### QCircularBuffer<T> &QCircularBuffer::operator+=(const T &other)

### QCircularBuffer<T> &QCircularBuffer::operator+=(const QCircularBuffer<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator+=(const QVector<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator+=(const QList<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator<<(const T &other)

### QCircularBuffer<T> &QCircularBuffer::operator<<(const QCircularBuffer<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator<<(const QVector<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator<<(const QList<T> &other)

### QCircularBuffer<T> &QCircularBuffer::operator=(const QCircularBuffer<T> &other)

Copy-assignment operator.

### const T &QCircularBuffer::operator[](int i) const

### T &QCircularBuffer::operator[](int i)