|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 All rights reserved. |
|
5 --> |
|
6 <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
7 <reference xml:lang="en-us" outputclass="element" id="cxxClass"> |
|
8 <title>cxxClass</title> |
|
9 <shortdesc>The <cxxClass> element provides the name of the C++ API |
|
10 class, all the elements necessary to describe the members that are introduced |
|
11 by the class declaration, and the members inherited from the direct base class.</shortdesc> |
|
12 <refbody> |
|
13 <section> |
|
14 <title>Description</title> |
|
15 <p>The <cxxClass> element requires |
|
16 an ID attribute as an anchor point; this ID must always be specified. The |
|
17 ID attribute is referenced by the <i>conref</i> attribute and internal applications |
|
18 that refer to the <cxxClass> element content. The elements <apiName> |
|
19 and <cxxClassDetail> are required for this top-level container. </p> |
|
20 </section> |
|
21 <example><title>Example</title> |
|
22 <codeblock><cxxClass id="class_c_array_fix_flat_3_01_t_uid_01_4"> |
|
23 <apiName>CArrayFixFlat&lt; TUid &gt;</apiName> |
|
24 <cxxClassDetail> |
|
25 <cxxClassDefinition> |
|
26 <cxxClassAccessSpecifier value="public"/> |
|
27 <cxxClassDerivations> |
|
28 <cxxClassDerivation> |
|
29 <cxxClassDerivationAccessSpecifier value="public"/> |
|
30 <cxxClassBaseClass href="class_c_array_fix.xml#class_c_array_fix">CArrayFix&lt; TUid &gt;</cxxClassBaseClass> |
|
31 </cxxClassDerivation> |
|
32 </cxxClassDerivations> |
|
33 <cxxClassAPIItemLocation> |
|
34 <cxxClassDeclarationFile name="filePath" value="C:/src/include/e32base.h"/> |
|
35 <cxxClassDeclarationFileLine name="lineNumber" value="531"/> |
|
36 <cxxClassDefinitionFile name="filePath" value="C:/src/include/e32base.h"/> |
|
37 <cxxClassDefinitionFileLineStart name="lineNumber" value="521"/> |
|
38 <cxxClassDefinitionFileLineEnd name="lineNumber" value="536"/> |
|
39 </cxxClassAPIItemLocation> |
|
40 </cxxClassDefinition> |
|
41 <apiDesc> |
|
42 <p>Template specialisation base class for arrays of <xref href="class_t_uid.xml#class_t_uid">TUid</xref> types implemented in a flat dynamic buffer.</p> |
|
43 <p> |
|
44 <xref href="class_t_uid.xml#class_t_uid">TUid</xref> </p> |
|
45 </apiDesc> |
|
46 </cxxClassDetail> |
|
47 <cxxFunction id="class_c_array_fix_flat_3_01_t_uid_01_4_1afd277b81e961b25f35b92dbc90f8d97c"> |
|
48 <apiName>SetReserveL</apiName> |
|
49 <cxxFunctionDetail> |
|
50 <cxxFunctionDefinition> |
|
51 <cxxFunctionAccessSpecifier value="public"/> |
|
52 <cxxFunctionInline/> |
|
53 <cxxFunctionDeclaredType>void</cxxFunctionDeclaredType> |
|
54 <cxxFunctionScopedName>CArrayFixFlat&lt; TUid &gt;</cxxFunctionScopedName> |
|
55 <cxxFunctionPrototype>inline void SetReserveL(TInt aCount)</cxxFunctionPrototype> |
|
56 <cxxFunctionNameLookup>CArrayFixFlat&lt; TUid &gt;::SetReserveL(TInt)</cxxFunctionNameLookup> |
|
57 <cxxFunctionParameters> |
|
58 <cxxFunctionParameter> |
|
59 <cxxFunctionParameterDeclaredType> |
|
60 <apiRelation href="e32def_8h.xml#e32def_8h_1abb88f5378e8305d934297176fe5fa298">TInt</apiRelation> |
|
61 </cxxFunctionParameterDeclaredType> |
|
62 <cxxFunctionParameterDeclarationName>aCount</cxxFunctionParameterDeclarationName> |
|
63 <apiDefNote>The total number of elements for which space is to be reserved.</apiDefNote> |
|
64 </cxxFunctionParameter> |
|
65 </cxxFunctionParameters> |
|
66 <cxxFunctionAPIItemLocation> |
|
67 <cxxFunctionDeclarationFile name="filePath" value="C:/src/include/e32base.h"/> |
|
68 <cxxFunctionDeclarationFileLine name="lineNumber" value="535"/> |
|
69 <cxxFunctionDefinitionFile name="filePath" value="C:/src/master/sf/mw/classicui/animation/src/SpriteAnimationServer.cpp"/> |
|
70 <cxxFunctionDefinitionFileLineStart name="lineNumber" value="1137"/> |
|
71 <cxxFunctionDefinitionFileLineEnd name="lineNumber" value="1157"/> |
|
72 </cxxFunctionAPIItemLocation> |
|
73 </cxxFunctionDefinition> |
|
74 <apiDesc> |
|
75 <p>Reserves space in the array buffer.</p> |
|
76 <p>If necessary, the array buffer is allocated or re-allocated so that it can accommodate the specified number of <xref href="class_t_uid.xml#class_t_uid">TUid</xref> elements.</p> |
|
77 <p>After a successful call to this function, elements can be added to the array and the process is guaranteed not to fail for lack of memory - provided the total number of elements does not exceed the specified number.</p> |
|
78 <p>This function does not increase the number of elements in the array; i.e. the member function <xref href="class_c_array_fix_base.xml#class_c_array_fix_base_1ad5bc874aceea074862134dc8e4937faa">CArrayFixBase::Count()</xref> returns the same value both before and after a call to this function.</p> |
|
79 <p> |
|
80 <b>panic</b> |
|
81 </p> |
|
82 <p>E32USER-CBase 27, if aCount is less than the current number of elements in the array. </p> |
|
83 </apiDesc> |
|
84 </cxxFunctionDetail> |
|
85 </cxxFunction> |
|
86 <cxxFunction id="class_c_array_fix_flat_3_01_t_uid_01_4_1a78b3dd428f88a9f9f693911129e9eb51"> |
|
87 ... |
|
88 </cxxFunction> |
|
89 <cxxFunction id="class_c_array_fix_flat_3_01_t_uid_01_4_1a3b0a085b65c307ad4937a6c7c4bb767a"> |
|
90 ... |
|
91 </cxxFunction> |
|
92 <cxxClassInherits> |
|
93 <cxxClassInheritsDetail> |
|
94 <cxxClassFunctionInherited href="class_c_array_fix.xml#class_c_array_fix_1ab18347f8849b6dfe174c57bbdccdc3a6">CArrayFix&lt; TUid &gt;::AppendL(const TUid &amp;)</cxxClassFunctionInherited> |
|
95 <cxxClassFunctionInherited href="class_c_array_fix.xml#class_c_array_fix_1a98b10e4a4f97fd76a722e33afd3b8ee3">CArrayFix&lt; TUid &gt;::AppendL(const TUid &amp;,TInt)</cxxClassFunctionInherited> |
|
96 ... |
|
97 </cxxClassInheritsDetail> |
|
98 </cxxClassInherits> |
|
99 </cxxClass></codeblock> |
|
100 </example> |
|
101 <section conref="../packagedef.dita#cxxClass-reference/cxxClass-containedBy-section"/> |
|
102 <section conref="../packagedef.dita#cxxClass-reference/cxxClass-contains-section"/> |
|
103 <section conref="../packagedef.dita#cxxClass-reference/cxxClass-contentModel-section"/> |
|
104 <section conref="../packagedef.dita#cxxClass-reference/cxxClass-attList-section"/> |
|
105 <section conref="../packagedef.dita#cxxClass-reference/cxxClass-classValue-section"/> |
|
106 </refbody> |
|
107 </reference> |