[Insight-developers] Class for maintaining list of objects?

Bill Hoffman bill.hoffman@kitware.com
Tue, 06 Feb 2001 16:26:25 -0500


--=====================_9207008==_.ALT
Content-Type: text/plain; charset="us-ascii"

You want this:

std::list<itk::LightObject::Pointer> 

It will use the smart pointer and the reference counting should work.

-Bill


At 04:23 PM 2/6/2001 -0500, Parag Chandra wrote:
>Hi,
>I need to maintain a variable-length list of lightweight objects, and was going to use the STL list for this, but I thought I should check to see if there is some ITK class that does the same thing?
> 
>Thanks,
>-Parag

--=====================_9207008==_.ALT
Content-Type: text/html; charset="us-ascii"

You want this:

std::list<itk::LightObject::Pointer>

It will use the smart pointer and the reference counting should work.

-Bill


At 04:23 PM 2/6/2001 -0500, Parag Chandra wrote:
Hi,
I need to maintain a variable-length list of lightweight objects, and was going to use the STL list for this, but I thought I should check to see if there is some ITK class that does the same thing?
 
Thanks,
-Parag
--=====================_9207008==_.ALT--