Marcus Roth wrote:
> Marcus Lindblom wrote:
>> Hi Toni,
>>
>>
> ...
>> For NodePtr getChild(index), it's pretty obvious that you get a null ptr
>> if the index is out of range, since that is common engineering practise.
>> (If getChild returned a reference, then you'd need some documentation
>> saying if an exception gets thrown or whatever.)
>>
> inline NodePtr Node::getChild(UInt32 childIndex)
> {
> OSG_ASSERT((childIndex < _mfChildren.size()));
> return _mfChildren[childIndex];
> }
>
> unfortunately it is NOT so obvious. ;-)
doh. :)
/Marcus
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users