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:

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

Collaboration graph
[legend]
List of all members.

Static Public Methods

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.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:37:13 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000