TTKMusicPlayer
3.7.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 ttk any module. More...
#include <ttkany.h>
Classes | |
struct | _Base |
struct | _Derived |
Public Member Functions | |
TTKAny () noexcept | |
TTKAny (const TTKAny &other) noexcept | |
TTKAny (TTKAny &&other) noexcept | |
template<typename T , typename = typename std::enable_if<!std::is_same<typename std::decay<T>::type, TTKAny>::value, T>::type> | |
TTKAny (T &&t) noexcept | |
bool | isNull () const noexcept |
template<typename T > | |
bool | isSame () const noexcept |
template<typename T > | |
T & | cast () |
template<typename T > | |
const T & | cast () const |
TTKAny & | operator= (const TTKAny &other) noexcept |
void | swap (TTKAny &other) noexcept |
Private Types | |
using | _BasePtr = std::unique_ptr< _Base > |
Private Member Functions | |
_BasePtr | clone () const noexcept |
Private Attributes | |
_BasePtr | m_ptr |
std::type_index | m_type |
|
private |
|
noexcept |
Object constructor.
Definition at line 3 of file ttkany.cpp.
Definition at line 9 of file ttkany.cpp.
|
noexcept |
Definition at line 16 of file ttkany.cpp.
|
inlinenoexcept |
|
inline |
Cast value by type T.
Definition at line 67 of file ttkany.h.
References T, TTKConstCast, and TTKStaticCast.
Referenced by TTK::any_cast().
|
inlineprivatenoexcept |
Clone data from this.
Definition at line 131 of file ttkany.h.
References clone().
Referenced by clone(), and operator=().
|
noexcept |
|
inlinenoexcept |
Current container is same or not by type T.
Definition at line 58 of file ttkany.h.
References T.
Referenced by TTK::any_cast().
|
inlinenoexcept |