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

Will Schroeder will.schroeder at kitware.com
Wed Aug 30 11:37:14 EDT 2000


Hi Luis-

That's the right way to do it. I'll fix it.

Will

At 10:49 AM 8/30/00 -0400, Luis Ibanez wrote:
>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
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers 





More information about the Insight-developers mailing list