|
Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
|
Factory that creates concrete Element objects from type labels and parameters. More...
#include <element_factory.h>
Public Member Functions | |
| std::shared_ptr< Element > | createElement (ElementLabel type) |
| Create an element with default parameters. | |
| std::shared_ptr< Element > | createElement (ElementLabel type, const ElementCommonParameters &elementCommonParameters, const ElementSpecificParameters &elementSpecificParameters) |
| Create and return an element of the given type. | |
| ElementFactory () | |
Factory that creates concrete Element objects from type labels and parameters.
ElementFactory maintains a dispatch table keyed on ElementLabel. Call createElement(label, commonParams, specificParams) to create any registered element type without depending on its concrete class. A default-parameter overload is available for quick construction during prototyping.
| dnf_composer::element::ElementFactory::ElementFactory | ( | ) |
| std::shared_ptr< Element > dnf_composer::element::ElementFactory::createElement | ( | ElementLabel | type | ) |
Create an element with default parameters.
| type | Which element to create. |
| std::shared_ptr< Element > dnf_composer::element::ElementFactory::createElement | ( | ElementLabel | type, |
| const ElementCommonParameters & | elementCommonParameters, | ||
| const ElementSpecificParameters & | elementSpecificParameters | ||
| ) |
Create and return an element of the given type.
| type | Which element to create. |
| elementCommonParameters | Name, label, and spatial dimensions. |
| elementSpecificParameters | Type-specific parameter struct (cast internally). |