Udostępnij za pośrednictwem


CAtlMap Members

Methods

AssertValid

Call this method to cause an ASSERT if the CAtlMap is not valid.

CAtlMap

The constructor.

~CAtlMap

The destructor.

DisableAutoRehash

Call this method to disable automatic rehashing of the CAtlMap object.

EnableAutoRehash

Call this method to enable automatic rehashing of the CAtlMap object.

GetAt

Call this method to return the element at a specified position in the map.

GetCount

Call this method to retrieve the number of elements in the map.

GetHashTableSize

Call this method to determine the number of bins in the map's hash table.

GetKeyAt

Call this method to retrieve the key stored at the given position in the CAtlMap object.

GetNext

Call this method to obtain a pointer to the next element pair stored in the CAtlMap object.

GetNextAssoc

Gets the next element for iterating.

GetNextKey

Call this method to retrieve the next key from the CAtlMap object.

GetNextValue

Call this method to get the next value from the CAtlMap object.

GetStartPosition

Call this method to start a map iteration.

GetValueAt

Call this method to retrieve the value stored at a given position in the CAtlMap object.

InitHashTable

Call this method to initialize the hash table.

IsEmpty

Call this method to test for an empty map object.

Lookup

Call this method to look up keys or values in the CAtlMap object.

Rehash

Call this method to rehash the CAtlMap object.

RemoveAll

Call this method to remove all elements from the CAtlMap object.

RemoveAtPos

Call this method to remove the element at the given position in the CAtlMap object.

RemoveKey

Call this method to remove an element from the CAtlMap object, given the key.

SetAt

Call this method to insert an element pair into the map.

SetOptimalLoad

Call this method to set the optimal load of the CAtlMap object.

SetValueAt

Call this method to change the value stored at a given position in the CAtlMap object.

Operators

operator []

Replaces or adds a new element to the CAtlMap.

Data Members

m_key

The data member storing the key element.

m_value

The data member storing the value element.

Typedefs

KINARGTYPE

Type used when a key is passed as an input argument

KOUTARGTYPE

Type used when a key is returned as an output argument.

VINARGTYPE

Type used when a value is passed as an input argument.

VOUTARGTYPE

Type used when a value is passed as an output argument.

Classes

CPair

A class containing the key and value elements.

See Also

Reference

CAtlMap Class