HashMap ConstructorHashMap::setName()HashMap::getName()HashMap::setMap()HashMap::getMapLen()HashMap::getMapValues()HashMap::equal()HashMap::getObjectStatus()HashMap::getObjectVersion()HashMap::getObjectId()Abstract
The sections that follow describe each of the public methods of
the HashMap class.
Description.
The HashMap class constructor
normally requires no arguments. A copy constructor is also
available.
Signature. Base constructor:
HashMap HashMap
(
void
)Parameters.
None, or the address of an existing
HashMap object to be copied.
Return value.
A new instance of HashMap, possibly a copy
of an existing one.
Description. Sets the name of the hash map.
Signature.
void setName
(
const char* name
)
Parameters. The name to be assigned to the hashmap.
Return value. None.
Description. Gets the name of the hash map.
Signature.
const char* getName
(
void
) constParameters. None.
Return value. The name of the hash map.
Description. Assigns a set of values to a has map.
Signature.
void setMap
(
const Uint32* values,
Uint32 len
)
Parameters.
A pointer to a set of values of
length len.
Return value. None.
Description.
Gets the hash map's length; that is, the number of values
which it contains. You can obtain the values using
getMapValues().
Signature.
Uint32 getMapLen
(
void
) constParameters. None.
Return value. The length of the hash map.
Description. Gets the values listed in the hash map.
Signature.
int getMapValues
(
Uint32* dst,
Uint32 len
) const
Parameters.
A pointer to a set of values (dst)
and the number of values (len).
Return value. Returns 0 on success; on failure, returns -1 and sets error.
Description.
Compares (only) the values of this
HashMap with those of another
one.
Signature.
bool equal
(
const HashMap& hashmap
) const
Parameters. A reference to the hash map to be compared with this one.
Return value. None.
Description.
This method retrieves the status of the
HashMap for which it is
invoked. The return value is of type
Object::Status.
Signature.
virtual Status getObjectStatus
(
void
) constParameters. None.