Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::Compiler::Context::SmallSet< T > Class Template Reference

#include <qv4compilercontext_p.h>

+ Inheritance diagram for QV4::Compiler::Context::SmallSet< T >:
+ Collaboration diagram for QV4::Compiler::Context::SmallSet< T >:

Public Member Functions

void insert (int value)
 
- Public Member Functions inherited from QVarLengthArray< T, 8 >
 QVarLengthArray () noexcept
 
 QVarLengthArray (qsizetype size)
 
 QVarLengthArray (qsizetype sz, const T &v)
 
 QVarLengthArray (const QVarLengthArray &other)
 
 QVarLengthArray (QVarLengthArray &&other) noexcept(std::is_nothrow_move_constructible_v< T >)
 
 QVarLengthArray (std::initializer_list< T > args)
 
 QVarLengthArray (InputIterator first, InputIterator last)
 
 ~QVarLengthArray ()
 
QVarLengthArray< T, Prealloc > & operator= (const QVarLengthArray< T, Prealloc > &other)
 
QVarLengthArrayoperator= (QVarLengthArray &&other) noexcept(std::is_nothrow_move_constructible_v< T >)
 
QVarLengthArray< T, Prealloc > & operator= (std::initializer_list< T > list)
 
void removeLast ()
 
qsizetype count () const
 
qsizetype length () const
 
T & first ()
 
const T & first () const
 
T & last ()
 
const T & last () const
 
bool isEmpty () const
 
void resize (qsizetype sz)
 
void resize (qsizetype sz, const T &v)
 
void squeeze ()
 
void reserve (qsizetype sz)
 
const T & at (qsizetype idx) const
 
void append (const T &t)
 
void append (T &&t)
 
void append (const T *buf, qsizetype sz)
 
QVarLengthArray< T, Prealloc > & operator<< (const T &t)
 
QVarLengthArray< T, Prealloc > & operator<< (T &&t)
 
QVarLengthArray< T, Prealloc > & operator+= (const T &t)
 
QVarLengthArray< T, Prealloc > & operator+= (T &&t)
 
void insert (qsizetype i, T &&t)
 
void insert (qsizetype i, const T &t)
 
void insert (qsizetype i, qsizetype n, const T &t)
 
iterator insert (const_iterator before, qsizetype n, const T &x)
 
iterator insert (const_iterator before, T &&x)
 
iterator insert (const_iterator before, const T &x)
 
QVarLengthArrayassign (qsizetype n, const T &t)
 
QVarLengthArrayassign (InputIterator first, InputIterator last)
 
QVarLengthArrayassign (std::initializer_list< T > list)
 
const T * constData () const
 
auto constBegin () const -> const_iterator
 
const_iterator constEnd () const
 
void push_back (const T &t)
 
void push_back (T &&t)
 
void shrink_to_fit ()
 
iterator emplace (const_iterator pos, Args &&...args)
 
T & emplace_back (Args &&...args)
 
void clear ()
 
qsizetype indexOf (const AT &t, qsizetype from=0) const
 
Q_INLINE_TEMPLATE qsizetype indexOf (const AT &t, qsizetype from) const
 
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const
 
Q_INLINE_TEMPLATE qsizetype lastIndexOf (const AT &t, qsizetype from) const
 
bool contains (const AT &t) const
 
Q_INLINE_TEMPLATE bool contains (const AT &t) const
 
value_type value (qsizetype i) const
 
value_type value (qsizetype i, const T &defaultValue) const
 
void replace (qsizetype i, const T &t)
 
void remove (qsizetype i, qsizetype n=1)
 
qsizetype removeAll (const AT &t)
 
bool removeOne (const AT &t)
 
qsizetype removeIf (Predicate pred)
 
T * data () noexcept
 
const T * data () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
reverse_iterator rbegin () noexcept
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crend () const noexcept
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator pos)
 
void pop_back ()
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
- Public Member Functions inherited from QVLABase< T >
T * data () noexcept
 
const T * data () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
reverse_iterator rbegin () noexcept
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crend () const noexcept
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void pop_back ()
 
template<typename AT = T>
qsizetype indexOf (const AT &t, qsizetype from=0) const
 
template<typename AT = T>
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const
 
template<typename AT = T>
bool contains (const AT &t) const
 
reference operator[] (qsizetype idx)
 
const_reference operator[] (qsizetype idx) const
 
value_type value (qsizetype i) const
 
value_type value (qsizetype i, const T &defaultValue) const
 
void replace (qsizetype i, const T &t)
 
void remove (qsizetype i, qsizetype n=1)
 
template<typename AT = T>
qsizetype removeAll (const AT &t)
 
template<typename AT = T>
bool removeOne (const AT &t)
 
template<typename Predicate >
qsizetype removeIf (Predicate pred)
 
void clear ()
 
iterator erase (const_iterator begin, const_iterator end)
 
iterator erase (const_iterator pos)
 
size_t hash (size_t seed) const noexcept(QtPrivate::QNothrowHashable_v< T >)
 
template<typename AT >
Q_INLINE_TEMPLATE qsizetype indexOf (const AT &t, qsizetype from) const
 
template<typename AT >
Q_INLINE_TEMPLATE qsizetype lastIndexOf (const AT &t, qsizetype from) const
 
template<typename AT >
Q_INLINE_TEMPLATE bool contains (const AT &t) const
 
template<typename Iterator >
Q_OUTOFLINE_TEMPLATE void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last)
 
template<typename... Args>
Q_OUTOFLINE_TEMPLATE auto emplace_impl (qsizetype prealloc, void *array, const_iterator before, Args &&...args) -> iterator
 
- Public Member Functions inherited from QVLABaseBase
constexpr size_type capacity () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr bool empty () const noexcept
 

Additional Inherited Members

- Public Types inherited from QVarLengthArray< T, 8 >
using size_type
 
using value_type
 
using pointer
 
using const_pointer
 
using reference
 
using const_reference
 
using difference_type
 
using iterator
 
using const_iterator
 
using reverse_iterator
 
using const_reverse_iterator
 
- Public Types inherited from QVLABase< T >
using iterator = T*
 
using const_iterator = const T*
 
using reverse_iterator = std::reverse_iterator<iterator>
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 
using value_type = T
 
using reference = value_type&
 
using const_reference = const value_type&
 
using pointer = value_type*
 
using const_pointer = const value_type*
 
using difference_type = qptrdiff
 
- Public Types inherited from QVLABaseBase
using size_type = qsizetype
 
- Static Public Member Functions inherited from QVLABase< T >
static constexpr qsizetype max_size () noexcept
 
- Static Public Attributes inherited from QVarLengthArray< T, 8 >
static constexpr qsizetype PreallocatedSize
 
- Protected Types inherited from QVLABaseBase
using malloced_ptr = std::unique_ptr<void, free_deleter>
 
- Protected Member Functions inherited from QVLAStorage< sizeof(T), alignof(T), Prealloc >
 ~QVLAStorage ()=default
 
- Protected Member Functions inherited from QVLABase< T >
 ~QVLABase ()=default
 
void growBy (qsizetype prealloc, void *array, qsizetype increment)
 
template<typename... Args>
reference emplace_back_impl (qsizetype prealloc, void *array, Args &&...args)
 
template<typename... Args>
iterator emplace_impl (qsizetype prealloc, void *array, const_iterator pos, Args &&...arg)
 
iterator insert_impl (qsizetype prealloc, void *array, const_iterator pos, qsizetype n, const T &t)
 
template<typename S >
bool equal (const QVLABase< S > &other) const
 
template<typename S >
bool less_than (const QVLABase< S > &other) const
 
void append_impl (qsizetype prealloc, void *array, const T *buf, qsizetype n)
 
void reallocate_impl (qsizetype prealloc, void *array, qsizetype size, qsizetype alloc)
 
void resize_impl (qsizetype prealloc, void *array, qsizetype sz, const T &v)
 
void resize_impl (qsizetype prealloc, void *array, qsizetype sz)
 
void assign_impl (qsizetype prealloc, void *array, qsizetype n, const T &t)
 
template<typename Iterator >
void assign_impl (qsizetype prealloc, void *array, Iterator first, Iterator last)
 
bool isValidIterator (const const_iterator &i) const
 
- Protected Member Functions inherited from QVLABaseBase
 ~QVLABaseBase ()=default
 
Q_ALWAYS_INLINE constexpr void verify (qsizetype pos=0, qsizetype n=1) const
 
- Protected Attributes inherited from QVLAStorage< sizeof(T), alignof(T), Prealloc >
char array [Prealloc *(Align > Size ? Align :Size)]
 
QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED
 
- Protected Attributes inherited from QVLABaseBase
qsizetype a
 
qsizetype s
 
voidptr
 

Detailed Description

template<typename T>
class QV4::Compiler::Context::SmallSet< T >

Definition at line 224 of file qv4compilercontext_p.h.

Member Function Documentation

◆ insert()

template<typename T >
void QV4::Compiler::Context::SmallSet< T >::insert ( int value)
inline

Definition at line 227 of file qv4compilercontext_p.h.

References QVarLengthArray< T, 8 >::append(), and it.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: