summaryrefslogtreecommitdiff
path: root/inc/PCollection_IndexedDataMapNode.gxx
blob: 279af550fbe0406584fb91b63d6db847f46d8c28 (plain)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
//-Copyright:	 Matra Datavision 1992
//-Version: 

//-History:
//  Version	Date         Purpose
//              14/12/92     Creation   

//-Language     C++2.0

//=======================================================================
// Function : PCollection_IndexedDataMapNode
// Purpose  : 
//=======================================================================

PCollection_IndexedDataMapNode::PCollection_IndexedDataMapNode
  (
   const Key& aKey,
   const Standard_Integer Index,
   const Item& anItem,
   const Handle(PCollection_IndexedDataMapNode)& NextKey,
   const Handle(PCollection_IndexedDataMapNode)& NextIndex) :

  myKey(aKey), myIndex(Index), myItem(anItem), 
  myNextKey(NextKey), myNextIndex(NextIndex)
{
}

//=======================================================================
// Function : Set
// Purpose  : 
//=======================================================================

void PCollection_IndexedDataMapNode::Set
  (
   const Key& aKey,
   const Standard_Integer Index,
   const Item& anItem,
   const Handle(PCollection_IndexedDataMapNode)& NextK,
   const Handle(PCollection_IndexedDataMapNode)& NextI)

{
  myKey       = aKey;
  myIndex     = Index;
  myItem      = anItem;
  myNextKey   = NextK;
  myNextIndex = NextI;
}

//=======================================================================
// Function : GetKey
// Purpose  : 
//=======================================================================

Key PCollection_IndexedDataMapNode::GetKey() const
{
  return myKey;
}


//=======================================================================
// Function : Index
// Purpose  : 
//=======================================================================

Standard_Integer PCollection_IndexedDataMapNode::Index() const
{
  return myIndex;
}


//=======================================================================
// Function : GetItem
// Purpose  : 
//=======================================================================

Item PCollection_IndexedDataMapNode::GetItem() const
{
  return myItem;
}

//=======================================================================
// Function : KeyAndItem
// Purpose  : get two fields
//=======================================================================

void PCollection_IndexedDataMapNode::KeyAndItem(Key& theKey, Item& theItem) const
{
  theKey     = myKey;
  theItem    = myItem;
}

//=======================================================================
// Function : IndexAndItem
// Purpose  : get two fields
//=======================================================================

void PCollection_IndexedDataMapNode::IndexAndItem(Standard_Integer& Index, 
						Item& theItem) const
{
  Index    = myIndex;
  theItem  = myItem;
}


//=======================================================================
// Function : NextKey
// Purpose  : 
//=======================================================================

Handle(PCollection_IndexedDataMapNode) 
     PCollection_IndexedDataMapNode::NextKey() const
{
  return myNextKey;
}

//=======================================================================
// Function : NextIndex
// Purpose  : 
//=======================================================================

Handle(PCollection_IndexedDataMapNode) 
     PCollection_IndexedDataMapNode::NextIndex() const
{
  return myNextIndex;
}

//=======================================================================
// Function : SetItem
// Purpose  : 
//=======================================================================

void PCollection_IndexedDataMapNode::SetItem(const Item& anItem)
{
  myItem = anItem;
}

//=======================================================================
// Function : SetNextKey
// Purpose  : 
//=======================================================================

void PCollection_IndexedDataMapNode::
  SetNextKey(const Handle(PCollection_IndexedDataMapNode)& aNode)
{
  myNextKey = aNode;
}

//=======================================================================
// Function : SetNextIndex
// Purpose  : 
//=======================================================================

void PCollection_IndexedDataMapNode::
  SetNextIndex(const Handle(PCollection_IndexedDataMapNode)& aNode)
{
  myNextIndex = aNode;
}