equal
deleted
inserted
replaced
27 public: |
27 public: |
28 inline explicit RDRMPointerArray( TInt aGranularity ); |
28 inline explicit RDRMPointerArray( TInt aGranularity ); |
29 inline RDRMPointerArray( TInt aMinGrowBy, TInt aFactor ); |
29 inline RDRMPointerArray( TInt aMinGrowBy, TInt aFactor ); |
30 inline RDRMPointerArray(); |
30 inline RDRMPointerArray(); |
31 virtual ~RDRMPointerArray(); |
31 virtual ~RDRMPointerArray(); |
32 |
32 |
33 // If set to ETrue, RPointerArray::ResetAndDestroy() is called |
33 // If set to ETrue, RPointerArray::ResetAndDestroy() is called |
34 // automatically in destructor. Otherwise only RPointerArrary::Close() |
34 // automatically in destructor. Otherwise only RPointerArrary::Close() |
35 // is called. |
35 // is called. |
36 inline void SetAutoCleanup( const TBool aCleanup ); |
36 inline void SetAutoCleanup( const TBool aCleanup ); |
37 |
37 |
38 protected: |
38 protected: |
39 TBool iDoResetAndDestroy; |
39 TBool iDoResetAndDestroy; |
40 }; |
40 }; |
41 |
41 |
42 template < class T > NONSHARABLE_CLASS( CDRMPointerArray ) : public CBase, public RDRMPointerArray< class T > |
42 template < class T > NONSHARABLE_CLASS( CDRMPointerArray ) : public CBase, public RDRMPointerArray< class T > |
46 static CDRMPointerArray* NewL( TInt aGranularity ); |
46 static CDRMPointerArray* NewL( TInt aGranularity ); |
47 static CDRMPointerArray* NewLC( TInt aMinGrowBy, TInt aFactor ); |
47 static CDRMPointerArray* NewLC( TInt aMinGrowBy, TInt aFactor ); |
48 static CDRMPointerArray* NewL( TInt aMinGrowBy, TInt aFactor ); |
48 static CDRMPointerArray* NewL( TInt aMinGrowBy, TInt aFactor ); |
49 static CDRMPointerArray* NewLC(); |
49 static CDRMPointerArray* NewLC(); |
50 static CDRMPointerArray* NewL(); |
50 static CDRMPointerArray* NewL(); |
51 |
51 |
52 // Note: Does not do ResetAndDestroy() by default. |
52 // Note: Does not do ResetAndDestroy() by default. |
53 // Use SetAutoCleanup to do reallyclean. |
53 // Use SetAutoCleanup to do reallyclean. |
54 ~CDRMPointerArray(); |
54 ~CDRMPointerArray(); |
55 |
55 |
56 |
56 |
57 protected: |
57 protected: |
58 explicit CDRMPointerArray( TInt aGranularity ); |
58 explicit CDRMPointerArray( TInt aGranularity ); |
59 CDRMPointerArray( TInt aMinGrowBy, TInt aFactor ); |
59 CDRMPointerArray( TInt aMinGrowBy, TInt aFactor ); |
60 CDRMPointerArray(); |
60 CDRMPointerArray(); |
61 |
61 |
62 private: |
62 private: |
63 }; |
63 }; |
64 |
64 |
65 |
65 |
66 #include "drmpointerarray.inl" |
66 #include "DRMPointerArray.inl" |
67 |
67 |
68 #endif // DRMPOINTERARRAY_H |
68 #endif // DRMPOINTERARRAY_H |