osncore::AlfPtrVectorImpl Class Reference

class osncore::AlfPtrVectorImpl

Use STL vectorImplementation class for AlfPtrVector

osncore.lib
Since
S60 5.0 Draft
Public Member Functions
AlfPtrVectorImpl ( IDeleter &)
AlfPtrVectorImpl ( uint , IDeleter &)
~AlfPtrVectorImpl ()
void * at ( uint )
OSN_IMPORT void clear (bool)
uint count ()
void ** data ()
OSN_IMPORT int findRef (void *)
OSN_IMPORT bool insert ( uint , void *, bool)
bool isEmpty ()
OSN_IMPORT bool remove ( uint , bool)
OSN_IMPORT bool resize ( uint , bool)
uint size ()
Private Member Functions
AlfPtrVectorImpl & operator= (const AlfPtrVectorImpl &)
Private Attributes
IDeleter & mDeleter
uint mcount
void ** mdata
uint msize

Constructor & Destructor Documentation

AlfPtrVectorImpl(IDeleter &)

OSN_IMPORT AlfPtrVectorImpl ( IDeleter & aDeleter )

Use STL vector Constructor

Since
S60 5.0

Parameters

IDeleter & aDeleter

AlfPtrVectorImpl(uint, IDeleter &)

OSN_IMPORT AlfPtrVectorImpl ( uint aSize,
IDeleter & aDeleter
)

Use STL vector Constructor

Since
S60 5.0

Parameters

uint aSize
IDeleter & aDeleter

~AlfPtrVectorImpl()

OSN_IMPORT ~AlfPtrVectorImpl ( )

Use STL vector Destructor

Member Functions Documentation

at(uint)

void * at ( uint aCount ) const [inline]

Parameters

uint aCount

clear(bool)

OSN_IMPORT void clear ( bool aDelItems )

Use STL vector Clears the vector

Since
S60 5.0

Parameters

bool aDelItems determines whether the items are deleted

count()

uint count ( ) const [inline]

data()

void ** data ( ) [inline]

findRef(void *)

OSN_IMPORT int findRef ( void * aItem )

Use STL vector Returns the position of the item in the vector.

Since
S60 5.0

Parameters

void * aItem Pointer to the item being searched in the vector.

insert(uint, void *, bool)

OSN_IMPORT bool insert ( uint aCount,
void * aItem,
bool aDelItems
)

Use STL vector Inserts a new item at given position in the vector.

Since
S60 5.0

Parameters

uint aCount Position at which item has to be inserted.
void * aItem Pointer to the item to be inserted.
bool aDelItems determines whether the item is deleted, not used!

isEmpty()

bool isEmpty ( ) const [inline]

operator=(const AlfPtrVectorImpl &)

AlfPtrVectorImpl & operator= ( const AlfPtrVectorImpl & ) [private]

Parameters

const AlfPtrVectorImpl &

remove(uint, bool)

OSN_IMPORT bool remove ( uint aCount,
bool aDelItems
)

Use STL vector Removes an item from the vector

Since
S60 5.0

Parameters

uint aCount the item to be deleted
bool aDelItems determines whether the item is deleted

resize(uint, bool)

OSN_IMPORT bool resize ( uint aSize,
bool aDelItems
)

Use STL vector Resizes the vector to new size. Existing items in the vector will be restored if auto delete property is false.

Since
S60 5.0

Parameters

uint aSize New size in bytes.
bool aDelItems determines whether the items are deleted

size()

uint size ( ) const [inline]

Member Data Documentation

IDeleter & mDeleter

IDeleter & mDeleter [private]

uint mcount

uint mcount [private]

void ** mdata

void ** mdata [private]

uint msize

uint msize [private]