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

Matt McCormick matt.mccormick at kitware.com
Thu Aug 15 21:23:42 EDT 2013


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/20130815/ae8d817b/attachment.htm>


More information about the Insight-users mailing list