<br><font size=2 face="sans-serif">+1 for </font>
<br><font size=2 face="sans-serif">4. </font><tt><font size=2>Make a new
vtkLocalPointer</font></tt>
<br>
<br><font size=2 face="sans-serif">Stephane<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>jeff.baumes@kitware.com</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : vtk-developers-bounces@vtk.org</font>
<p><font size=1 face="sans-serif">28/01/2010 16:16</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">will.schroeder@kitware.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">vtk-developers@vtk.org, david.gobbi@gmail.com,
sebastien.barre@kitware.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [vtk-developers] Smart pointer declaration
macro?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>On Thu, Jan 28, 2010 at 10:00 AM, Will Schroeder<br>
<will.schroeder@kitware.com> wrote:<br>
> Jeff can you summarize the proposed solutions (assuming we think we've<br>
> covered the bases) and let's take a vote on this. I want to keep my
inbox<br>
> clear :-(<br>
<br>
1. Keep things the way they are:<br>
vtkSmartPointer<vtkClass> c = vtkSmartPointer<vtkClass>::New();<br>
<br>
2. Add new constructor to vtkSmartPointer that takes a bool and if<br>
true creates an instance of the object. Code would look like:<br>
vtkSmartPointer<vtkClass> c(true);<br>
<br>
3. Create typedefs for vtkSmartPointer<vtkClass>:<br>
vtkClassSP c = vtkClassSP::New();<br>
<br>
4. Make a new vtkLocalPointer type that is the same as vtkSmartPointer<br>
but always creates an instance of the object.<br>
vtkLocalPointer<vtkClass> c;<br>
<br>
Unfortunately our inboxes won't be clear until everyone responds with<br>
a vote (I'd maybe give it till 12pm eastern time). We can take it to<br>
the ARB if there is no clear consensus.<br>
<br>
Jeff<br>
<br>
><br>
><br>
> On Thu, Jan 28, 2010 at 9:58 AM, Sebastien BARRE<br>
> <sebastien.barre@kitware.com> wrote:<br>
>><br>
>> +1, especially as a foreigner. If you don't speak/read English
that well,<br>
>> abbreviations are not all that obvious and bring one more mental
gymnastic<br>
>> to the table, slowing down the whole process of remembering the
right<br>
>> name...<br>
>><br>
>> At 1/28/2010 08:50 AM, Will Schroeder wrote:<br>
>><br>
>> Sorry, I don't like the abbreviation, I love change :-)<br>
>><br>
>><br>
>> On Thu, Jan 28, 2010 at 8:45 AM, Jeff Baumes <jeff.baumes@kitware.com
><br>
>> wrote:<br>
>> On Wed, Jan 27, 2010 at 10:58 AM, Will Schroeder<br>
>> < will.schroeder@kitware.com> wrote:<br>
>> > VTK has a verbose, self documenting style (for better or
worse). I'd<br>
>> > like to<br>
>> > stick with it if possible.<br>
>><br>
>> Will,<br>
>><br>
>> Are you suggesting no change? Or just that you don't like the<br>
>> abbreviated typedefs like vtkRendererSP?<br>
>><br>
>> Jeff<br>
><br>
><br>
><br>
> --<br>
> William J. Schroeder, PhD<br>
> Kitware, Inc.<br>
> 28 Corporate Drive<br>
> Clifton Park, NY 12065<br>
> will.schroeder@kitware.com<br>
> http://www.kitware.com<br>
> (518) 881-4902<br>
><br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.vtk.org/mailman/listinfo/vtk-developers<br>
<br>
</font></tt>
<br><pre>


Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre>