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
|
<unit name="ok_generic.pas">
<description><detailed>Tests of generics, both FPC and Delphi style.</detailed></description>
<type name="TGeometryAttribsList2 = specialize TMyList<TALBuffersCache>;">
</type>
<structure name="TMyList" name_with_generic="generic TMyList<T>" type="class">
<description><detailed>FPC generics tests -------------------------------------------------------</detailed></description>
<ancestor name="TFPSList" declaration="TFPSList" />
<function name="Blah" type="function" declaration="function Blah: PT;">
</function>
</structure>
<structure name="TGeometryAttrib" name_with_generic="TGeometryAttrib" type="class">
<ancestor name="TObject" declaration="TObject" />
<variable name="Name: string;">
</variable>
<variable name="AType: TGeometryAttribType;">
</variable>
<variable name="Offset: Integer;">
</variable>
</structure>
<structure name="TGeometryAttribsList" name_with_generic="TGeometryAttribsList" type="class">
<description><detailed>You can also specialize and make a descendant at the same time.</detailed></description>
<ancestor name="TMyList" declaration="specialize TMyList<TGeometryAttrib>" />
<function name="Find" type="function" declaration="function Find(const Name: string): TGeometryAttrib;">
</function>
</structure>
<structure name="TMyObject" name_with_generic="TMyObject" type="class">
<description><detailed>A simple Test-Object</detailed></description>
<ancestor name="TObject" declaration="TObject" />
</structure>
<structure name="TMyGenericList" name_with_generic="TMyGenericList" type="class">
<ancestor name="TObjectList" declaration="TObjectList<TMyObject>" />
</structure>
<structure name="TMyNewGeneric" name_with_generic="TMyNewGeneric<T1,T2>" type="class">
<ancestor name="TObject" declaration="TObject" />
<function name="Blah" type="function" declaration="function Blah: PT;">
</function>
</structure>
<structure name="TAnotherGenericType" name_with_generic="TAnotherGenericType" type="class">
<description><detailed>Sample for a generic with more than one type. TPair is a Key-Value-Relation</detailed></description>
<ancestor name="TDictionary" declaration="TDictionary<TObject,TObject>" />
</structure>
<structure name="TArray" name_with_generic="TArray" type="class">
<description><detailed>All standard Generics:</detailed></description>
<ancestor name="TObject" declaration="TObject" />
</structure>
<structure name="TEnumerator" name_with_generic="TEnumerator<T>" type="class">
<ancestor name="TObject" declaration="TObject" />
</structure>
<structure name="TEnumerable" name_with_generic="TEnumerable<T>" type="class">
<ancestor name="TObject" declaration="TObject" />
</structure>
<structure name="TList" name_with_generic="TList<T>" type="class">
<ancestor name="TEnumerable" declaration="TEnumerable<T>" />
</structure>
<structure name="TQueue" name_with_generic="TQueue<T>" type="class">
<ancestor name="TEnumerable" declaration="TEnumerable<T>" />
</structure>
<structure name="TStack" name_with_generic="TStack<T>" type="class">
<ancestor name="TEnumerable" declaration="TEnumerable<T>" />
</structure>
<structure name="TPair" name_with_generic="TPair<TKey,TValue>" type="record">
</structure>
<structure name="TDictionary" name_with_generic="TDictionary<TKey,TValue>" type="class">
<ancestor name="TEnumerable" declaration="TEnumerable<TPair<TKey,TValue>>" />
</structure>
<structure name="TObjectList" name_with_generic="TObjectList<T:class>" type="class">
<ancestor name="TList" declaration="TList<T>" />
</structure>
<structure name="TObjectQueue" name_with_generic="TObjectQueue<T:class>" type="class">
<ancestor name="TQueue" declaration="TQueue<T>" />
</structure>
<structure name="TObjectStack" name_with_generic="TObjectStack<T:class>" type="class">
<ancestor name="TStack" declaration="TStack<T>" />
</structure>
<structure name="TObjectDictionary" name_with_generic="TObjectDictionary<TKey,TValue>" type="class">
<ancestor name="TDictionary" declaration="TDictionary<TKey,TValue>" />
</structure>
</unit>
|