![]() |
PeriDyno 1.2.1
|
#include <WtDataModelRegistry.h>
Public Types | |
| using | RegistryItemPtr = std::unique_ptr<WtNodeDataModel> |
| using | RegistryItemCreator = std::function<RegistryItemPtr()> |
| using | RegisteredModelCreatorsMap = std::unordered_map<std::string, RegistryItemCreator> |
| using | RegisteredModelsCategoryMap = std::unordered_map<std::string, std::string> |
| using | CategoriesSet = std::set<std::string> |
| using | RegisteredTypeConvertersMap = std::map<TypeConverterId, TypeConverter> |
Public Member Functions | |
| WtDataModelRegistry ()=default | |
| ~WtDataModelRegistry ()=default | |
| WtDataModelRegistry (WtDataModelRegistry const &)=delete | |
| WtDataModelRegistry (WtDataModelRegistry &&)=default | |
| WtDataModelRegistry & | operator= (WtDataModelRegistry const &)=delete |
| WtDataModelRegistry & | operator= (WtDataModelRegistry &&)=default |
| template<typename ModelType> | |
| void | registerModel (RegistryItemCreator creator, std::string const &category="Nodes") |
| template<typename ModelType> | |
| void | registerModel (std::string const &category="Nodes") |
| template<typename ModelType> | |
| void | registerModel (std::string const &category, RegistryItemCreator creator) |
| template<typename ModelCreator> | |
| void | registerModel (ModelCreator &&creator, std::string const &category="Nodes") |
| template<typename ModelCreator> | |
| void | registerModel (std::string const &category, ModelCreator &&creator) |
| void | registerTypeConverter (TypeConverterId const &id, TypeConverter typeConverter) |
| std::unique_ptr< WtNodeDataModel > | create (std::string const &modelName) |
| RegisteredModelCreatorsMap const & | registeredModelCreators () const |
| RegisteredModelsCategoryMap const & | registeredModelsCategoryAssociation () const |
| CategoriesSet const & | categories () const |
| TypeConverter | getTypeConverter (NodeDataType const &d1, NodeDataType const &d2) const |
Private Types | |
| template<typename CreatorResult> | |
| using | compute_model_type_t = typename UnwrapUniquePtr<CreatorResult>::type |
Static Private Member Functions | |
| template<typename ModelType> | |
| static std::string | computeName (std::true_type, RegistryItemCreator const &) |
| template<typename ModelType> | |
| static std::string | computeName (std::false_type, RegistryItemCreator const &creator) |
Definition at line 22 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::CategoriesSet = std::set<std::string> |
Definition at line 29 of file WtDataModelRegistry.h.
|
private |
Definition at line 145 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::RegisteredModelCreatorsMap = std::unordered_map<std::string, RegistryItemCreator> |
Definition at line 27 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::RegisteredModelsCategoryMap = std::unordered_map<std::string, std::string> |
Definition at line 28 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::RegisteredTypeConvertersMap = std::map<TypeConverterId, TypeConverter> |
Definition at line 30 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::RegistryItemCreator = std::function<RegistryItemPtr()> |
Definition at line 26 of file WtDataModelRegistry.h.
| using WtDataModelRegistry::RegistryItemPtr = std::unique_ptr<WtNodeDataModel> |
Definition at line 25 of file WtDataModelRegistry.h.
|
default |

|
default |
|
delete |

|
default |

| WtDataModelRegistry::CategoriesSet const & WtDataModelRegistry::categories | ( | ) | const |
Definition at line 24 of file WtDataModelRegistry.cpp.
|
inlinestaticprivate |
Definition at line 121 of file WtDataModelRegistry.h.
|
inlinestaticprivate |
| std::unique_ptr< WtNodeDataModel > WtDataModelRegistry::create | ( | std::string const & | modelName | ) |
Definition at line 3 of file WtDataModelRegistry.cpp.
| TypeConverter WtDataModelRegistry::getTypeConverter | ( | NodeDataType const & | d1, |
| NodeDataType const & | d2 ) const |
Definition at line 29 of file WtDataModelRegistry.cpp.
|
default |

|
delete |

| WtDataModelRegistry::RegisteredModelCreatorsMap const & WtDataModelRegistry::registeredModelCreators | ( | ) | const |
Definition at line 14 of file WtDataModelRegistry.cpp.
| WtDataModelRegistry::RegisteredModelsCategoryMap const & WtDataModelRegistry::registeredModelsCategoryAssociation | ( | ) | const |
Definition at line 19 of file WtDataModelRegistry.cpp.
|
inline |
|
inline |
Definition at line 43 of file WtDataModelRegistry.h.


|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 81 of file WtDataModelRegistry.h.
|
private |
Definition at line 100 of file WtDataModelRegistry.h.
|
private |
Definition at line 102 of file WtDataModelRegistry.h.
|
private |
Definition at line 98 of file WtDataModelRegistry.h.
|
private |
Definition at line 104 of file WtDataModelRegistry.h.