<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It's not entirely clear what you want to do but it sounds like you
want to make a typedef which describes a partially specialised
template class instead of the fully specialised typedefs we usually
use.<br>
<br>
Are you trying to do something like this?<br>
<br>
template <unsigned Dimension><br>
typedef itk::Image<float, Dimension>
FloatImageType<Dimension>;<br>
<br>
C11 allows this with a rather strange syntax.<br>
<br>
template <unsigned Dimension><br>
using FloatImageType = itk::Image<float, Dimension>;<br>
<br>
To make an instance of a three dimensional float image:<br>
FloatImageType<3> image;<br>
<br>
I did this to make a partially specialised template to create fixed
length arrays of length 4 to hold different types.<br>
<br>
template <typename TValueType><br>
using ParamVector = itk::FixedArray<TValueType, 4>;<br>
<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 13-10-29 09:42 AM, Jose Ignacio
Prieto wrote:<br>
</div>
<blockquote
cite="mid:CANkppu7B7yGHA=yr9yysu7xC0=A9RdQYns7kJwv2d_yP1iEzTQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,
<div>I have a object manager class that has to work with 3d and
4d itk images. Then I was planning to have an abstract obj
manager for the common functions and derived classes om3d and
om4d for the dimension specific functions. My problem is how
can I define an abstract typedef ImageType on base OM, then
overloading it like typedef itkImage(short, 3) ImageType on
om3d and typedef itkImage(short, 4) ImageType on om4d. That
way my methods would have the same signature. </div>
<div>Is this possible? Is it a wrong approach?</div>
<div><br>
</div>
<div>Thank you very much</div>
<div><br clear="all">
<div><br>
</div>
-- <br>
José Ignacio Prieto<br>
celular(nuevo): 94348182
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada
</pre>
</body>
</html>