<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm writing to get some advice on C++ templates from some of the
experts on this list.<br>
<br>
I want to write a class which is templated on the image type. There
are many classes in ITK that are templated like this.<br>
<blockquote><tt><big>template<typename TImage></big></tt><br>
<tt><big>class ImageProcessor { };</big></tt><br>
</blockquote>
<tt></tt>The problem is that the class knows nothing about <big><tt>TImage</tt></big>
until compile time and I would like to take advantage of the code
assistance in Xcode as I write the class. This would require that
the IDE know that TImage is really an ITK Image.<br>
<br>
This gets me closer<br>
<blockquote><big><tt>template<br>
<<br>
template<typename TPixel, insigned Dimension> class
TImage<br>
></tt></big><br>
<big><tt>class ImageProcessor { };</tt></big><br>
</blockquote>
but it still contains no information about <tt><big>itk::Image<TPixel,
Dimension></big></tt> beyond its signature.<br>
<br>
This gets me closer<br>
<blockquote><big><tt>template</tt><tt><</tt><tt>class TPixel,</tt><tt>
</tt><tt>unsigned Dim</tt><tt>></tt><tt><br>
</tt><tt>class ImageProcessor</tt><tt><br>
</tt><tt>{</tt><tt><br>
</tt><tt> public:</tt><tt><br>
</tt><tt> typedef itk::Image<TPixel, Dim> ImageType;</tt><tt><br>
</tt><tt>...</tt><tt><br>
</tt><tt>};</tt></big><br>
</blockquote>
but I'm curious to know if there is any way of getting the what I
want.<br>
<br>
Thanks,<br>
Tim<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
</body>
</html>