#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 26-02-2026
for elastix by 1.16.1 (669aeeefca743c148e2d935b3d3c69535c7491e6) |