2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #ifndef __RCPOINTERARRAY_H
27 #define __RCPOINTERARRAY_H
31 * An array of pointers to objects, that adds close type behaviour.
33 * For use with C class pointers that are owned by the array.
37 template<class T> class RCPointerArray : public RPointerArray<T>
41 inline RCPointerArray();
42 /** Closes the array and frees all resources (including deleting objects in the array). */
46 /** Default constructor. */
48 inline RCPointerArray<T>::RCPointerArray()
53 * Closes the array and frees all resources; this includes deleting the objects
54 * whose pointers are held by the array (i.e. it's the same as ResetAndDestroy()).
57 inline void RCPointerArray<T>::Close()
59 this->ResetAndDestroy();