<div dir="ltr"><div><div>Hi zhq,<br><br></div>It has the same effect -- it just acts as a proxy to the class that it is wrapping.<br><br></div>HTH,<br>Matt<br><br>PS. Please reply-to-all so messages remain on the list.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 7:51 AM, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial">Hello , Matt<div> but the Register() method which included in SmartPoint class , what's this function's effect ?</div><div><span class="HOEnZb"><font color="#888888">zhq</font></span><div>
<div class="h5"><br><br><br><br><br><div></div><div></div><br>At 2013-08-16 09:23:42,"Matt McCormick" <<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>> wrote:<br>
<blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr">Hi zhq,<div><br></div><div>This is calling the Register() method on itk::LightObject to increase its reference count:</div>
<div><br></div><div> <a href="http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1LightObject.html</a></div>
<div><br></div><div>HTH,</div><div>Matt</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 15, 2013 at 9:12 PM, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial">Hello , All <div> In the itkSmartPointer.h , the SmartPointer class has a method , Register() ,shown as follow </div>
<div><div> void Register()</div><div> {</div><div> if ( m_Pointer ) { m_Pointer->Register(); }</div><div> }</div></div><div>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 ?</div>
<span><font color="#888888"><div>zhq</div></font></span></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div></div></blockquote></div><br></div>