Header file for the dsim_model class and associated types. More...
Go to the source code of this file.
Classes | |
class | dsim_model |
Superclass for all simulated objects. More... | |
Typedefs | |
typedef dsim_model *(* | dsim_model_factory_t )(dsim_model_setup *) |
Type for the factory function for a model. |
Header file for the dsim_model class and associated types.
typedef dsim_model*(* dsim_model_factory_t)(dsim_model_setup *) |
Type for the factory function for a model.
All models must have a factory function with C linkage conforming to this function signature; this factory function will be used by the simulation engine to create objects from this model. The factory function will take a single parameter, a pointer to a dsim_model_setup object. The new object should be allocated on the heap (via new) and the factory function's single parameter should be passed unchanged to the constructor.