|
|
| unordered_registry (void) |
| | Construct a registry with a stateless home functor.
|
| |
| | unordered_registry (Home const &home) |
| | Construct a registry with a given home function. More...
|
| |
|
void | clear (void) |
| | Clear all of the currently mapped GIDs in the registry.
|
| |
|
bool | empty (void) const |
| | Return whether or not this registry has any entries.
|
| |
| value_type | operator[] (key_type const &key) const |
| | Lookup in the registry on which location a GID resides. More...
|
| |
| void | insert (std::pair< key_type, value_type > const &val) |
| | Register the locality of a single GID. More...
|
| |
| const_iterator | find (key_type const &key) const |
| | Lookup in the registry on which location a GID resides. More...
|
| |
| void | erase (key_type const &key) |
| | Erase a mapping of a GID from a location. More...
|
| |
|
const_iterator | end (void) const |
| | Returns a value representing the end of the registry.
|
| |
| bool | contains (key_type const &key) const |
| | Returns whether or not a given key is mapped in the registry. More...
|
| |
template<typename Home, typename Compare = std::less<typename Home::gid_type>>
class stapl::unordered_registry< Home, Compare >
This class is used to store directory entries in the container_directory class and subsequently, its base class directory. It models the map concept. For most pContainers, it is a safe assumption to expect that most GIDs will be mapped to the home location and that there will be only a small amount of GIDs that differ from this closed-form solution (through migration, etc.)
For this registry, GIDs are mapped to their locations using an unordered map.
- Template Parameters
-
| Home | The manager function object |
| The | less than comparator used internally in the unordered map. |