[Insight-developers] itk::ProcessObject : Smart Pointers / Normal Pointers

Luis Ibanez ibanez at cs.unc.edu
Wed Aug 30 10:49:55 EDT 2000


Hi,

One of the basic classes for implementing filters is the
itk::ProcessObject.

This class manages a list of inputs and a list of outputs for the
process.
All of them are (normal) pointers to itk::DataObject types.

I'm wondering if the lists shouldn't store smart pointers like:

itk::DataObject::Pointer

instead of normal pointers to itk::DataObject.

In this way, images should be kept in memory as long as
they are connected to some filter.

Is there any reason to prefer normal pointers ?

----

On the other hand, could be useful to consider some STL
object to support these lists (maybe a vector).
They are being managed "by hand" now.


Luis





More information about the Insight-developers mailing list