Symbian3/SDK/Source/GUID-1A94AA49-3954-581B-92EE-C9BDA253508F.dita
changeset 0 89d6a7a84779
equal deleted inserted replaced
-1:000000000000 0:89d6a7a84779
       
     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-1A94AA49-3954-581B-92EE-C9BDA253508F" xml:lang="en"><title>How
       
    13 to create a generic array</title><shortdesc>Arrays can be created using a templated class. This allows a degree
       
    14 of polymorphism to be used without needing to know the data type in the array.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    15 <p>Arrays can be accessed in a limited way using a <codeph>TArray&lt;class T&gt;</codeph> object.
       
    16 This is a templated class which can be constructed by any of the templated
       
    17 array classes: <codeph>CArrayFixFlat&lt;class T&gt;</codeph>, <codeph>CArrayFixSeg&lt;class T&gt;</codeph>, <codeph>CArrayVarFlat&lt;class T&gt;</codeph>, <codeph>CArrayVarSeg&lt;class T&gt;</codeph> and <codeph>CArrayPakFlat&lt;class T&gt;</codeph>.</p>
       
    18 <p>It allows a degree of polymorphism amongst the array classes. It permits
       
    19 the <codeph>operator[]</codeph> and the <codeph>Count()</codeph> member functions
       
    20 of an array to be invoked without knowing the type of that array.</p>
       
    21 </conbody></concept>