Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Identifying elements

Elements within arrays are identified by their logical position within the array.

Elements can also be accessed by key.

For all of the arrays except: RArray<class T>, RPointerArray<class T> and any of their specialisations, the key structure is defined independently of the array itself, using:

Accessing an element by key requires the appropriate TKeyArrayFix, TKeyArrayVar or TKeyArrayPak object to be constructed and passed to the appropriate array class member function.

For the: RArray<class T>, RPointerArray<class T> arrays, keys are part of the array itself. These arrays also use the classes: