[Insight-developers] GaussianImageSource

Luis Ibanez luis.ibanez@kitware.com
Wed, 20 Feb 2002 17:06:04 -0500


Damion,

The Style is that we use:

- "TName" for the template parameters when it is a type.
- "NName" when the template parameter is an unsigned int.

That helps to note that these types are going to be
replaced by something else at compile time.

For the typedef  we use just "NameType".

As you show for itk::Image, the Template parameter is TPixel,
but as soon as you declare a new type (with typedef) inside
your code the name of this new type is "SomethingType".



   Luis


--------------------------------------------

Damion Shelton wrote:

>> BTW: A minor change in style was made to your class: "TArrayType"
>> was being used to define a type, as opposed to just "ArrayType".
>
>
> I have a question about this: there seem to be two competing notation 
> styles. From itkImage.h:
>
> template <class TPixel,...
> typedef TPixel PixelType;
>
> What is the difference between the two forms?
>
> -Damion-
>