Celeritas  0.5.0-56+6b053cd
Classes | Typedefs
RootUniquePtr.hh File Reference

Helpers to prevent ROOT from propagating to downstream code. More...

#include <memory>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::RootFileWritableDeleter
 Call TFile->Write() before deletion. More...
 
struct  celeritas::RootTreeAutoSaveDeleter
 Call TTree->AutoSave() before deletion in order to update gDirectory accordingly before writing the TTree. More...
 
struct  celeritas::RootExternDeleter< T >
 Custom deleter to avoid propagating any dependency-specific implementation downstream the code. More...
 

Typedefs

using celeritas::UPRootFileWritable = std::unique_ptr< TFile, RootFileWritableDeleter >
 
using celeritas::UPRootTreeWritable = std::unique_ptr< TTree, RootTreeAutoSaveDeleter >
 
template<class T >
using celeritas::UPExtern = std::unique_ptr< T, RootExternDeleter< T > >
 

Detailed Description

Helpers to prevent ROOT from propagating to downstream code.