Changeset 582 for trunk/ab5.0/ablib/src/Classes/System/Collections/Generic
- Timestamp:
- Aug 9, 2008, 1:44:45 PM (16 years ago)
- Location:
- trunk/ab5.0/ablib/src/Classes/System/Collections/Generic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Dictionary.ab
r542 r582 1 1 'Classes/System/Collections/Generic/Dictionary.ab 2 3 '#require <Classes/System/Collections/Generic/EqualityComparer.ab>4 2 5 3 Namespace System -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/List.ab
r579 r582 96 96 */ 97 97 Override Sub Operator[] ( index As Long, item As T ) 98 Item[index] = item 99 End Sub 100 Override Function Operator[] ( index As Long ) As T 101 Return Item[index] 102 End Function 103 104 /*! 105 @brief インデクサ 106 @author Egtra 107 @date 2008/08/04 108 @param インデックス 109 */ 110 Override Sub Item( index As Long, item As T ) 98 111 If 0 <= index And index < capacity Then 99 112 items[index]=item … … 102 115 End If 103 116 End Sub 104 Override Function Operator[]( index As Long ) As T117 Override Function Item( index As Long ) As T 105 118 If 0 <= index And index < capacity Then 106 119 Return items[index] … … 109 122 End If 110 123 End Function 111 112 124 /*! 113 125 @brief ポインタ型へのキャスト -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Queue.ab
r579 r582 5 5 6 6 Class Queue<T> 7 Implements IEnumerable<T> , IEnumerator<T>, System.Collections.ICollection7 Implements IEnumerable<T> 8 8 9 9 items As *T … … 28 28 End Sub 29 29 30 /*!31 @brief Queueに格納されている要素の数を取得32 @author NoWest33 @date 2008/07/2034 */35 Override Function Count () As Long36 Return This.count37 End Function38 39 30 Public 40 /*!41 @brief Queueからすべての要素を削除する42 @author NoWest43 @date 2008/07/2044 */45 Sub Clear ()46 This.count = 047 End Sub48 49 31 'ある要素が Queue内に存在するかどうかを判断 50 32 /* Override Function Contains ( item As T ) As Boolean -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Stack.ab
r579 r582 5 5 6 6 Class Stack<T> 7 Implements IEnumerable<T> , IEnumerator<T>, System.Collections.ICollection7 Implements IEnumerable<T> 8 8 9 9 items As *T … … 27 27 End If 28 28 End Sub 29 30 /*!31 @brief Stackに格納されている要素の数を取得32 @author NoWest33 @date 2008/07/2034 */35 Override Function Count () As Long36 Return This.count37 End Function38 29 39 30 Public -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/misc.ab
r579 r582 42 42 Abstract Function Operator[] ( index As Long ) As T 43 43 44 ' Methods 44 Abstract Sub Item ( index As Long, item As T ) 45 Abstract Function Item ( index As Long ) As T 46 45 47 Abstract Function IndexOf ( item As T ) As Long 46 48 Abstract Sub Insert ( index As Long, item As T )
Note:
See TracChangeset
for help on using the changeset viewer.