| class CLiwList : public CLiwContainer |
access elements based on an index
remove an element from the collection
append to an element to the collection
remove a key-value pair based on a key
get the total number of stored key-value pairs
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Since container objects are reference counted, they cannot go with CleanupStack::PushL . The issue is solved by using CleanupClosePushL for pushing the container objects into the CleanupStack . Hence CLiwContainer::Close method is introduced common to all container objects.
This implies that the object of this concrete implementation class being created should be pushed into the CleanupStack using CLiwContainer::PushL .
ServiceHandler.lib
CLiwContainer CLiwContainer::Close CLiwContainer::PushL CLiwDefaultList
| Public Member Functions | |
|---|---|
| void | AppendL (const TLiwVariant &) |
| TBool | AtL ( TInt , TLiwVariant &) |
| TInt | Count () |
| void | Remove ( TInt ) |
| IMPORT_C TBool | operator== (const CLiwList &) |
| void | AppendL | ( | const TLiwVariant & | aEntry | ) | [pure virtual] |
Appends an entry to the end of the collection. This is an abstract method.
| const TLiwVariant & aEntry | an Element to be added to the end of the collection |
| TBool | AtL | ( | TInt | aIndex, |
| TLiwVariant & | aEntry | |||
| ) | const [pure virtual] | |||
Gets an entry from the collection based on an integeral index.
!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is a copy of the value present in the list at the particular index. To ensure proper cleanup TLiwVariant::PushL method should be called beforehand.
| TInt aIndex | an index to get an entry from the collection |
| TLiwVariant & aEntry | the returned element from the collection |
| TInt | Count | ( | ) | const [pure virtual] |
Returns the number of elements present in the collection. This is an abstract method.
| void | Remove | ( | TInt | aIndex | ) | [pure virtual] |
Removes an element located at the passed index from the collection. This is an abstract method.
| TInt aIndex | the index of the element to be removed from the collection |
| IMPORT_C TBool | operator== | ( | const CLiwList & | aList | ) | const [virtual] |
Equality operator implementation for collection container.
| const CLiwList & aList | the list container to be compared |
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.