persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
UIAnimated.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
14
template
<
typename
T>
class
UIAnimated
15
{
16
public
:
17
UIAnimated
() :
value
{}
18
{
19
}
20
21
explicit
UIAnimated
(T initial) :
value
(initial)
22
{
23
}
24
25
~UIAnimated
() =
default
;
26
27
UIAnimated
(
const
UIAnimated
&) =
delete
;
28
UIAnimated
&
operator=
(
const
UIAnimated
&) =
delete
;
29
UIAnimated
(
UIAnimated
&&) =
delete
;
30
UIAnimated
&
operator=
(
UIAnimated
&&) =
delete
;
31
32
T&
get
()
33
{
34
return
value
;
35
}
36
37
const
T&
get
()
const
38
{
39
return
value
;
40
}
41
42
void
set
(
const
T& v)
43
{
44
value
= v;
45
}
46
47
operator
T&()
48
{
49
return
value
;
50
}
51
52
operator
const
T&()
const
53
{
54
return
value
;
55
}
56
57
private
:
58
T
value
;
59
};
UIAnimated::set
void set(const T &v)
Definition
UIAnimated.hpp:42
UIAnimated::UIAnimated
UIAnimated(const UIAnimated &)=delete
UIAnimated::operator=
UIAnimated & operator=(UIAnimated &&)=delete
UIAnimated::UIAnimated
UIAnimated(T initial)
Definition
UIAnimated.hpp:21
UIAnimated::~UIAnimated
~UIAnimated()=default
UIAnimated::get
T & get()
Definition
UIAnimated.hpp:32
UIAnimated::UIAnimated
UIAnimated()
Definition
UIAnimated.hpp:17
UIAnimated::value
T value
Definition
UIAnimated.hpp:58
UIAnimated::UIAnimated
UIAnimated(UIAnimated &&)=delete
UIAnimated::get
const T & get() const
Definition
UIAnimated.hpp:37
UIAnimated::operator=
UIAnimated & operator=(const UIAnimated &)=delete
source
uiAnimation
UIAnimated.hpp
Generated by
1.15.0