maxon::HashMap is a generic class template for a map that maps keys to values with the help of hash values. It can use data types as a key that implement a "GetHashCode" and "IsEqual" function. maxon::HashMap is based on maxon::MapBase and maxon::Collection.
A new hash map object can simply be created using the class template:
The data stored in a maxon::HashMap can be cleared with:
An entry in a maxon::HashMap is represented as a maxon::HashMap::Entry object. New entries can be inserted with:
An entry stored in the maxon::HashMap can be found using the proper key:
An entry of the maxon::HashMap can also be deleted:
Erase()
was used with specific parameters.It is easily possible to iterate trough all stored key and values with:
See also Iterate.
A maxon::HashMap stores a certain number of elements and has a certain capacity to store further elements:
GetMemorySize()
.It is easily to iterate over all entries in the maxon::HashMap:
A maxon::HashMap can easily be copied:
Further utility functions are: