Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ObjectFactory< T > Class Template Reference
[ITK System Objects]

Create instances of a class. More...

#include <itkObjectFactory.h>

Inheritance diagram for itk::ObjectFactory< T >:

Inheritance graph
[legend]
Collaboration diagram for itk::ObjectFactory< T >:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

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 47 of file itkObjectFactory.h.


Member Function Documentation

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

Definition at line 50 of file itkObjectFactory.h.

References itk::SmartPointer< Self >::GetPointer(), and itk::LightObject::Pointer.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:59:15 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000