Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QEnumIndexedArray< T, E, N > Struct Template Reference

#include <qenumindexedarray_p.h>

Inheritance diagram for QEnumIndexedArray< T, E, N >:
Collaboration diagram for QEnumIndexedArray< T, E, N >:

Public Types

using value_type = typename Base::value_type
using size_type = typename Base::size_type
using index_type = Enum
using difference_type = typename Base::difference_type
using reference = typename Base::reference
using const_reference = typename Base::const_reference
using pointer = typename Base::pointer
using const_pointer = typename Base::const_pointer
using iterator = typename Base::iterator
using const_iterator = typename Base::const_iterator
using reverse_iterator = typename Base::reverse_iterator
using const_reverse_iterator = typename Base::const_reverse_iterator

Public Member Functions

 QEnumIndexedArray ()=default
Q_IMPLICIT constexpr QEnumIndexedArray (std::array< T, Size > init) noexcept(std::is_nothrow_move_constructible_v< T >)
Q_IMPLICIT constexpr QEnumIndexedArray (std::array< std::pair< Enum, T >, Size > init) noexcept(std::is_nothrow_move_constructible_v< T >)
constexpr decltype(auto) value (size_type i)
constexpr decltype(auto) value (size_type i) const
constexpr decltype(auto) at (Enum i)
constexpr decltype(auto) at (Enum i) const
constexpr decltype(auto) operator[] (Enum i)
constexpr decltype(auto) operator[] (Enum i) const
constexpr void fill (const value_type &valval) noexcept(noexcept(c.fill(valval)))
constexpr void swap (QEnumIndexedArray &other) noexcept(noexcept(c.swap(other.c)))

Protected Attributes

Base c

Friends

constexpr void swap (QEnumIndexedArray &lhs, QEnumIndexedArray &rhs) noexcept(noexcept(lhs.swap(rhs)))

Detailed Description

template<typename T, typename E, std::size_t N>
struct QEnumIndexedArray< T, E, N >

Definition at line 75 of file qenumindexedarray_p.h.

Member Typedef Documentation

◆ const_iterator

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::const_iterator = typename Base::const_iterator

Definition at line 112 of file qenumindexedarray_p.h.

◆ const_pointer

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::const_pointer = typename Base::const_pointer

Definition at line 110 of file qenumindexedarray_p.h.

◆ const_reference

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::const_reference = typename Base::const_reference

Definition at line 108 of file qenumindexedarray_p.h.

◆ const_reverse_iterator

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::const_reverse_iterator = typename Base::const_reverse_iterator

Definition at line 114 of file qenumindexedarray_p.h.

◆ difference_type

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::difference_type = typename Base::difference_type

Definition at line 106 of file qenumindexedarray_p.h.

◆ index_type

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::index_type = Enum

Definition at line 105 of file qenumindexedarray_p.h.

◆ iterator

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::iterator = typename Base::iterator

Definition at line 111 of file qenumindexedarray_p.h.

◆ pointer

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::pointer = typename Base::pointer

Definition at line 109 of file qenumindexedarray_p.h.

◆ reference

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::reference = typename Base::reference

Definition at line 107 of file qenumindexedarray_p.h.

◆ reverse_iterator

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::reverse_iterator = typename Base::reverse_iterator

Definition at line 113 of file qenumindexedarray_p.h.

◆ size_type

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::size_type = typename Base::size_type

Definition at line 104 of file qenumindexedarray_p.h.

◆ value_type

template<typename T, typename E, std::size_t N>
using QEnumIndexedArray< T, E, N >::value_type = typename Base::value_type

Definition at line 103 of file qenumindexedarray_p.h.

Constructor & Destructor Documentation

◆ QEnumIndexedArray() [1/3]

template<typename T, typename E, std::size_t N>
QEnumIndexedArray< T, E, N >::QEnumIndexedArray ( )
default

◆ QEnumIndexedArray() [2/3]

template<typename T, typename E, std::size_t N>
Q_IMPLICIT constexpr QEnumIndexedArray< T, E, N >::QEnumIndexedArray ( std::array< T, Size > init)
inlineconstexprnoexcept

Definition at line 117 of file qenumindexedarray_p.h.

◆ QEnumIndexedArray() [3/3]

template<typename T, typename E, std::size_t N>
Q_IMPLICIT constexpr QEnumIndexedArray< T, E, N >::QEnumIndexedArray ( std::array< std::pair< Enum, T >, Size > init)
inlineconstexprnoexcept

Definition at line 121 of file qenumindexedarray_p.h.

Member Function Documentation

◆ at() [1/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::at ( Enum i)
inlineconstexpr

Definition at line 128 of file qenumindexedarray_p.h.

◆ at() [2/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::at ( Enum i) const
inlineconstexpr

Definition at line 129 of file qenumindexedarray_p.h.

◆ fill()

template<typename T, typename E, std::size_t N>
void QEnumIndexedArray< T, E, N >::fill ( const value_type & val)
inlineconstexprnoexcept

Definition at line 170 of file qenumindexedarray_p.h.

◆ operator[]() [1/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::operator[] ( Enum i)
inlineconstexpr

Definition at line 130 of file qenumindexedarray_p.h.

◆ operator[]() [2/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::operator[] ( Enum i) const
inlineconstexpr

Definition at line 131 of file qenumindexedarray_p.h.

◆ swap()

template<typename T, typename E, std::size_t N>
void QEnumIndexedArray< T, E, N >::swap ( QEnumIndexedArray< T, E, N > & other)
inlineconstexprnoexcept

Definition at line 174 of file qenumindexedarray_p.h.

Referenced by QEnumIndexedArray< OperationInfo, Operation, NumOperations >::swap.

Here is the caller graph for this function:

◆ value() [1/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::value ( size_type i)
inlineconstexpr

Definition at line 126 of file qenumindexedarray_p.h.

◆ value() [2/2]

template<typename T, typename E, std::size_t N>
decltype(auto) QEnumIndexedArray< T, E, N >::value ( size_type i) const
inlineconstexpr

Definition at line 127 of file qenumindexedarray_p.h.

◆ swap

template<typename T, typename E, std::size_t N>
void swap ( QEnumIndexedArray< T, E, N > & lhs,
QEnumIndexedArray< T, E, N > & rhs )
friend

Definition at line 179 of file qenumindexedarray_p.h.

Member Data Documentation

◆ c


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