#include <vfs_tree.h>
|
bool | DeleteTree (const VfsFile &file) |
| remove all files with a lower priority than file and do the same for all subdirectories recursively. More...
|
|
VfsDirectory::VfsDirectory |
( |
| ) |
|
- Returns
- address of existing or newly inserted file.
- Returns
- address of existing or newly inserted subdirectory.
void VfsDirectory::Clear |
( |
| ) |
|
empty file and subdirectory lists (e.g.
when rebuilding VFS). CAUTION: this invalidates all previously returned pointers.
void VfsDirectory::DeleteSubtree |
( |
const VfsFile & |
file | ) |
|
remove the given file or subdirectory according to the priority of the passed .DELETED file.
CAUTION: Invalidates all previously returned pointers of the file or subdirectory (and contents) if those have lower priority than file
.
bool VfsDirectory::DeleteTree |
( |
const VfsFile & |
file | ) |
|
|
private |
remove all files with a lower priority than file
and do the same for all subdirectories recursively.
- Returns
- true if the directory is empty afterwards
const VfsFiles& VfsDirectory::Files |
( |
| ) |
const |
|
inline |
- Returns
- file with the given name. (note: non-const to allow changes to the file)
- Returns
- subdirectory with the given name. (note: non-const to allow changes to the subdirectory)
void VfsDirectory::RemoveFile |
( |
const VfsPath & |
name | ) |
|
remove the given file from the virtual directory (no effect on the physical file).
no effect if the file does not exist.
void VfsDirectory::RequestRepopulate |
( |
| ) |
|
ensure the next ShouldPopulate returns true.
void VfsDirectory::SetAssociatedDirectory |
( |
const PRealDirectory & |
realDirectory | ) |
|
bool VfsDirectory::ShouldPopulate |
( |
| ) |
|
- Returns
- whether this directory should be populated from its AssociatedDirectory(). note that calling this is a promise to do so if true is returned – the flag is reset immediately.
volatile intptr_t VfsDirectory::m_shouldPopulate |
|
private |
The documentation for this class was generated from the following files: