Halide 19.0.0
Halide compiler and libraries
|
A simple utility class that creates a temporary file in its ctor and deletes that file in its dtor; this is useful for temporary files that you want to ensure are deleted when exiting a certain scope. More...
#include <Util.h>
Public Member Functions | |
TemporaryFile (const std::string &prefix, const std::string &suffix) | |
const std::string & | pathname () const |
~TemporaryFile () | |
void | detach () |
TemporaryFile (const TemporaryFile &)=delete | |
TemporaryFile & | operator= (const TemporaryFile &)=delete |
TemporaryFile (TemporaryFile &&)=delete | |
TemporaryFile & | operator= (TemporaryFile &&)=delete |
A simple utility class that creates a temporary file in its ctor and deletes that file in its dtor; this is useful for temporary files that you want to ensure are deleted when exiting a certain scope.
Since this is essentially just an RAII wrapper around file_make_temp() and file_unlink(), it has the same failure modes (i.e.: assertion upon error).
|
inline |
|
inline |
Definition at line 340 of file Util.h.
References Halide::Internal::file_unlink().
|
delete |
|
delete |
|
inline |
|
delete |
|
delete |