osncore::AlfPtrVector Class Reference
class osncore::AlfPtrVector : public osncore::IDeleter
|
Use STL vectorTemplate class for a pointer vector
Constructor & Destructor Documentation
AlfPtrVector()
AlfPtrVector
|
(
|
)
|
[inline]
|
Use STL vector Default constructor for vector. By default contents are automatically deleted when destructor is called.
AlfPtrVector(uint)
AlfPtrVector
|
(
|
uint
|
aSize
|
)
|
[inline, explicit]
|
Use STL vector Constructor for vector with some default size. Size can be increased or decreased afterwards.
Parameters
uint
aSize
|
Default size of vector.
|
AlfPtrVector(const AlfPtrVector &)
~AlfPtrVector()
~AlfPtrVector
|
(
|
)
|
[inline]
|
Use STL vector Destructor.
Member Functions Documentation
at(int)
T *
|
at
|
(
|
int
|
aPos
|
)
|
const [inline]
|
Use STL vector Returns pointer to the item at given position in the vector.
Parameters
int aPos
|
Position from which item is queried.
|
autoDelete()
bool
|
autoDelete
|
(
|
)
|
[inline]
|
Use STL vector Returns the value of auto delete property.
clear()
Deletes all items of vector.
count()
uint
|
count
|
(
|
)
|
const [inline]
|
Use STL vector Returns number of items in vector.
data()
Use STL vector Returns pointer to the raw data used by vector to stroe the items.
deleteItem(void *)
void
|
deleteItem
|
(
|
void *
|
aItem
|
)
|
[private, inline, virtual]
|
findRef(T *)
int
|
findRef
|
(
|
T *
|
aItem
|
)
|
[inline]
|
Use STL vector Returns the position of the item in the vector.
Parameters
T * aItem
|
Pointer to the item being searched in the vector.
|
insert(uint, T *)
bool
|
insert
|
(
|
uint
|
aPos,
|
|
T *
|
aItem
|
|
)
|
[inline]
|
Use STL vector Inserts a new item at given position in the vector.
Parameters
uint
aPos
|
Position at which item has to be inserted.
|
T * aItem
|
Pointer to the item to be inserted.
|
isEmpty()
bool
|
isEmpty
|
(
|
)
|
const [inline]
|
Use STL vector Checks if there are some items in vector.
operator=(const AlfPtrVector &)
operator[](uint)
T *
|
operator[]
|
(
|
uint
|
aPos
|
)
|
const [inline]
|
Use STL vector Returns the item at given index in the vector.
Parameters
uint
aPos
|
Position from which item has been queried.
|
remove(uint)
bool
|
remove
|
(
|
uint
|
aPos
|
)
|
[inline]
|
Use STL vector Removes the item from vector at given position. Item will be automatically deleted if auto delete property is set to true.
Parameters
uint
aPos
|
Position of the item to be removed.
|
resize(uint)
bool
|
resize
|
(
|
uint
|
aSize
|
)
|
[inline]
|
Use STL vector Resizes the vector to new size. Existing items in the vector will be restored if auto delete property is false.
Parameters
uint
aSize
|
New size in bytes.
|
setAutoDelete(bool)
void
|
setAutoDelete
|
(
|
bool
|
aAutoDelete = true
|
)
|
[inline]
|
Use STL vector Sets the auto delete property of vector.
Parameters
bool aAutoDelete = true
|
Value(true/false) of the property.Default value is true.
|
size()
uint
|
size
|
(
|
)
|
const [inline]
|
Use STL vector Returns the size in bytes occupied by vector.
Member Data Documentation
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.