Re: TMapFile:: what is shadow file?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Mar 04 1999 - 19:50:34 MET


Hi Valeriy,

  when you create a TMapFile object via TMapFile::Create() actually
two TMapFile objects are created. One (the shadow, or hidden) map file
object is created on the normal heap and another one is allocated in
the mapped file itself. The latter one is returned by Create() in case
the object is opended for writing. Both objects share the same file
(so only one file is opened) and both are deleted when a TMapFile is
closed.

Cheers, Fons.


Valeriy Onuchin wrote:
> 
> Hi Rooters!
> What is shadow file in TMapFile class?
> 
> http://root.cern.ch/root/html/src/TMapFile.cxx.html#TMapFile:FindShadowMapFile
> 
>  Best regards,                          Valery

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910
URL:    http://root.cern.ch/~rdm/



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET