Re: How to know if an object is still exist ?

Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Mon, 29 Mar 1999 14:56:24 +0200 (MET DST)


On Mon, 29 Mar 1999, Wei Xie wrote:

>
> Dear Rooter,
>
> Maybe the question is already exist in ROOT digest but I failed to
> find it:
>
> How to know if an object is exist or not ?
>

you can use: Bool_t is_alive = obj->Testbit(kNotDeleted);

however this is n o t 100 % save, since obj may point to any
meanwhile overwritten area in memory. If you dont use the
lower 24 bits of fBits otherwise you could make it quite save.

> One more question is :
>
> Is there a easy way to lookup ROOT digest if my question has
> already been answered or not, e.g. to find a my keyword is in the
> contant (not subject) of a e-mail ? Trying to go through every
> message is really not easy.
>

Cant help on this

Cheers
Otto

----------------------------------------------------------------------------
Otto Schaile Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany
FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE