Changeset 196
- Timestamp:
- Mar 30, 2007, 5:13:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/TypeInfo.ab
r195 r196 194 194 End Sub 195 195 196 Sub _add( typeInfo As TypeInfo )196 Sub Add( typeInfo As TypeInfo ) 197 197 pTypes = realloc( pTypes, ( count + 1 ) * SizeOf(*TypeInfo) ) 198 198 pTypes[count] = typeInfo … … 200 200 End Sub 201 201 202 Function Search( strNamespace As String, typeName As String ) As TypeInfo 203 ' TODO: 名前空間に対応する 204 Dim i As Long 205 For i = 0 To ELM( count ) 206 If pTypes[i].Name = typeName Then 207 Return pTypes[i] 208 End If 209 Next 210 Return Nothing 211 End Function 212 202 213 ' シングルトン オブジェクト 203 214 Static obj As _System_TypeBase 204 205 Public206 207 Static Sub Add( typeInfo As TypeInfo )208 obj._add( typeInfo )209 End Sub210 211 Static Sub _NextPointerForGC()212 ' TODO: 実装213 End Sub214 215 215 216 Static Sub InitializeValueType() … … 230 231 Static Sub InitializeUserTypes() 231 232 ' このメソッドの実装はコンパイラが自動生成する 233 234 '例: 235 'obj.Add( New _System_TypeForClass( "String", "", obj.Search( "Object" ) ) ) 236 End Sub 237 238 Public 239 240 Static Sub _NextPointerForGC() 241 ' TODO: 実装 232 242 End Sub 233 243
Note:
See TracChangeset
for help on using the changeset viewer.