- Timestamp:
- Sep 22, 2008, 5:31:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Queue.ab
r607 r631 15 15 End Sub 16 16 17 Sub initialize() 18 This.items = GC_malloc(1) 19 End Sub 20 17 21 Public 18 22 Sub Queue () 19 This.i tems = GC_malloc( 1)23 This.initialize() 20 24 End Sub 21 25 22 26 Sub Queue ( capacity As Long ) 23 This.i tems = GC_malloc( 1)27 This.initialize() 24 28 If capacity > 0 Then 25 29 This.size = capacity 26 30 Realloc(capacity) 27 31 End If 32 End Sub 33 34 Sub Queue ( enumerator As IEnumerator<T> ) 35 This.initialize() 36 While enumerator.MoveNext() 37 This.Enqueue(enumerator.Current()) 38 Wend 28 39 End Sub 29 40
Note:
See TracChangeset
for help on using the changeset viewer.