- Timestamp:
- Jul 21, 2008, 2:34:12 PM (16 years ago)
- Location:
- trunk/ab5.0
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/List.ab
r558 r560 17 17 End Sub 18 18 19 Public 20 Sub List() 19 Sub _Initialize( capacity = 0 As Long ) 21 20 items = GC_malloc( 1 ) 22 21 23 22 ' 列挙子の位置を初期化 24 23 Reset() 25 End Sub 26 27 /*! 28 @brief 予め要素数を指定してList<T>を初期化 29 @author NoWest 30 @date 2008/07/13 31 @param リストの要素数 32 */ 33 Sub List( capacity As Long ) 34 This.List() 24 35 25 If capacity > 0 Then 36 26 This.size = capacity … … 39 29 End Sub 40 30 31 Public 32 Sub List() 33 _Initialize() 34 End Sub 35 36 /*! 37 @brief 予め要素数を指定してList<T>を初期化 38 @author NoWest 39 @date 2008/07/13 40 @param リストの要素数 41 */ 42 Sub List( capacity As Long ) 43 _Initialize( capacity ) 44 End Sub 45 41 46 /*! 42 47 @brief 既存の配列List<T>を初期化 … … 46 51 */ 47 52 Sub List( array As *T, length As Long ) 48 This.List( length ) 53 _Initialize( length ) 54 49 55 memmove( This.items, array, length * SizeOf(T) ) 50 56 This.count = length -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Queue.ab
r558 r560 22 22 23 23 Sub Queue ( capacity As Long ) 24 This.Queue() 24 This.items = GC_malloc( 1 ) 25 Reset() 25 26 If capacity > 0 Then 26 27 This.size = capacity -
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Stack.ab
r558 r560 22 22 23 23 Sub Stack ( capacity As Long ) 24 Stack() 24 This.items = GC_malloc( 1 ) 25 Reset() 25 26 If capacity > 0 Then 26 27 This.size = capacity -
trunk/ab5.0/ablib/src/Classes/System/IO/Exception.ab
r435 r560 25 25 */ 26 26 Sub IOException() 27 Exception(GetType().FullName, Nothing)27 SystemException(GetType().FullName) 28 28 HResult = ActiveBasic.AB_E_IO 29 29 End Sub … … 33 33 */ 34 34 Sub IOException(message As String) 35 Exception(message, Nothing)35 SystemException(message) 36 36 HResult = ActiveBasic.AB_E_IO 37 37 End Sub … … 42 42 */ 43 43 Sub IOException(message As String, innerException As Exception) 44 Exception(message, innerException)44 SystemException(message, innerException) 45 45 HResult = ActiveBasic.AB_E_IO 46 46 End Sub … … 51 51 */ 52 52 Sub IOException(message As String, hr As HRESULT) 53 Exception(message, Nothing)53 SystemException(message) 54 54 HResult = hr 55 55 End Sub -
trunk/ab5.0/ablib/src/Classes/System/IO/FileStream.ab
r552 r560 31 31 offset As QWord 'オーバーラップドIO用 32 32 33 Public 34 /* コンストラクタ.NETと同じように実装は難しい、一先ず動くものを実装したが変更が必要だと思う */ 35 Sub FileStream(path As String, mode As FileMode, access As FileAccess, share As FileShare, options As FileOptions) 33 Sub _Initialize(path As String, mode As FileMode, access As FileAccess, share As FileShare, options As FileOptions) 36 34 If ActiveBasic.IsNothing(path) Then 37 35 Throw New ArgumentNullException("path") … … 72 70 End If 73 71 End Sub 72 73 Public 74 /* コンストラクタ.NETと同じように実装は難しい、一先ず動くものを実装したが変更が必要だと思う */ 75 Sub FileStream(path As String, mode As FileMode, access As FileAccess, share As FileShare, options As FileOptions) 76 _Initialize( path, mode, access, share, options ) 77 End Sub 74 78 Sub FileStream(path As String, mode As FileMode, access As FileAccess, share As FileShare) 75 This.FileStream(path,mode,access,share,FileOptions.None)79 _Initialize(path,mode,access,share,FileOptions.None) 76 80 End Sub 77 81 Sub FileStream(path As String, mode As FileMode, access As FileAccess) 78 This.FileStream(path,mode,access,FileShare.None,FileOptions.None)82 _Initialize(path,mode,access,FileShare.None,FileOptions.None) 79 83 End Sub 80 84 Sub FileStream(path As String, mode As FileMode) … … 94 98 access=FileAccess.Write 95 99 End Select 96 This.FileStream(path,mode,access,FileShare.None,FileOptions.None)100 _Initialize(path,mode,access,FileShare.None,FileOptions.None) 97 101 End Sub 98 102 /* -
trunk/ab5.0/ablib/src/Classes/System/Threading/AutoResetEvent.ab
r494 r560 9 9 Public 10 10 Sub AutoResetEvent(initialState As Boolean) 11 This.EventWaitHandle(initialState,EventResetMode.AutoReset)11 EventWaitHandle(initialState,EventResetMode.AutoReset) 12 12 End Sub 13 13 -
trunk/ab5.0/ablib/src/Classes/System/Threading/ManualResetEvent.ab
r494 r560 9 9 Public 10 10 Sub ManualResetEvent(initialState As Boolean) 11 This.EventWaitHandle(initialState,EventResetMode.ManualReset)11 EventWaitHandle(initialState,EventResetMode.ManualReset) 12 12 End Sub 13 13
Note:
See TracChangeset
for help on using the changeset viewer.