|
|
Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <ImpactLoss.h>
Singleton factory to register and create Loss instances by string name.
Used to instantiate losses dynamically from configuration. Example: "L1", "L2", "NCC", etc.
Definition at line 167 of file ImpactLoss.h.
Public Types | |
| using | CreatorFunc = std::function<std::unique_ptr<Loss>()> |
Public Member Functions | |
| std::unique_ptr< Loss > | Create (const std::string &name) |
| void | RegisterLoss (const std::string &name, CreatorFunc creator) |
Static Public Member Functions | |
| static LossFactory & | Instance () |
Private Attributes | |
| std::unordered_map< std::string, CreatorFunc > | factoryMap |
| using ImpactLoss::LossFactory::CreatorFunc = std::function<std::unique_ptr<Loss>()> |
Definition at line 170 of file ImpactLoss.h.
|
inline |
Definition at line 186 of file ImpactLoss.h.
|
inlinestatic |
Definition at line 173 of file ImpactLoss.h.
|
inline |
Definition at line 180 of file ImpactLoss.h.
|
private |
Definition at line 197 of file ImpactLoss.h.
Generated on 1774142652 for elastix by 1.15.0 |