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 voidclear(bool)
uint count()
void **data()
OSN_IMPORT intfindRef(void *)
OSN_IMPORT boolinsert(uint, void *, bool)
boolisEmpty()
OSN_IMPORT boolremove(uint, bool)
OSN_IMPORT boolresize(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_IMPORTAlfPtrVectorImpl(IDeleter &aDeleter)

Use STL vector Constructor

Since
S60 5.0

Parameters

IDeleter & aDeleter

AlfPtrVectorImpl(uint, IDeleter &)

OSN_IMPORTAlfPtrVectorImpl(uintaSize,
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(uintaCount)const [inline]

Parameters

uint aCount

clear(bool)

OSN_IMPORT voidclear(boolaDelItems)

Use STL vector Clears the vector

Since
S60 5.0

Parameters

bool aDelItemsdetermines whether the items are deleted

count()

uint count()const [inline]

data()

void **data()[inline]

findRef(void *)

OSN_IMPORT intfindRef(void *aItem)

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

Since
S60 5.0

Parameters

void * aItemPointer to the item being searched in the vector.

insert(uint, void *, bool)

OSN_IMPORT boolinsert(uintaCount,
void *aItem,
boolaDelItems
)

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

Since
S60 5.0

Parameters

uint aCountPosition at which item has to be inserted.
void * aItemPointer to the item to be inserted.
bool aDelItemsdetermines whether the item is deleted, not used!

isEmpty()

boolisEmpty()const [inline]

operator=(const AlfPtrVectorImpl &)

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

Parameters

const AlfPtrVectorImpl &

remove(uint, bool)

OSN_IMPORT boolremove(uintaCount,
boolaDelItems
)

Use STL vector Removes an item from the vector

Since
S60 5.0

Parameters

uint aCountthe item to be deleted
bool aDelItemsdetermines whether the item is deleted

resize(uint, bool)

OSN_IMPORT boolresize(uintaSize,
boolaDelItems
)

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 aSizeNew size in bytes.
bool aDelItemsdetermines 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]