[Insight-users] I have some problem about the ITK code , the Register() method in itkSmartPointer.h

Matt McCormick matt.mccormick at kitware.com
Fri Aug 16 11:42:20 EDT 2013


Hi zhq,

It has the same effect -- it just acts as a proxy to the class that it is
wrapping.

HTH,
Matt

PS.  Please reply-to-all so messages remain on the list.


On Fri, Aug 16, 2013 at 7:51 AM, zhq <15891495523 at 126.com> wrote:

> Hello , Matt
>        but the Register() method which included in SmartPoint class ,
> what's this function's effect ?
> zhq
>
>
>
>
>
>
> At 2013-08-16 09:23:42,"Matt McCormick" <matt.mccormick at kitware.com>
> wrote:
>
> Hi zhq,
>
> This is calling the Register() method on itk::LightObject to increase its
> reference count:
>
>   http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html
>
> HTH,
> Matt
>
>
> On Thu, Aug 15, 2013 at 9:12 PM, zhq <15891495523 at 126.com> wrote:
>
>> Hello , All
>>        In the itkSmartPointer.h , the SmartPointer class has a method ,
>> Register() ,shown as follow
>>   void Register()
>>   {
>>     if ( m_Pointer ) { m_Pointer->Register(); }
>>   }
>> the m_Pointer is a member variable of SmartPoint  ,  but what's the
>> effect of the method ? I think the method just call a Register() , and
>> don't do something meaningfully ?
>> zhq
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130816/c7039f57/attachment.htm>


More information about the Insight-users mailing list