hashmap-class {datastructures}R Documentation

Hashmap class

Description

Implementation of a hashmap data structure, i.e. an unordered collection of key-value pairs:

f: keys -> values.

Hashmaps only to store unique keys-value pairs. For a data structure where multiple identical keys can be stores see multimap. Inserting and accessing is amortized in O(1). hashmap wraps a C++ unordered_map using Rcpp modules. Also see bimap for mappings in both ways.

Slots

.map

C++ object representing a mapping

.key.class

the class of the keys

See Also

hashmap for creating a new hashmap object


[Package datastructures version 0.2.8 Index]