[Insight-developers] itk::FixedArray<>

Luis Ibanez luis.ibanez@kitware.com
Wed, 20 Feb 2002 11:27:18 -0500


Jim,

Renaming the current FixedArray has the advantage
of being consistent with  vnl  terminology.
It is templated over dimension.
Points and Vectors will still derive from FixedArray.

The new class will take over the itk::Array name.
It will derive from vnl_vector (to factorize functionality)
and have the dimension defined at construction time.

That will leave the itk::DynamicArray name  available
in case somebody sees a need for an array that can change
its size after construction. (Though this functionality is
now provided by the itk::VectorContainer...)

I'll start renaming the current itk::Array<> class as
itk::FixedArray<> and see how it goes...


    Luis


======================================


Miller, James V (CRD) wrote:

>Do we want FixedArray and Array or an Array (which is fixed) and a DynamicArray?
>
>Or would DynamicArray lead people to believe that they could change its length
>after constructor time?
>
>The reason I ask is that I will probably be writing a DynamicJoinImageFilter which would join N input
>images forming a vector image whose length is not known at the time the filter is constructed, making
>it different from the current JoinImageFilter. I am wondering if I should pick a different name.
>