#include <rm_dir_tree.h>
Public Member Functions | |
virtual | ~dir_functor_rm_dir_tree () |
dir_functor_rm_dir_tree () | |
void | operator() (msg_t msg, const nstring &path, const struct stat &st) |
Private Member Functions | |
dir_functor_rm_dir_tree (const dir_functor_rm_dir_tree &) | |
dir_functor_rm_dir_tree & | operator= (const dir_functor_rm_dir_tree &) |
This class's () operator is the function that actually deletes things out of the directory tree as it is walked. Note that the directory should be deleted last, after all contents have been nuked.
Some sleight-of-hand is involved here, as this function pushes extra stuff onto the lists of things to be deleted, rather than really doing it itself.
Definition at line 39 of file rm_dir_tree.h.
virtual dir_functor_rm_dir_tree::~dir_functor_rm_dir_tree | ( | ) | [virtual] |
The destructor.
dir_functor_rm_dir_tree::dir_functor_rm_dir_tree | ( | ) |
The default constructor.
dir_functor_rm_dir_tree::dir_functor_rm_dir_tree | ( | const dir_functor_rm_dir_tree & | ) | [private] |
The copy constructor. Do not use.
void dir_functor_rm_dir_tree::operator() | ( | msg_t | msg, | |
const nstring & | path, | |||
const struct stat & | st | |||
) | [virtual] |
The () operator is used to implement the function of the functor.
msg | The msg argument is used to say what s to be done. | |
path | The path to the file is question. | |
st | The file information about the path. |
Implements dir_functor.
dir_functor_rm_dir_tree& dir_functor_rm_dir_tree::operator= | ( | const dir_functor_rm_dir_tree & | ) | [private] |
The assignment operator. Do not use.