iMSTK
Interactive Medical Simulation Toolkit
|
Templated class that can add to the object factory with objects that will be generated via std::make_shared
More...
#include <imstkFactory.h>
Public Member Functions | |
SharedObjectRegistrar (std::string name) | |
The constructor can automatically register the given class in the Factory For example it can be used in global scope in an implementation file. More... | |
Templated class that can add to the object factory with objects that will be generated via std::make_shared
As most objects in iMSTK are passed via std::shared_ptr this can be used as a default way to create a construction function
T | The base class type (see ObjectFactory) |
U | The class that should be generated here (needs to be a subclass of T) |
Args | constructor parameter types, these can then be pass in ObjectFactory::create |
Definition at line 87 of file imstkFactory.h.
|
inline |
The constructor can automatically register the given class in the Factory For example it can be used in global scope in an implementation file.
name | is the name that will be used in the factory for this class |
Definition at line 93 of file imstkFactory.h.