#include <TMapFile.h>
Inheritance diagram for TMapFile:
Definition at line 54 of file TMapFile.h.
anonymous enum |
Definition at line 104 of file TMapFile.h.
anonymous enum |
Definition at line 104 of file TMapFile.h.
TMapFile::TMapFile | ( | ) | [protected] |
Referenced by Create(), and TMapFile().
TMapFile::TMapFile | ( | const char * | name, | |
const char * | title, | |||
Option_t * | option, | |||
Int_t | size, | |||
TMapFile *& | newMapFile | |||
) | [protected] |
Definition at line 192 of file TMapFile.cxx.
References TSystem::AccessPathName(), TSeqCollection::AddFirst(), TSeqCollection::AddLast(), cleanup(), close, TString::CompareTo(), CreateSemaphore(), TObject::Error(), TSystem::ExpandPathName(), fBaseAddr, fBrowseList, fDirectory, fFd, fFirst, fGetting, fhSemaphore, fMmallocDesc, fName, fOffset, fOption, fSemaphore, fSize, fSum2Buffer, fSumBuffer, fTitle, fVersion, fWritable, fWritten, TROOT::GetListOfMappedFiles(), TROOT::GetVersionInt(), gMmallocDesc, gROOT, gROOTMutex, gSystem, HANDLE, InitDirectory(), INVALID_HANDLE_VALUE, kFALSE, kFileExists, TString::kIgnoreCase, kReadPermission, kTRUE, kWritePermission, TObject::MakeZombie(), MapToAddress(), mmalloc_attach(), mmalloc_detach(), mmalloc_getkey(), mmalloc_setkey(), NULL, open, R__LOCKGUARD2, read, StrDup(), TObject::SysError(), TMapFile(), TSystem::Unlink(), update(), and TObject::Warning().
Definition at line 476 of file TMapFile.cxx.
References CreateSemaphore(), fBaseAddr, fBrowseList, fDirectory, fFd, fFirst, fGetting, fhSemaphore, fLast, fMmallocDesc, fName, fOffset, fOption, fSemaphore, fSize, fSum2Buffer, fSumBuffer, fTitle, fVersion, fWritable, fWritten, and StrDup().
TMapFile::~TMapFile | ( | ) | [virtual] |
Definition at line 509 of file TMapFile.cxx.
References Close(), TList::Delete(), fBrowseList, fDirectory, fgMmallocDesc, fMmallocDesc, fVersion, fWritable, gDirectory, gROOT, and TObject::SetDtorOnly().
TMapFile::TMapFile | ( | ) | [protected] |
TMapFile::TMapFile | ( | const char * | name, | |
const char * | title, | |||
Option_t * | option, | |||
Int_t | size, | |||
TMapFile *& | newMapFile | |||
) | [protected] |
virtual TMapFile::~TMapFile | ( | ) | [virtual] |
void TMapFile::operator= | ( | const TMapFile & | rhs | ) | [protected] |
TMapFile * TMapFile::FindShadowMapFile | ( | ) | [protected] |
Definition at line 950 of file TMapFile.cxx.
References fBaseAddr, fSize, fVersion, TROOT::GetListOfMappedFiles(), TObjLink::GetObject(), gROOT, gROOTMutex, TObjLink::Prev(), and R__LOCKGUARD2.
Referenced by Close().
void TMapFile::InitDirectory | ( | ) | [protected] |
Definition at line 537 of file TMapFile.cxx.
References TDirectory::Build(), fDirectory, gDirectory, GetName(), GetTitle(), TDirectory::SetMother(), TDirectory::SetName(), and TNamed::SetTitle().
Referenced by TMapFile().
Definition at line 629 of file TMapFile.cxx.
References AcquireSemaphore(), fFirst, fLast, fMmallocDesc, TMapRec::fNext, fWritable, and ReleaseSemaphore().
Definition at line 667 of file TMapFile.cxx.
References AcquireSemaphore(), fFirst, fLast, fMmallocDesc, TMapRec::fNext, fWritable, and ReleaseSemaphore().
void TMapFile::SumBuffer | ( | Int_t | bufsize | ) | [protected] |
Definition at line 1054 of file TMapFile.cxx.
References fSum2Buffer, fSumBuffer, and fWritten.
Referenced by Update().
Int_t TMapFile::GetBestBuffer | ( | ) | [protected] |
Definition at line 1064 of file TMapFile.cxx.
References TMath::Abs(), fSum2Buffer, fSumBuffer, fWritten, TBuffer::kMinimalSize, and sqrt().
Referenced by Update().
void TMapFile::CreateSemaphore | ( | Int_t | pid = 0 |
) | [protected] |
Definition at line 775 of file TMapFile.cxx.
References buffer, FALSE, INVALID_HANDLE_VALUE, and NULL.
Referenced by TMapFile().
Int_t TMapFile::AcquireSemaphore | ( | ) | [protected] |
Definition at line 830 of file TMapFile.cxx.
References TObject::Error(), fhSemaphore, fMmallocDesc, fSemaphore, fWritable, TSystem::GetErrno(), HANDLE, INVALID_HANDLE_VALUE, mmalloc_update_mapping(), and TSystem::ResetErrno().
Referenced by Add(), Browse(), Get(), Remove(), RemoveAll(), and Update().
Int_t TMapFile::ReleaseSemaphore | ( | ) | [protected] |
Definition at line 875 of file TMapFile.cxx.
References fhSemaphore, fSemaphore, TSystem::GetErrno(), HANDLE, and INVALID_HANDLE_VALUE.
Referenced by Add(), Browse(), Get(), Remove(), RemoveAll(), and Update().
void TMapFile::DeleteSemaphore | ( | ) | [protected] |
Definition at line 805 of file TMapFile.cxx.
References fhSemaphore, fSemaphore, HANDLE, and INVALID_HANDLE_VALUE.
Referenced by Close().
void * TMapFile::MapToAddress | ( | ) | [static, protected] |
Definition at line 1131 of file TMapFile.cxx.
References fgMapAddress, and TStorage::HasCustomNewDelete().
Referenced by TMapFile().
void TMapFile::operator delete | ( | void * | vp | ) |
Reimplemented from TObject.
Definition at line 1163 of file TMapFile.cxx.
References fgMmallocDesc, mmalloc_detach(), and TObject::operator delete().
Referenced by G__G__IO_234_0_16().
void TMapFile::Browse | ( | TBrowser * | b | ) | [virtual] |
Reimplemented from TObject.
Definition at line 992 of file TMapFile.cxx.
References AcquireSemaphore(), TList::Add(), b, fBrowseList, TList::FindObject(), fMmallocDesc, fOffset, TMapRec::GetClassName(), GetFirst(), TMapRec::GetName(), TNamed::GetName(), TMapRec::GetNext(), OrgAddress(), and ReleaseSemaphore().
void TMapFile::Close | ( | Option_t * | option = "" |
) |
Definition at line 901 of file TMapFile.cxx.
References close, DeleteSemaphore(), TObject::Error(), fFd, FindShadowMapFile(), fMmallocDesc, fWritable, TROOT::GetListOfMappedFiles(), gROOT, gROOTMutex, HANDLE, kFALSE, mmalloc_detach(), R__LOCKGUARD2, and TCollection::Remove().
Referenced by ~TMapFile().
void* TMapFile::GetBaseAddr | ( | ) | const [inline] |
void * TMapFile::GetBreakval | ( | ) | const [inline] |
Definition at line 180 of file TMapFile.h.
References fMmallocDesc.
Referenced by Print(), and WhichMapFile().
TDirectory* TMapFile::GetDirectory | ( | ) | const [inline] |
Int_t TMapFile::GetFd | ( | ) | const [inline] |
void* TMapFile::GetMmallocDesc | ( | ) | const [inline] |
Definition at line 116 of file TMapFile.h.
References fMmallocDesc.
Referenced by operator delete().
const char* TMapFile::GetName | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 117 of file TMapFile.h.
References fName.
Referenced by InitDirectory().
Int_t TMapFile::GetSize | ( | ) | const [inline] |
const char* TMapFile::GetOption | ( | ) | const [inline, virtual] |
const char* TMapFile::GetTitle | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 120 of file TMapFile.h.
References fTitle.
Referenced by InitDirectory().
TMapRec* TMapFile::GetFirst | ( | ) | const [inline] |
TMapRec* TMapFile::GetLast | ( | ) | const [inline] |
Bool_t TMapFile::IsFolder | ( | ) | const [virtual] |
Reimplemented from TObject.
Definition at line 983 of file TMapFile.cxx.
References fMmallocDesc, fVersion, kFALSE, and kTRUE.
Bool_t TMapFile::IsWritable | ( | ) | const [inline] |
void* TMapFile::OrgAddress | ( | void * | addr | ) | const [inline] |
void TMapFile::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
Definition at line 966 of file TMapFile.cxx.
References fBaseAddr, fMmallocDesc, fName, fOption, fTitle, GetBreakval(), and Printf().
void TMapFile::ls | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
Definition at line 1029 of file TMapFile.cxx.
References TMapRec::fBufSize, fFirst, fMmallocDesc, fOffset, TMapRec::GetClassName(), GetFirst(), TMapRec::GetName(), TMapRec::GetNext(), OrgAddress(), and Printf().
Bool_t TMapFile::cd | ( | const char * | path = 0 |
) |
void TMapFile::Add | ( | const TObject * | obj, | |
const char * | name = "" | |||
) |
Definition at line 551 of file TMapFile.cxx.
References AcquireSemaphore(), fFirst, fGetting, fLast, fMmallocDesc, TMapRec::fNext, fWritable, gMmallocDesc, kFALSE, kTRUE, n, ReleaseSemaphore(), Remove(), and TMapRec.
void TMapFile::Update | ( | TObject * | obj = 0 |
) |
Definition at line 591 of file TMapFile.cxx.
References AcquireSemaphore(), b, TObject::ClassName(), TMapRec::fBuffer, TMapRec::fBufSize, TMapRec::fClassName, fFirst, fMmallocDesc, TMapRec::fNext, TMapRec::fObject, fWritable, GetBestBuffer(), gMmallocDesc, kFALSE, kTRUE, TBuffer::kWrite, ReleaseSemaphore(), StrDup(), and SumBuffer().
TObject* TMapFile::Remove | ( | const char * | name | ) | [inline] |
void TMapFile::RemoveAll | ( | ) |
Definition at line 705 of file TMapFile.cxx.
References AcquireSemaphore(), fFirst, fLast, fMmallocDesc, TMapRec::fNext, fWritable, ReleaseSemaphore(), and t.
Definition at line 725 of file TMapFile.cxx.
References AcquireSemaphore(), b, TObject::Error(), TMapRec::fBufSize, fGetting, fMmallocDesc, fOffset, TMapRec::GetBuffer(), TClass::GetClass(), TMapRec::GetClassName(), GetFirst(), TMapRec::GetName(), TMapRec::GetNext(), TBuffer::kRead, TClass::New(), OrgAddress(), and ReleaseSemaphore().
Referenced by TKeyMapFile::Browse().
TMapFile * TMapFile::Create | ( | const char * | name, | |
Option_t * | option = "READ" , |
|||
Int_t | size = kDefaultMapSize , |
|||
const char * | title = "" | |||
) | [static] |
Definition at line 1080 of file TMapFile.cxx.
References TMapFile().
Referenced by G__G__IO_234_0_42(), and G__setup_memfuncTMapFile().
TMapFile * TMapFile::WhichMapFile | ( | void * | addr | ) | [inline, static] |
Definition at line 190 of file TMapFile.h.
References fBaseAddr, fOffset, GetBreakval(), TROOT::GetListOfMappedFiles(), TObjLink::GetObject(), gROOT, and TObjLink::Prev().
Referenced by G__G__IO_234_0_43(), G__setup_memfuncTMapFile(), and operator delete().
void TMapFile::SetMapAddress | ( | Long_t | addr | ) | [static] |
Definition at line 1099 of file TMapFile.cxx.
References fgMapAddress.
Referenced by G__G__IO_234_0_44(), and G__setup_memfuncTMapFile().
void TMapFile::operator= | ( | const TMapFile & | rhs | ) | [protected] |
TMapFile* TMapFile::FindShadowMapFile | ( | ) | [protected] |
void TMapFile::InitDirectory | ( | ) | [protected] |
void TMapFile::SumBuffer | ( | Int_t | bufsize | ) | [protected] |
Int_t TMapFile::GetBestBuffer | ( | ) | [protected] |
void TMapFile::CreateSemaphore | ( | Int_t | pid = 0 |
) | [protected] |
Int_t TMapFile::AcquireSemaphore | ( | ) | [protected] |
Int_t TMapFile::ReleaseSemaphore | ( | ) | [protected] |
void TMapFile::DeleteSemaphore | ( | ) | [protected] |
static void* TMapFile::MapToAddress | ( | ) | [static, protected] |
void TMapFile::operator delete | ( | void * | vp | ) |
Reimplemented from TObject.
void TMapFile::Close | ( | Option_t * | option = "" |
) |
void* TMapFile::GetBaseAddr | ( | ) | const [inline] |
void* TMapFile::GetBreakval | ( | ) | const |
TDirectory* TMapFile::GetDirectory | ( | ) | const [inline] |
Int_t TMapFile::GetFd | ( | ) | const [inline] |
void* TMapFile::GetMmallocDesc | ( | ) | const [inline] |
const char* TMapFile::GetName | ( | ) | const [inline, virtual] |
Int_t TMapFile::GetSize | ( | ) | const [inline] |
const char* TMapFile::GetOption | ( | ) | const [inline, virtual] |
const char* TMapFile::GetTitle | ( | ) | const [inline, virtual] |
TMapRec* TMapFile::GetFirst | ( | ) | const [inline] |
TMapRec* TMapFile::GetLast | ( | ) | const [inline] |
Bool_t TMapFile::IsWritable | ( | ) | const [inline] |
void* TMapFile::OrgAddress | ( | void * | addr | ) | const [inline] |
Bool_t TMapFile::cd | ( | const char * | path = 0 |
) |
void TMapFile::Add | ( | const TObject * | obj, | |
const char * | name = "" | |||
) |
void TMapFile::Update | ( | TObject * | obj = 0 |
) |
TObject* TMapFile::Remove | ( | const char * | name | ) | [inline] |
void TMapFile::RemoveAll | ( | ) |
static TMapFile* TMapFile::Create | ( | const char * | name, | |
Option_t * | option = "READ" , |
|||
Int_t | size = kDefaultMapSize , |
|||
const char * | title = "" | |||
) | [static] |
static TMapFile* TMapFile::WhichMapFile | ( | void * | addr | ) | [static] |
static void TMapFile::SetMapAddress | ( | Long_t | addr | ) | [static] |
TMapRec [friend] |
Int_t TMapFile::fFd [private] |
Int_t TMapFile::fVersion [private] |
Definition at line 60 of file TMapFile.h.
Referenced by FindShadowMapFile(), IsFolder(), TMapFile(), and ~TMapFile().
char* TMapFile::fName [private] |
char* TMapFile::fTitle [private] |
char* TMapFile::fOption [private] |
void* TMapFile::fMmallocDesc [private] |
Definition at line 64 of file TMapFile.h.
Referenced by AcquireSemaphore(), Add(), Browse(), Close(), Get(), GetBreakval(), GetMmallocDesc(), IsFolder(), ls(), Print(), Remove(), RemoveAll(), TMapFile(), Update(), and ~TMapFile().
ULong_t TMapFile::fBaseAddr [private] |
Definition at line 65 of file TMapFile.h.
Referenced by FindShadowMapFile(), GetBaseAddr(), Print(), TMapFile(), and WhichMapFile().
Int_t TMapFile::fSize [private] |
Definition at line 66 of file TMapFile.h.
Referenced by FindShadowMapFile(), GetSize(), and TMapFile().
TMapRec* TMapFile::fFirst [private] |
Definition at line 67 of file TMapFile.h.
Referenced by Add(), GetFirst(), ls(), Remove(), RemoveAll(), TMapFile(), and Update().
TMapRec* TMapFile::fLast [private] |
Definition at line 68 of file TMapFile.h.
Referenced by Add(), GetLast(), Remove(), RemoveAll(), and TMapFile().
Long_t TMapFile::fOffset [private] |
Definition at line 69 of file TMapFile.h.
Referenced by Browse(), Get(), GetFirst(), GetLast(), ls(), OrgAddress(), TMapFile(), and WhichMapFile().
TDirectory* TMapFile::fDirectory [private] |
Definition at line 70 of file TMapFile.h.
Referenced by cd(), GetDirectory(), InitDirectory(), TMapFile(), and ~TMapFile().
TList* TMapFile::fBrowseList [private] |
Bool_t TMapFile::fWritable [private] |
Definition at line 72 of file TMapFile.h.
Referenced by AcquireSemaphore(), Add(), Close(), IsWritable(), Remove(), RemoveAll(), TMapFile(), Update(), and ~TMapFile().
Int_t TMapFile::fSemaphore [private] |
Definition at line 73 of file TMapFile.h.
Referenced by AcquireSemaphore(), DeleteSemaphore(), ReleaseSemaphore(), and TMapFile().
ULong_t TMapFile::fhSemaphore [private] |
Definition at line 74 of file TMapFile.h.
Referenced by AcquireSemaphore(), DeleteSemaphore(), ReleaseSemaphore(), and TMapFile().
TObject* TMapFile::fGetting [private] |
Int_t TMapFile::fWritten [private] |
Definition at line 76 of file TMapFile.h.
Referenced by GetBestBuffer(), SumBuffer(), and TMapFile().
Double_t TMapFile::fSumBuffer [private] |
Definition at line 77 of file TMapFile.h.
Referenced by GetBestBuffer(), SumBuffer(), and TMapFile().
Double_t TMapFile::fSum2Buffer [private] |
Definition at line 78 of file TMapFile.h.
Referenced by GetBestBuffer(), SumBuffer(), and TMapFile().
Long_t TMapFile::fgMapAddress [static, private] |
void * TMapFile::fgMmallocDesc [static, private] |
char* TMapFile::fName [private] |
Definition at line 61 of file TMapFile.h.
char* TMapFile::fTitle [private] |
Definition at line 62 of file TMapFile.h.
char* TMapFile::fOption [private] |
Definition at line 63 of file TMapFile.h.
void* TMapFile::fMmallocDesc [private] |
Definition at line 64 of file TMapFile.h.
TMapRec* TMapFile::fFirst [private] |
Definition at line 67 of file TMapFile.h.
TMapRec* TMapFile::fLast [private] |
Definition at line 68 of file TMapFile.h.
TDirectory* TMapFile::fDirectory [private] |
Definition at line 70 of file TMapFile.h.
TList* TMapFile::fBrowseList [private] |
Definition at line 71 of file TMapFile.h.
TObject* TMapFile::fGetting [private] |
Definition at line 75 of file TMapFile.h.
void* TMapFile::fgMmallocDesc [static, private] |
Definition at line 81 of file TMapFile.h.