ContentAccess::RStreamablePtrArray Class Reference
class ContentAccess::RStreamablePtrArray
|
Template class used to store an array of pointers that can also write itself to a stream
The
RStreamablePtrArray
owns all the elements contained within it. The close function must be called before the
RStreamablePtrArray
goes out of scope.
The close function frees all resources and deletes all array elements
The array can be streamed using the
InternalizeL()
and
ExternalizeL()
functions
Constructor & Destructor Documentation
RStreamablePtrArray()
RStreamablePtrArray
|
(
|
)
|
[inline]
|
Member Functions Documentation
AppendL(T *)
void
|
AppendL
|
(
|
T *
|
aElement
|
)
|
[inline]
|
Append an element to the array
Ownership of the pointer is transferred to the array
Parameters
T * aElement
|
The item to add to the array
|
Count()
TInt
|
Count
|
(
|
)
|
const [inline]
|
Count the number of objects in the array
ExternalizeL(RWriteStream &)
Write the entire array to a stream
InternalizeL(RReadStream &)
Add array elements from a stream
RemoveL(TInt)
void
|
RemoveL
|
(
|
TInt
|
aIndex
|
)
|
[inline]
|
Remove an element from the array. Note that the function does not delete the pointer.
ResetAndDestroy()
void
|
ResetAndDestroy
|
(
|
)
|
[inline]
|
Delete all elements in the array
operator[](TInt)
T *
|
operator[]
|
(
|
TInt
|
aIndex
|
)
|
const [inline]
|
Return a pointer to an element at a given index in the array
Parameters
TInt
aIndex
|
The zero based index in the array, must be less than Count()
|
Member Data Documentation
RPointerArray< T > iArray
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.