ITK  4.1.0
Insight Segmentation and Registration Toolkit
Static Public Member Functions
itk::ObjectFactory< T > Class Template Reference

#include <itkObjectFactory.h>

+ Inheritance diagram for itk::ObjectFactory< T >:
+ Collaboration diagram for itk::ObjectFactory< T >:

List of all members.

Static Public Member Functions

static T::Pointer Create ()

Detailed Description

template<class T>
class itk::ObjectFactory< T >

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.


Member Function Documentation

template<class T >
static T::Pointer itk::ObjectFactory< T >::Create ( ) [inline, static]

The documentation for this class was generated from the following file: