Hello Carsten,
no I do not reference a node from multiple nodes in the graph. But I store 
RefPtrs to nodes in my own source. Therefore I was interested if I still hold a 
reference to some node somewhere in my source, just for debug purposes.

Thanks
 Christoph

-------- Original-Nachricht --------
> Datum: Tue, 01 Jul 2008 10:01:13 -0500
> Von: Carsten Neumann <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [Opensg-users] Query reference count of a node

>       Hello Christoph,
> 
> Christoph John wrote:
> > Hello list,
> > I have a geometry node and like to query the reference count of this
> node as I want to ensure that i do not have pending references when I delete
> it from the graph. 
> 
> maybe I misunderstand, but this sounds a bit as if you are using the 
> reference count as an indicator for something else ?
> Do you add the Geometry core to multiple nodes and now want to find out 
> if it is used in more than one place ? For that it would be better to 
> look at the size of the parents field of the core:
> 
> if(geo->getMFParents()->size() > 1)
>       // geo is a shared core
> 
> > How can I query the reference count?
> 
> GeometryPtr geo;
> geo.getRefCount(); // note the "." instead of "->"
> 
>       Hope it helps,
>               Carsten
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users

-- 
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to