-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSqliteQueue.cs
268 lines (246 loc) · 8.98 KB
/
SqliteQueue.cs
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace TestConsole
{
class SqliteQueue<T> //: IQueue<T>
{
//public int Count => throw new NotImplementedException();
//public bool IsSynchronized => throw new NotImplementedException();
//public object SyncRoot => throw new NotImplementedException();
//public void CopyTo(Array array, int index)
//{
// throw new NotImplementedException();
//}
//public IEnumerator<T> GetEnumerator()
//{
// throw new NotImplementedException();
//}
//IEnumerator IEnumerable.GetEnumerator()
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Initializes a new instance of the System.Collections.Generic.Queue`1 class that
//// is empty and has the default initial capacity.
//public Queue()
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Initializes a new instance of the System.Collections.Generic.Queue`1 class that
//// contains elements copied from the specified collection and has sufficient capacity
//// to accommodate the number of elements copied.
////
//// Parameters:
//// collection:
//// The collection whose elements are copied to the new System.Collections.Generic.Queue`1.
////
//// Exceptions:
//// T:System.ArgumentNullException:
//// collection is null.
//public Queue(IEnumerable<T> collection)
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Initializes a new instance of the System.Collections.Generic.Queue`1 class that
//// is empty and has the specified initial capacity.
////
//// Parameters:
//// capacity:
//// The initial number of elements that the System.Collections.Generic.Queue`1 can
//// contain.
////
//// Exceptions:
//// T:System.ArgumentOutOfRangeException:
//// capacity is less than zero.
//public Queue(int capacity)
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Gets the number of elements contained in the System.Collections.Generic.Queue`1.
////
//// Returns:
//// The number of elements contained in the System.Collections.Generic.Queue`1.
//public int Count { get; }
////
//// Summary:
//// Removes all objects from the System.Collections.Generic.Queue`1.
//public void Clear()
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Determines whether an element is in the System.Collections.Generic.Queue`1.
////
//// Parameters:
//// item:
//// The object to locate in the System.Collections.Generic.Queue`1. The value can
//// be null for reference types.
////
//// Returns:
//// true if item is found in the System.Collections.Generic.Queue`1; otherwise, false.
//public bool Contains(T item)
//{
// throw new NotImplementedException();
//}
////
//// Summary:
//// Copies the System.Collections.Generic.Queue`1 elements to an existing one-dimensional
//// System.Array, starting at the specified array index.
////
//// Parameters:
//// array:
//// The one-dimensional System.Array that is the destination of the elements copied
//// from System.Collections.Generic.Queue`1. The System.Array must have zero-based
//// indexing.
////
//// arrayIndex:
//// The zero-based index in array at which copying begins.
////
//// Exceptions:
//// T:System.ArgumentNullException:
//// array is null.
////
//// T:System.ArgumentOutOfRangeException:
//// arrayIndex is less than zero.
////
//// T:System.ArgumentException:
//// The number of elements in the source System.Collections.Generic.Queue`1 is greater
//// than the available space from arrayIndex to the end of the destination array.
//public void CopyTo(T[] array, int arrayIndex)
//{
//}
////
//// Summary:
//// Removes and returns the object at the beginning of the System.Collections.Generic.Queue`1.
////
//// Returns:
//// The object that is removed from the beginning of the System.Collections.Generic.Queue`1.
////
//// Exceptions:
//// T:System.InvalidOperationException:
//// The System.Collections.Generic.Queue`1 is empty.
//public T Dequeue()
//{
//}
////
//// Summary:
//// Adds an object to the end of the System.Collections.Generic.Queue`1.
////
//// Parameters:
//// item:
//// The object to add to the System.Collections.Generic.Queue`1. The value can be
//// null for reference types.
//public void Enqueue(T item)
//{
//}
////
//// Summary:
//// Returns an enumerator that iterates through the System.Collections.Generic.Queue`1.
////
//// Returns:
//// An System.Collections.Generic.Queue`1.Enumerator for the System.Collections.Generic.Queue`1.
//public Enumerator GetEnumerator()
//{
//}
////
//// Summary:
//// Returns the object at the beginning of the System.Collections.Generic.Queue`1
//// without removing it.
////
//// Returns:
//// The object at the beginning of the System.Collections.Generic.Queue`1.
////
//// Exceptions:
//// T:System.InvalidOperationException:
//// The System.Collections.Generic.Queue`1 is empty.
//public T Peek()
//{
//}
////
//// Summary:
//// Copies the System.Collections.Generic.Queue`1 elements to a new array.
////
//// Returns:
//// A new array containing elements copied from the System.Collections.Generic.Queue`1.
//public T[] ToArray()
//{
//}
////
//// Summary:
//// Sets the capacity to the actual number of elements in the System.Collections.Generic.Queue`1,
//// if that number is less than 90 percent of current capacity.
//public void TrimExcess()
//{
//}
////
//// Parameters:
//// result:
//public bool TryDequeue(out T result)
//{
//}
////
//// Parameters:
//// result:
//public bool TryPeek(out T result)
//{
//}
////
//// Summary:
//// Enumerates the elements of a System.Collections.Generic.Queue`1.
////
//// Type parameters:
//// T:
//public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
//{
// //
// // Summary:
// // Gets the element at the current position of the enumerator.
// //
// // Returns:
// // The element in the System.Collections.Generic.Queue`1 at the current position
// // of the enumerator.
// //
// // Exceptions:
// // T:System.InvalidOperationException:
// // The enumerator is positioned before the first element of the collection or after
// // the last element.
// public T Current { get; }
// object IEnumerator.Current => throw new NotImplementedException();
// //
// // Summary:
// // Releases all resources used by the System.Collections.Generic.Queue`1.Enumerator.
// public void Dispose()
// {
// }
// //
// // Summary:
// // Advances the enumerator to the next element of the System.Collections.Generic.Queue`1.
// //
// // Returns:
// // true if the enumerator was successfully advanced to the next element; false if
// // the enumerator has passed the end of the collection.
// //
// // Exceptions:
// // T:System.InvalidOperationException:
// // The collection was modified after the enumerator was created.
// public bool MoveNext()
// {
// return false;
// }
// public void Reset()
// {
// throw new NotImplementedException();
// }
//}
}
}