-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathcPMFG_Node.cls
70 lines (54 loc) · 1.25 KB
/
cPMFG_Node.cls
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "cPMFG_Node"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Private pindex As Long
Private pvisited As Long
Private plink() As Long
Private ptype As String
Private psign As Long
Sub InitGraphNode()
ReDim plink(0 To 1)
pindex = -1
plink(0) = -1
plink(1) = -1
pvisited = 0
ptype = "TYPE_UNKNOWN"
psign = 1
End Sub
Public Property Get index() As Long
index = pindex
End Property
Public Property Let index(v As Long)
pindex = v
End Property
Public Property Get visited() As Long
visited = pvisited
End Property
Public Property Let visited(v As Long)
pvisited = v
End Property
Public Property Get Link(i As Long) As Long
Link = plink(i)
End Property
Public Property Let Link(i As Long, llink As Long)
plink(i) = llink
End Property
Public Property Get etype() As String
etype = ptype
End Property
Public Property Let etype(ltype As String)
ptype = ltype
End Property
Public Property Get sign() As Long
sign = psign
End Property
Public Property Let sign(lsign As Long)
psign = lsign
End Property