共用方式為


CMapStringToString Members

Base Class Members

CObject Members

Construction

CMapStringToString

Constructs a collection that maps CString objects to CString objects.

Operations

GetNextAssoc

Gets the next element for iterating.

PGetNextAssoc

Gets a pointer to the next CString for iterating.

GetHashTableSize

Determines the number of elements in the hash table for the map.

GetStartPosition

Returns the position of the first element.

HashKey

Calculates the hash value of a specified key.

InitHashTable

Initializes the hash table.

PGetFirstAssoc

Gets a pointer to the first CString in the map.

Lookup

Returns a CString using a CString value as a key.

LookupKey

Returns the associated key of the specified key.

PLookup

Returns a pointer to a CString 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

GetSize

Returns the number of elements in this map.

GetCount

Returns the number of elements in this map.

IsEmpty

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

Data Members

CMapStringToString::CPair

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

See Also

Reference

CMapStringToString Class

Hierarchy Chart