Helper for static self-registration of built-in algorithms. More...
#include <phosphor-tiles/include/PhosphorTiles/AlgorithmRegistry.h>
Public Member Functions | |
| AlgorithmRegistrar (const QString &id, int priority=100) | |
| Register an algorithm at static initialization time. | |
Helper for static self-registration of built-in algorithms.
Use this in algorithm .cpp files to register at static initialization time. New algorithms can be added without modifying AlgorithmRegistry.
Usage in algorithm .cpp file:
| T | Algorithm class (must inherit from TilingAlgorithm) |
|
inlineexplicit |
Register an algorithm at static initialization time.
| id | Algorithm identifier (e.g. QLatin1String("master-stack")) |
| priority | Registration order (lower = registered first, default 100) |