TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include <ttkvariant.h>
Public Member Functions | |
TTKVariant () | |
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 |
Definition at line 108 of file ttkvariant.h.
|
private |
Definition at line 117 of file ttkvariant.h.
|
private |
Definition at line 116 of file ttkvariant.h.
|
private |
Enumerator | |
---|---|
data_size | |
align_size |
Definition at line 110 of file ttkvariant.h.
|
inline |
Object constructor.
Definition at line 123 of file ttkvariant.h.
|
inline |
Object constructor.
Definition at line 131 of file ttkvariant.h.
|
inline |
Object constructor.
Definition at line 140 of file ttkvariant.h.
References TTKVariant< Types >::m_data, and TTKVariant< Types >::m_type.
|
inline |
|
inline |
Object destructor.
Definition at line 163 of file ttkvariant.h.
|
inline |
Definition at line 209 of file ttkvariant.h.
References name, and TTK_ERROR_STREAM.
|
inlinenoexcept |
Definition at line 221 of file ttkvariant.h.
References T.
|
inlinenoexcept |
Definition at line 198 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 193 of file ttkvariant.h.
References T.
|
inlinenoexcept |
Definition at line 187 of file ttkvariant.h.
|
inline |
Definition at line 168 of file ttkvariant.h.
References TTKVariant< Types >::m_data, and TTKVariant< Types >::m_type.
|
inline |
Definition at line 175 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 182 of file ttkvariant.h.
|
inlinenoexcept |
Definition at line 203 of file ttkvariant.h.
|
private |
Definition at line 227 of file ttkvariant.h.
Referenced by TTKVariant< Types >::operator=(), and TTKVariant< Types >::TTKVariant().
|
private |
Definition at line 228 of file ttkvariant.h.
Referenced by TTKVariant< Types >::operator=(), and TTKVariant< Types >::TTKVariant().