Week 12 contribution of PDK documentation_content. See release notes for details. Fixes Bug 2054, Bug 1583, Bug 381, Bug 390, Bug 463, Bug 1897, Bug 344, Bug 1319, Bug 394, Bug 1520, Bug 1522, Bug 1892"
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-1A94AA49-3954-581B-92EE-C9BDA253508F" xml:lang="en"><title>How
to create a generic array</title><shortdesc>Arrays can be created using a templated class. This allows a degree
of polymorphism to be used without needing to know the data type in the array.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>Arrays can be accessed in a limited way using a <codeph>TArray<class T></codeph> object.
This is a templated class which can be constructed by any of the templated
array classes: <codeph>CArrayFixFlat<class T></codeph>, <codeph>CArrayFixSeg<class T></codeph>, <codeph>CArrayVarFlat<class T></codeph>, <codeph>CArrayVarSeg<class T></codeph> and <codeph>CArrayPakFlat<class T></codeph>.</p>
<p>It allows a degree of polymorphism amongst the array classes. It permits
the <codeph>operator[]</codeph> and the <codeph>Count()</codeph> member functions
of an array to be invoked without knowing the type of that array.</p>
</conbody></concept>