Re: UniqueID

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 25 Nov 2008 12:31:58 +0100


The fUniqueID member is set automatically by TRef or TRefArray when a TRef object points to a TObject*. If your application does not use TRef, you can set/use this member.

Rene Brun

Alberto Pulvirenti wrote:
> Dear all,
>
> I know that whatever class inheriting from TObject takes this data
> member.
> Since I have developed a class inheriting from TObject and requiring
> that I identify each instance uniquely, I simply thought to use some
> kind of static counter variable which increments indefinitely and
> assign it as "unique" ID of the class instance.
>
> Can I use this fUniqueID for this purpose, or it is used by some
> Dictionary or other "hidden" ROOT stuff for some reserved purposes? In
> other words, this data member is placed here to be used like this by a
> developer, or it is needed by ROOT for some purpose?
>
> Thanks, best regards
>
> Alberto
>
>
Received on Tue Nov 25 2008 - 12:26:41 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 25 2008 - 17:50:01 CET