Alf::AlfMap Class Reference
class Alf::AlfMap : public Alf::IAlfMap
|
Concrete implementation of the variant data type interface. Simple map of variant types.The map is contains data and a key.
IAlfMap
alfwidgetmodel.lib
-
Since
-
S60 ?S60_version Draft
Constructor & Destructor Documentation
AlfMap()
1st phase Constructor for creating a variant data type which can store a
AlfMap
-
Exceptions
-
-
Since
-
S60 ?S60_version
~AlfMap()
Destructor
-
Since
-
S60 ?S60_version
Member Functions Documentation
addItem(IAlfVariantType *, const UString &)
Adds a variantData item into the container .From
IAlfContainer
interface
-
Exceptions
-
-
Since
-
S60 ?S60_version
addItem(uint, IAlfVariantType *, const UString &)
Adds a variantData item into the container .From
IAlfContainer
interface
-
Exceptions
-
std::bad_alloc
|
index where the data is added
|
-
Since
-
S60 ?S60_version
boolean()
OSN_IMPORT bool
|
boolean
|
(
|
)
|
const [virtual]
|
Get the data value as an bool .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not boolean.
|
-
Since
-
S60 ?S60_version
branch()
Get the data value as Branch .From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not a branch.
|
-
Since
-
S60 ?S60_version
clear()
OSN_IMPORT void
|
clear
|
(
|
)
|
[virtual]
|
clone()
OSN_IMPORT
IAlfMap
*
|
clone
|
(
|
)
|
[virtual]
|
Clones the entire container From
IAlfContainer
interface
-
Exceptions
-
std::bad_alloc
|
|
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if there is an invalid data type in the container.
|
-
Since
-
S60 ?S60_version
construct()
void
|
construct
|
(
|
)
|
[private]
|
container()
Get the data value as an Conatiner .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not a container.
|
-
Since
-
S60 ?S60_version
count()
OSN_IMPORT int
|
count
|
(
|
)
|
const [virtual]
|
Gets the Number of items in the container . From
IAlfContainer
interface
customData()
Get the data value as a
User
Defined Data Pointer.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not a custom data type.
|
-
Since
-
S60 ?S60_version
integer()
OSN_IMPORT int
|
integer
|
(
|
)
|
const [virtual]
|
Get the data value as an Integer .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not an integer.
|
-
Since
-
S60 ?S60_version
item(uint)
Gets the Item at a given index in the container From
IAlfContainer
interface
-
Since
-
S60 ?S60_version
Parameters
uint
aIndex
|
- index at which the element is required
|
item(const UString &)
Gets the Item for a given name in the map. From
IAlfContainer
interface
-
Since
-
S60 ?S60_version
Parameters
const
UString
& aName
|
- name of the element that is required
|
itemIndex(const UString &)
OSN_IMPORT int
|
itemIndex
|
(
|
const
UString
&
|
aName
|
)
|
[virtual]
|
Gets the index of the item by the given name.
-
Since
-
S60 ?S60_version
Parameters
const
UString
& aName
|
The name associated with requested item.
|
map()
OSN_IMPORT
IAlfMap
*
|
map
|
(
|
)
|
[virtual]
|
name(uint)
Gets the Name at a given index in the container
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidArrayIndex if aIndex is invalid.
|
-
Since
-
S60 ?S60_version
Parameters
uint
aIndex
|
- index at which the name of the element in the map is required
|
operator==(const IAlfVariantType &)
Equality comparison operator.
real()
OSN_IMPORT double
|
real
|
(
|
)
|
const [virtual]
|
Get the data value as an bool .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not a real value.
|
-
Since
-
S60 ?S60_version
removeItem(uint)
OSN_IMPORT void
|
removeItem
|
(
|
uint
|
aIndex
|
)
|
[virtual]
|
Removes an item from given index in the container. From
IAlfContainer
interface.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidMapOperation if the removeItem fails.
|
-
Since
-
S60 ?S60_version
Parameters
uint
aIndex
|
- index at which the element is to be removed
|
removeItem(const UString &)
OSN_IMPORT void
|
removeItem
|
(
|
const
UString
&
|
aName
|
)
|
[virtual]
|
Removes an item for a given Name in map. From
IAlfContainer
interface
-
Exceptions
-
std::bad_alloc
|
|
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidMapOperation if the removeItem fails.
|
-
Since
-
S60 ?S60_version
Parameters
const
UString
& aName
|
- name of the element that is to be removed
|
replaceItem(uint, IAlfVariantType *)
Replace an item from given index in the container
-
Exceptions
-
std::bad_alloc
|
|
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidMapOperation if the replaceItem fails.
|
-
Since
-
S60 ?S60_version
Parameters
uint
aIndex
|
- index at which the element is to be replaced
|
IAlfVariantType
* aNewData
|
- new Data to be replaced
|
replaceItem(const UString &, IAlfVariantType *)
Replace an item for a given name in the container
-
Exceptions
-
std::bad_alloc
|
|
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidMapOperation if the replaceItem fails.
|
-
Since
-
S60 ?S60_version
Parameters
const
UString
& aName
|
- name of the element that is to be replaced
|
IAlfVariantType
* aNewData
|
- new Data to be replaced
|
set(IAlfVariantType &)
Set the Data the variantData. From
IAlfVariantType
Interface. Always throws an exception always.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidMapOperation always. Use the addItem API.
|
-
Since
-
S60 ?S60_version
string()
OSN_IMPORT const
UString
&
|
string
|
(
|
)
|
const [virtual]
|
Get the data value as an Descriptor .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not a string value.
|
-
Since
-
S60 ?S60_version
uinteger()
OSN_IMPORT
uint
|
uinteger
|
(
|
)
|
const [virtual]
|
Get the data value as unsigned int.From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfMap
is not an unsigned integer.
|
-
Since
-
S60 ?S60_version
Member Data Documentation
auto_ptr< AlfMapDataImpl > mMapDataImpl
auto_ptr< AlfMapDataImpl >
|
mMapDataImpl
|
[private]
|
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.