|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the variant module. More...
#include <ttkvariant.h>
Public Member Functions | |
| TTKVariant () noexcept | |
| TTKVariant (TTKVariant< Types...> &&other) | |
| TTKVariant (const TTKVariant< Types...> &other) | |
| template<class T , class = typename std::enable_if<Contains<typename std::remove_reference<T>::type, Types...>::value>::type> | |
| TTKVariant (T &&value) | |
| ~TTKVariant () | |
| TTKVariant & | operator= (const TTKVariant &other) |
| TTKVariant & | operator= (TTKVariant &&other) |
| bool | operator== (const TTKVariant &other) const noexcept |
| bool | operator< (const TTKVariant &other) const noexcept |
| template<typename T > | |
| bool | isSame () const noexcept |
| bool | isEmpty () const noexcept |
| std::type_index | type () const noexcept |
| template<typename T > | |
| std::decay< T >::type & | get () |
| template<typename T > | |
| int | indexOf () const noexcept |
Private Types | |
| enum | { data_size = IntegerMax<sizeof(Types)...>::value, align_size = MaxAlign<Types...>::value } |
| typedef VariantHelper< Types...> | Helper_t |
| using | data_t = typename std::aligned_storage< data_size, align_size >::type |
Private Attributes | |
| data_t | m_data |
| std::type_index | m_type |
The class of the variant module.
Definition at line 123 of file ttkvariant.h.
|
private |
Definition at line 132 of file ttkvariant.h.
|
private |
Definition at line 131 of file ttkvariant.h.
|
private |
| Enumerator | |
|---|---|
| data_size | |
| align_size | |
Definition at line 125 of file ttkvariant.h.
|
inlinenoexcept |
Object constructor.
Definition at line 138 of file ttkvariant.h.
|
inline |
Object constructor.
Definition at line 147 of file ttkvariant.h.
|
inline |
Object constructor.
Definition at line 156 of file ttkvariant.h.
References TTKVariant< Types >::m_data, and TTKVariant< Types >::m_type.
|
inline |
|
inline |
Object destructor.
Definition at line 179 of file ttkvariant.h.
|
inline |
Definition at line 225 of file ttkvariant.h.
References name, and TTK_ERROR_STREAM.
|
inlinenoexcept |
Definition at line 237 of file ttkvariant.h.
References T.
|
inlinenoexcept |
Definition at line 214 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 209 of file ttkvariant.h.
References T.
|
inlinenoexcept |
Definition at line 203 of file ttkvariant.h.
|
inline |
Definition at line 184 of file ttkvariant.h.
References TTKVariant< Types >::m_data, and TTKVariant< Types >::m_type.
|
inline |
Definition at line 191 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 198 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 219 of file ttkvariant.h.
|
private |
Definition at line 243 of file ttkvariant.h.
Referenced by TTKVariant< Types >::operator=(), and TTKVariant< Types >::TTKVariant().
|
private |
Definition at line 244 of file ttkvariant.h.
Referenced by TTKVariant< Types >::operator=(), and TTKVariant< Types >::TTKVariant().
1.8.8