ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::TFilePtr Class Reference

Points to an object that stores or reads objects in ROOT's binary format.

Definition at line 62 of file TFile.h.

Public Member Functions

Internal::TFileImplBaseoperator-> ()
 Dereference the file pointer, giving access to the TFileImplBase object. More...
 
const Internal::TFileImplBaseoperator-> () const
 Dereference the file pointer, giving access to the TFileImplBase object. More...
 
 operator bool () const
 Check the validity of the file pointer. More...
 

Static Public Member Functions

Generator functions
static TFilePtr OpenForRead (std::string_view name)
 Open a file with name for reading. More...
 
static TFilePtr OpenForUpdate (std::string_view name)
 Open an existing file with name for reading and writing. More...
 
static TFilePtr Create (std::string_view name)
 Open a file with name for reading and writing. More...
 
static TFilePtr Recreate (std::string_view name)
 Open a file with name for reading and writing. More...
 

Private Member Functions

 TFilePtr (TCoopPtr< Internal::TFileImplBase >)
 Constructed by. More...
 

Private Attributes

TCoopPtr< Internal::TFileImplBasefImpl
 

#include <ROOT/TFile.h>

+ Collaboration diagram for ROOT::TFilePtr:

Constructor & Destructor Documentation

ROOT::TFilePtr::TFilePtr ( TCoopPtr< Internal::TFileImplBase impl)
private

Constructed by.

Definition at line 68 of file TFile.cxx.

Member Function Documentation

ROOT::TFilePtr ROOT::TFilePtr::Create ( std::string_view  name)
static

Open a file with name for reading and writing.

Fail (return an invalid TFilePtr) if a file with this name already exists.

Definition at line 79 of file TFile.cxx.

ROOT::TFilePtr ROOT::TFilePtr::OpenForRead ( std::string_view  name)
static

Open a file with name for reading.

Definition at line 75 of file TFile.cxx.

ROOT::TFilePtr ROOT::TFilePtr::OpenForUpdate ( std::string_view  name)
static

Open an existing file with name for reading and writing.

If a file with that name does not exist, an invalid TFilePtr will be returned.

Definition at line 87 of file TFile.cxx.

ROOT::TFilePtr::operator bool ( ) const
inline

Check the validity of the file pointer.

Definition at line 94 of file TFile.h.

Internal::TFileImplBase* ROOT::TFilePtr::operator-> ( )
inline

Dereference the file pointer, giving access to the TFileImplBase object.

Definition at line 87 of file TFile.h.

const Internal::TFileImplBase* ROOT::TFilePtr::operator-> ( ) const
inline

Dereference the file pointer, giving access to the TFileImplBase object.

const overload.

Definition at line 91 of file TFile.h.

ROOT::TFilePtr ROOT::TFilePtr::Recreate ( std::string_view  name)
static

Open a file with name for reading and writing.

If a file with this name already exists, delete it and create a new one. Else simply create a new file.

Definition at line 83 of file TFile.cxx.

Member Data Documentation

TCoopPtr<Internal::TFileImplBase> ROOT::TFilePtr::fImpl
private

Definition at line 63 of file TFile.h.

Referenced by operator bool().


The documentation for this class was generated from the following files: