Ginkgo
Generated from pipelines/1589998975 branch based on develop. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
This class stores additional context for creating Ginkgo objects from configuration files. More...
#include <ginkgo/core/config/registry.hpp>
Public Member Functions | |
registry (const configuration_map &additional_map={}) | |
registry constructor More... | |
registry (const std::unordered_map< std::string, detail::allowed_ptr > &stored_map, const configuration_map &additional_map={}) | |
registry constructor More... | |
template<typename T > | |
bool | emplace (std::string key, std::shared_ptr< T > data) |
Store the data with the key. More... | |
This class stores additional context for creating Ginkgo objects from configuration files.
The context can contain user-provided objects that derive from the following base types:
Additionally, users can provide mappings from a configuration (provided as a pnode) to user-defined types that are derived from LinOpFactory
gko::config::registry::registry | ( | const configuration_map & | additional_map = {} | ) |
registry constructor
additional_map | the additional map to dispatch the class base. Users can extend the map to fit their own LinOpFactory. We suggest using "usr::" as the prefix in the key to simply avoid conflict with ginkgo's map. |
gko::config::registry::registry | ( | const std::unordered_map< std::string, detail::allowed_ptr > & | stored_map, |
const configuration_map & | additional_map = {} |
||
) |
registry constructor
stored_map | the map stores the shared pointer of users' objects. It can hold any type whose base type is LinOp/LinOpFactory/CriterionFactory. |
additional_map | the additional map to dispatch the class base. Users can extend the map to fit their own LinOpFactory. We suggest using "usr::" as the prefix in the key to simply avoid conflict with ginkgo's map. |
|
inline |
Store the data with the key.
T | the type |
key | the unique key string |
data | the shared pointer of the object |