The registry for the various data slice factories. We register all of the types we want to support here, and then can easily create them using the createPermutation function.
#include <DataAnalysis/DataStructures/arrayndpermutation.h>
◆ createPermutation()
- Parameters
-
dataType | The data type of the slice interface we want to create. |
- Returns
- The ArrayNdPermutation object that matches the type specified with dataType
- Note
- the caller is responsible for cleaning up the created object.
◆ getInstance()
- Returns
- the instance of the registry.
◆ registerFactory()
- Parameters
-
factory | The factory to register. If another factory associated with the same datatype (DataExecution::DataFactory) has already been registered, it will be replaced with the provided one. |
- Note
- The registry does NOT take ownership of the factories. They are assumed to all be singleton classes.