This class is used to store directory entries in the container_directory class and subsequently, its base class directory. It models the map concept.
More...
|
| static_registry (Home const &home) |
| Create a registry with a given manager (home). More...
|
|
template<typename Partition , typename Mapper > |
void | reset_home (Partition const &partition, Mapper const &mapper) |
| Resets the partition and mapper stored in m_home. More...
|
|
void | clear (void) |
| Clears the storage of the registry. As there is no storage, this is effectively a no op.
|
|
bool | empty (void) const |
| Returns whether or not the registry is empty. The registry is only empty if there is no data defined by the container.
|
|
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 &) |
| Register the locality of a GID. This is not valid for a static registry. 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 &) |
| Erase a mapping of a GID from a location. Erasing from a static registry is not valid. More...
|
|
const_iterator | end (void) const |
| Returns a value representing the end of the registry.
|
|
|
typedef Home::gid_type | key_type |
|
typedef Home::value_type | value_type |
|
template<typename Home>
class stapl::static_registry< Home >
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 static pContainers, this registry will simply mimic the initial distribution of GIDs, which is provided by the Home
function object.
- Template Parameters
-
Home | Function object that provides a (usually) closed-form solution for GID -> location. |
◆ static_registry()
Create a registry with a given manager (home).
- Parameters
-
home | Function object to translate keys to values. |
◆ reset_home()
template<typename Home >
template<typename Partition , typename Mapper >
Resets the partition and mapper stored in m_home.
- Parameters
-
partition | view-based partition of a data distribution. |
mapper | view-based mapper of a data distribution. |
◆ operator[]()
Lookup in the registry on which location a GID resides.
- Parameters
-
key | Key to look up in the registry. |
- Returns
- The location of the key.
◆ insert()
Register the locality of a GID. This is not valid for a static registry.
- Parameters
-
val | Key-value pair to insert into the registry |
◆ find()
Lookup in the registry on which location a GID resides.
- Parameters
-
key | Key to look up in the registry. |
- Returns
- The location of the key.
◆ erase()
Erase a mapping of a GID from a location. Erasing from a static registry is not valid.
- Parameters
-
key | Key to remove from the directory. |
The documentation for this class was generated from the following file: