ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::io::TempDir Class Reference

RAII temporary directory with automatic cleanup. More...

#include <TempFile.hpp>

Public Member Functions

 TempDir ()
 
 TempDir (TempDir const &)=delete
 
 ~TempDir ()
 
std::string file (std::string const &name) const
 Return a path inside this directory (file need not exist yet).
 
TempDiroperator= (TempDir const &)=delete
 
std::string const & path () const
 

Detailed Description

RAII temporary directory with automatic cleanup.

Creates a unique temporary directory and recursively removes it in the destructor.

Constructor & Destructor Documentation

◆ TempDir() [1/2]

ppforest2::io::TempDir::TempDir ( )
inline

◆ ~TempDir()

ppforest2::io::TempDir::~TempDir ( )
inline

◆ TempDir() [2/2]

ppforest2::io::TempDir::TempDir ( TempDir const & )
delete

Member Function Documentation

◆ file()

std::string ppforest2::io::TempDir::file ( std::string const & name) const
inline

Return a path inside this directory (file need not exist yet).

◆ operator=()

TempDir & ppforest2::io::TempDir::operator= ( TempDir const & )
delete

◆ path()

std::string const & ppforest2::io::TempDir::path ( ) const
inline

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