ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkObjectFactory.h>
Static Public Member Functions | |
static T::Pointer | Create () |
Create instances of a class.
ObjectFactory is a helper class used to created instances of a class. Object factories are used for instantiation because they allow run-time replacement of a class with a user-supplied version. For example, if you wished to replace an algorithm with your own custom version, or with a hardware-accelerated version, ObjectFactory can be used to do this.
This implementation of the object factory is templated and uses RTTI (Run-Time Type Information) to create the name of the class it is to instantiate. (The name may include template type parameters, depending on the class definition.)
Definition at line 55 of file itkObjectFactory.h.
static T::Pointer itk::ObjectFactory< T >::Create | ( | ) | [inline, static] |
Definition at line 58 of file itkObjectFactory.h.
References itk::ObjectFactoryBase::CreateInstance(), and itk::SmartPointer< TObjectType >::GetPointer().