Condividi tramite


CMap Members

Base Class Members

CObject Members

Construction

CMap

Constructs a collection that maps keys to values.

Operations

GetHashTableSize

Returns the size (number of elements) of the hash table.

GetNextAssoc

Gets the next element for iterating.

PGetNextAssoc

Gets a pointer to the next element for iterating.

GetStartPosition

Returns the position of the first element.

PGetFirstAssoc

Returns a pointer to the first element.

InitHashTable

Initializes the hash table and specifies its size.

Lookup

Looks up the value mapped to a given key.

PLookup

Returns a pointer to a key whose value matches the specified value.

operator []

Inserts an element into the map — operator substitution for SetAt.

RemoveAll

Removes all the elements from this map.

RemoveKey

Removes an element specified by a key.

SetAt

Inserts an element into the map; replaces an existing element if a matching key is found.

Status

GetCount

Returns the number of elements in this map.

GetSize

Returns the number of elements in this map.

IsEmpty

Tests for the empty-map condition (no elements).

Data Members

CMap::CPair

A nested structure containing a key value and the value of the associated object.

See Also

Concepts

CMap Class

Hierarchy Chart