-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC_DArray.hpp
More file actions
59 lines (42 loc) · 1.33 KB
/
C_DArray.hpp
File metadata and controls
59 lines (42 loc) · 1.33 KB
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
//////////////////////////////////////////////////////////////////////////////////
// [ DArray_Class_Header ]
//////////////////////////////////////////////////////////////////////////////////
//
// [DYNAMIC ARRAY CLASS]
//
// Last modi: 07.08.07 L.ey (�~)
//
#ifndef _C_DARRAY_H_
#define _C_DARRAY_H_
//#include <windows.h>
#include "C_Array.hpp"
//////////////////////////////////////////////////////////////////////////////////
const DWORD C_DARRAY_READY = 0x00000001;
const DWORD C_DARRAY_ERROR = 0x00000000;
//////////////////////////////////////////////////////////////////////////////////
struct S_C_DArray
{
S_C_DArray* _pNext;
S_C_DArray* _pPrev;
C_Array* _pData;
};
//////////////////////////////////////////////////////////////////////////////////
class C_DArray
{
public:
C_DArray();
C_DArray(const C_DArray&);
~C_DArray();
C_DArray& operator=(const C_DArray&);
S_C_DArray* _Add_Item();
C_Array* _Add_Item(DWORD nItem, DWORD cItem);
S_C_DArray* _Get_pItem(DWORD Offset) const;
DWORD _Del_Item(DWORD Offset);
DWORD _Clear();
DWORD _Get_nItems() const {return(_nItems);}
private:
DWORD _nItems;
S_C_DArray* _pHead;
S_C_DArray* _pTail;
};
#endif // _C_DARRAY_H_