Pyrogenesis
13997
|
#include <vfs_tree.h>
Public Types | |
typedef std::map< VfsPath, VfsFile > | VfsFiles |
typedef std::map< VfsPath, VfsDirectory > | VfsSubdirectories |
Public Member Functions | |
VfsDirectory () | |
VfsFile * | AddFile (const VfsFile &file) |
VfsDirectory * | AddSubdirectory (const VfsPath &name) |
void | RemoveFile (const VfsPath &name) |
remove the given file from the virtual directory (no effect on the physical file). More... | |
VfsFile * | GetFile (const VfsPath &name) |
VfsDirectory * | GetSubdirectory (const VfsPath &name) |
const VfsFiles & | Files () const |
const VfsSubdirectories & | Subdirectories () const |
void | SetAssociatedDirectory (const PRealDirectory &realDirectory) |
side effect: the next ShouldPopulate() will return true. More... | |
const PRealDirectory & | AssociatedDirectory () const |
bool | ShouldPopulate () |
void | RequestRepopulate () |
ensure the next ShouldPopulate returns true. More... | |
void | Clear () |
empty file and subdirectory lists (e.g. More... | |
Private Attributes | |
VfsFiles | m_files |
VfsSubdirectories | m_subdirectories |
PRealDirectory | m_realDirectory |
volatile intptr_t | m_shouldPopulate |
Definition at line 78 of file vfs_tree.h.
typedef std::map<VfsPath, VfsFile> VfsDirectory::VfsFiles |
Definition at line 81 of file vfs_tree.h.
typedef std::map<VfsPath, VfsDirectory> VfsDirectory::VfsSubdirectories |
Definition at line 82 of file vfs_tree.h.
VfsDirectory::VfsDirectory | ( | ) |
Definition at line 47 of file vfs_tree.cpp.
Definition at line 81 of file vfs_tree.cpp.
VfsDirectory * VfsDirectory::AddSubdirectory | ( | const VfsPath & | name | ) |
Definition at line 103 of file vfs_tree.cpp.
|
inline |
Definition at line 131 of file vfs_tree.h.
void VfsDirectory::Clear | ( | ) |
empty file and subdirectory lists (e.g.
when rebuilding VFS). CAUTION: this invalidates all previously returned pointers.
Definition at line 155 of file vfs_tree.cpp.
|
inline |
Definition at line 116 of file vfs_tree.h.
Definition at line 117 of file vfs_tree.cpp.
VfsDirectory * VfsDirectory::GetSubdirectory | ( | const VfsPath & | name | ) |
Definition at line 126 of file vfs_tree.cpp.
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.
Definition at line 111 of file vfs_tree.cpp.
void VfsDirectory::RequestRepopulate | ( | ) |
ensure the next ShouldPopulate returns true.
Definition at line 149 of file vfs_tree.cpp.
void VfsDirectory::SetAssociatedDirectory | ( | const PRealDirectory & | realDirectory | ) |
side effect: the next ShouldPopulate() will return true.
Definition at line 135 of file vfs_tree.cpp.
bool VfsDirectory::ShouldPopulate | ( | ) |
Definition at line 143 of file vfs_tree.cpp.
|
inline |
Definition at line 121 of file vfs_tree.h.
|
private |
Definition at line 155 of file vfs_tree.h.
|
private |
Definition at line 158 of file vfs_tree.h.
|
private |
Definition at line 159 of file vfs_tree.h.
|
private |
Definition at line 156 of file vfs_tree.h.