forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LinkClass.h
39 lines (31 loc) · 829 Bytes
/
LinkClass.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
#pragma once
#include <GeneralDefinitions.h>
#include <YRPPCore.h>
class LinkClass
{
public:
//Destructor
virtual ~LinkClass() RX;
//LinkClass
virtual LinkClass* GetNext() R0;
virtual LinkClass* GetPrev() R0;
virtual LinkClass* Add(LinkClass& another) R0;
virtual LinkClass* AddTail(LinkClass& another) R0;
virtual LinkClass* AddHead(LinkClass& another) R0;
virtual LinkClass* HeadOfList(LinkClass& another) R0;
virtual LinkClass* TailOfList(LinkClass& another) R0;
virtual void Zap() RX;
virtual LinkClass* Remove() R0;
//Non virtual
LinkClass& operator=(LinkClass& another) { JMP_THIS(0x556600); }
//Constructors
LinkClass(LinkClass& another) { JMP_THIS(0x556550); }
protected:
explicit __forceinline LinkClass(noinit_t) noexcept
{
}
//Properties
public:
LinkClass* Next;
LinkClass* Previous;
};