[Insight-developers] ZeroIndex removed

Luis Ibanez luis . ibanez at kitware . com
Tue, 27 Aug 2002 17:00:12 -0400


The static "ZeroIndex" has been removed.

Calls to Fill(0) are now used in its place.

Luis


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

Miller, James V (Research) wrote:
> Can we do without ZeroIndex?  
> 
> Index now has a Fill() method so it is fairly easy to create an 
> index and set it to zero. Or we can make sure the default constructor
> initializes to zero (we are currently relying on the compiler
> generated constructor).
> 
> 'Course the benefit to having the ZeroIndex static was that 
> we could avoid one constructor call per use.
> 
> I only count about 20 places it is used (outside the Examples
> and Testing). Add another 40 occurances in Examples and Testing.
>