#include <mlITKObjectFactory.h>
Public Types | |
| typedef void *(* | MLITKObjectFactoryCreator )(MLDataType dataType, unsigned int dim) |
| Function type to cerate an object and to return a void pointer to it. | |
| typedef void(* | MLITKObjectFactoryDestructor )(void *, MLDataType dataType, unsigned int dim) |
| Function type to destroy an object. | |
Public Member Functions | |
| MLITKObjectFactory () | |
| Create an empty object. | |
| ~MLITKObjectFactory () | |
| Destroy internally stored object. | |
| void | createObject (MLDataType dType, int dim) |
| Create object. | |
| void | createObject (MLDataType dType, Vector v) |
| Create object. | |
| void | destroyObject () |
| Destroy object. | |
| void * | getObject () const |
| Returns void pointer to the managed internal object. | |
| MLDataType | getDataType () const |
| Returns data type of the managed internal object. | |
| int | getDimension () const |
| Returns dimension of the managed internal object. | |
| void | _setCreatorAndDestructor (MLITKObjectFactoryCreator cFunc, MLITKObjectFactoryDestructor dFunc) |
| Sets creator and destructor functions. Only to be called by the macro. | |
Using an instance of this class requires also the usage of the macros MLITKImplementFactoryFuncs and MLITKObjectFactoryInit.
Definition at line 126 of file mlITKObjectFactory.h.
| typedef void*(* ml::MLITKObjectFactory::MLITKObjectFactoryCreator)(MLDataType dataType, unsigned int dim) |
Function type to cerate an object and to return a void pointer to it.
| typedef void(* ml::MLITKObjectFactory::MLITKObjectFactoryDestructor)(void *, MLDataType dataType, unsigned int dim) |
Function type to destroy an object.
| ml::MLITKObjectFactory::MLITKObjectFactory | ( | ) | [inline] |
| ml::MLITKObjectFactory::~MLITKObjectFactory | ( | ) | [inline] |
| void ml::MLITKObjectFactory::_setCreatorAndDestructor | ( | MLITKObjectFactoryCreator | cFunc, | |
| MLITKObjectFactoryDestructor | dFunc | |||
| ) | [inline] |
Sets creator and destructor functions. Only to be called by the macro.
Definition at line 161 of file mlITKObjectFactory.h.
| void ml::MLITKObjectFactory::createObject | ( | MLDataType | dType, | |
| Vector | v | |||
| ) | [inline] |
| void ml::MLITKObjectFactory::createObject | ( | MLDataType | dType, | |
| int | dim | |||
| ) | [inline] |
| void ml::MLITKObjectFactory::destroyObject | ( | ) | [inline] |
| MLDataType ml::MLITKObjectFactory::getDataType | ( | void | ) | const [inline] |
Returns data type of the managed internal object.
Definition at line 155 of file mlITKObjectFactory.h.
| int ml::MLITKObjectFactory::getDimension | ( | ) | const [inline] |
Returns dimension of the managed internal object.
Definition at line 158 of file mlITKObjectFactory.h.
| void* ml::MLITKObjectFactory::getObject | ( | ) | const [inline] |
Returns void pointer to the managed internal object.
Definition at line 152 of file mlITKObjectFactory.h.
1.5.8