Class for computing the metadata of static containers that use container_manager_static that inherits from the base-container, and thus, is the base-container itself. This type of container manager has only one component per location.
More...
|
std::size_t | num_entries (Distribution *dist) const |
| Return the number of metadata entries that should be stored. More...
|
|
index_type | index_of (Distribution *, cid_type const &cid) const |
| Return the index in the metadata container that a base container should be stored at. More...
|
|
cid_type | cid_of (Distribution *, index_type const &idx) const |
| Return the CID for the metadata entry at a given index. More...
|
|
md_collection_type | local_entries (distribution_type *dist) const |
| Create a collection of metadata entries for all of the entries on this location. More...
|
|
return_type | operator() (proxy< Container, Accessor > *proxy_cont) const |
| Return the metadata of a reference to a container. More...
|
|
return_type | operator() (container_type *cont) const |
| Return the metadata of the specified container. More...
|
|
return_type | operator() (distribution_type *dist) const |
| Return the metadata of the specified distribution. More...
|
|
template<typename Distribution>
class stapl::metadata::static_container_extractor< Distribution >
Class for computing the metadata of static containers that use container_manager_static that inherits from the base-container, and thus, is the base-container itself. This type of container manager has only one component per location.
- Template Parameters
-
Distribution | Type of the Distribution. |
- Note
- this is different from the static_array_metadata primarily due to the metadata used. This class uses the metadata::flat_container whereas the static_array_metadata uses the metadata_container_wrapper.
◆ num_entries()
template<typename Distribution >
Return the number of metadata entries that should be stored.
- Parameters
-
dist | The distribution of the container |
◆ index_of()
template<typename Distribution >
Return the index in the metadata container that a base container should be stored at.
- Parameters
-
dist | The distribution of the container |
bc | The base container of the metadata entry |
◆ cid_of()
template<typename Distribution >
Return the CID for the metadata entry at a given index.
- Parameters
-
dist | The distribution of the container |
bc | The index of the entry |
◆ local_entries()
Create a collection of metadata entries for all of the entries on this location.
- Parameters
-
dist | The distribution for the container that the extraction process is for |
- Returns
- A collection of pairs, where the first element is the index of an entry and the second element is the entry itself
◆ operator()() [1/3]
Return the metadata of a reference to a container.
- See also
- metadata_entry.
- Parameters
-
cont | A pointer to the container. |
Calls the operator on the distribution of the provided container.
◆ operator()() [2/3]
Return the metadata of the specified container.
- See also
- metadata_entry.
- Parameters
-
cont | A pointer to the container. |
Calls the operator on the distribution of the provided container.
◆ operator()() [3/3]
Return the metadata of the specified distribution.
- See also
- metadata_entry.
- Parameters
-
dist | A pointer to the distribution. |
The documentation for this class was generated from the following file: