-
Notifications
You must be signed in to change notification settings - Fork 75
/
TestClass.h
90 lines (59 loc) · 1.4 KB
/
TestClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#pragma once
#include <string>
#include <vector>
class BaseClass
{
public:
int A;
int B;
void Foo(int p);
};
class NoDeleteClass
{
public:
NoDeleteClass()
{
//UE_LOG(LogTemp, Warning, TEXT("NoDeleteClass"));
}
~NoDeleteClass() = delete;
};
class TestClass : public BaseClass
{
public:
int32_t X;
int32_t Y;
TestClass();
TestClass(int32_t InX, int32_t InY);
static int32_t Add(int32_t a, int32_t b);
static void Overload();
static void Overload(int32_t a);
static void Overload(int32_t a, int32_t b);
static void Overload(std::string a, int32_t b);
int32_t OverloadMethod();
int32_t OverloadMethod(int32_t a);
uint32_t OverloadMethod(uint32_t a);
int64_t OverloadMethod(int64_t a);
TestClass *GetSelf();
static void PrintInfo(TestClass *);
int Ref(int32_t & a);
void StrRef(std::string & str);
void NoEmptyRef(NoDeleteClass & o) const
{
//UE_LOG(LogTemp, Warning, TEXT("NoEmptyRef %p"), &o);
}
int Ptr(int32_t * a);
const char* CStr(const char* str);
void StrPtr(std::string * str);
void ConstRef(const int32_t & a);
void ThrowInCpp(bool bthrow);
void TV(std::vector<int> v)
{
}
void CallBase(BaseClass *b)
{
UE_LOG(LogTemp, Warning, TEXT("CallBase"));
b->Foo(10);
}
static int StaticInt;
static const float Ten;
};