Logo ROOT  
Reference Guide
ROOT::Experimental::Internal::RFileSharedPtrCtor Class Reference

Definition at line 46 of file RFile.cxx.

Public Member Functions

 RFileSharedPtrCtor (std::unique_ptr< RFileStorageInterface > &&storage)
 
- Public Member Functions inherited from ROOT::Experimental::RFile
 ~RFile ()
 Must not call Write() of all attached objects: some might not be needed to be written or writing might be aborted due to an exception; require explicit Write(). More...
 
void Close ()
 Flush() and make the file non-writable: close it. More...
 
void Flush ()
 Save all objects associated with this directory (including file header) to the storage medium. More...
 
template<class T >
std::unique_ptr< T > Read (std::string_view name)
 Read the object for a key. More...
 
void Write (std::string_view name)
 Write an object that is already lifetime managed by this RFileImplBase. More...
 
template<class T >
void Write (std::string_view name, const T &obj)
 Write an object that is not lifetime managed by this RFileImplBase. More...
 
template<class T >
void Write (std::string_view name, const T *obj)
 Write an object that is not lifetime managed by this RFileImplBase. More...
 
template<class T >
void Write (std::string_view name, std::shared_ptr< T > &&obj)
 Hand over lifetime management of an object to this RFileImplBase, and write it. More...
 
- Public Member Functions inherited from ROOT::Experimental::RDirectory
template<class T >
void Add (std::string_view name, const std::shared_ptr< T > &ptr)
 Add an existing object (rather a shared_ptr to it) to the RDirectory. More...
 
template<class T , class... ARGS>
std::shared_ptr< ToContentType_t< T > > Create (std::string_view name, ARGS &&... args)
 Create an object of type T (passing some arguments to its constructor). More...
 
Internal::RDirectoryEntry Find (std::string_view name) const
 Find the RDirectoryEntry associated to the name. More...
 
template<class T >
std::pair< Internal::RDirectoryEntry, EFindStatusFind (std::string_view name) const
 Find the RDirectoryEntry associated with the name. More...
 
template<class T >
std::shared_ptr< ToContentType_t< T > > Get (std::string_view name)
 Get the object for a key. More...
 
bool Remove (std::string_view name)
 Remove entry from RDirectory (if exists) More...
 

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RDirectory
enum class  EFindStatus { kValidValue , kValidValueBase , kKeyNameNotFound , kTypeMismatch }
 Status of the call to Find<T>(name). More...
 
- Static Public Member Functions inherited from ROOT::Experimental::RFile
static std::string GetCacheDir ()
 Get the directory used for cached reads. More...
 
static std::string SetCacheDir (std::string_view path)
 Set the new directory used for cached reads, returns the old directory. More...
 
static RFilePtr Open (std::string_view name, const Options_t &opts=Options_t())
 Open a file with name for reading. More...
 
static RFilePtr OpenForUpdate (std::string_view name, const Options_t &opts=Options_t())
 Open an existing file with name for reading and writing. More...
 
static RFilePtr Create (std::string_view name, const Options_t &opts=Options_t())
 Open a file with name for reading and writing. More...
 
static RFilePtr Recreate (std::string_view name, const Options_t &opts=Options_t())
 Open a file with name for reading and writing. More...
 
- Static Public Member Functions inherited from ROOT::Experimental::RDirectory
static RDirectoryHeap ()
 Dedicated, process-wide RDirectory. More...
 
Inheritance diagram for ROOT::Experimental::Internal::RFileSharedPtrCtor:
[legend]

Constructor & Destructor Documentation

◆ RFileSharedPtrCtor()

ROOT::Experimental::Internal::RFileSharedPtrCtor::RFileSharedPtrCtor ( std::unique_ptr< RFileStorageInterface > &&  storage)
inline

Definition at line 48 of file RFile.cxx.


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