|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-6180B291-1862-5F1F-AF05-85E42B37B172" xml:lang="en"><title>Introduction |
|
13 to dynamic arrays</title><shortdesc>Describes dynamic arrays.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>A number of classes are provided for constructing dynamically expandable |
|
15 arrays in which the memory for the array elements is allocated from the heap.</p> |
|
16 <p>The elements of an array can consist of any object, but in practice the |
|
17 most common types are:</p> |
|
18 <ul> |
|
19 <li id="GUID-9D76EEA1-F186-56C8-89C1-87C53BA610F3"><p>pointers to <codeph>CBase</codeph> - |
|
20 derived objects.</p> </li> |
|
21 <li id="GUID-103A9CCE-B108-51B9-BD9E-BD6C389E5DF7"><p><codeph>T</codeph> type |
|
22 and <codeph>R</codeph> type objects.</p> </li> |
|
23 </ul> |
|
24 <p>The array classes are all templated; the template parameter defines the |
|
25 type of object which is to form an array element.</p> |
|
26 <p>An array can consist of elements which have variable lengths or elements |
|
27 which all have the same length, depending on the specific class used.</p> |
|
28 <p>Logically, each element of an array has a definite position within that |
|
29 array but the physical organisation of the elements depends on the specific |
|
30 array class.</p> |
|
31 </conbody></concept> |