BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Go to the source code of this file.
Classes | |
class | IFactory< Key, AbstractProduct > |
Functions | |
template<class T > | |
T * | create_new () |
Defines interface class IFactory.
Definition in file IFactory.h.
T* create_new | ( | ) |
Returns new instance of class T.
This templated function is used in catalogs in form of a function pointer 'create_new<T>', with no function arguments supplied. Equivalently, we could use a lambda function '[](){return new T;}'.
Definition at line 77 of file IFactory.h.