TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TTKCommon
TTKLibrary
ttkany.cpp
Go to the documentation of this file.
1
#include "
ttkany.h
"
2
3
TTKAny::TTKAny
() noexcept
4
: m_type(
std
::type_index(typeid(
void
)))
5
{
6
7
}
8
9
TTKAny::TTKAny
(
const
TTKAny
&other) noexcept
10
: m_ptr(other.clone())
11
, m_type(other.m_type)
12
{
13
14
}
15
16
TTKAny::TTKAny
(
TTKAny
&&other) noexcept
17
: m_ptr(
std
::move(other.m_ptr))
18
, m_type(
std
::move(other.m_type))
19
{
20
21
}
22
23
bool
TTKAny::isNull
()
const
noexcept
24
{
25
return
!bool(
m_ptr
);
26
}
27
28
TTKAny
&
TTKAny::operator=
(
const
TTKAny
&other) noexcept
29
{
30
if
(m_ptr == other.m_ptr)
31
{
32
return
*
this
;
33
}
34
35
m_ptr = other.
clone
();
36
m_type = other.m_type;
37
return
*
this
;
38
}
TTKAny::operator=
TTKAny & operator=(const TTKAny &other) noexcept
Definition:
ttkany.cpp:28
ttkany.h
TTKAny::clone
_BasePtr clone() const noexcept
Definition:
ttkany.h:131
std
Definition:
ttkcompat.h:39
TTKAny::m_ptr
_BasePtr m_ptr
Definition:
ttkany.h:136
TTKAny
The class of the ttk any module.
Definition:
ttkany.h:30
TTKAny::isNull
bool isNull() const noexcept
Definition:
ttkany.cpp:23
const
#define const
Definition:
zconf.h:233
TTKAny::TTKAny
TTKAny() noexcept
Definition:
ttkany.cpp:3
Generated on Tue Jan 21 2025 21:07:12 for TTKMusicPlayer by
1.8.8