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
14template <typename T> class UIAnimated
15{
16 public:
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;
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:
59};
void set(const T &v)
UIAnimated(const UIAnimated &)=delete
UIAnimated & operator=(UIAnimated &&)=delete
UIAnimated(T initial)
~UIAnimated()=default
UIAnimated(UIAnimated &&)=delete
const T & get() const
UIAnimated & operator=(const UIAnimated &)=delete