#include <filename_tree.h>
Inheritance diagram for filename_tree:


Public Member Functions | |
| filename_tree () | |
| virtual | ~filename_tree () |
| virtual void | pack (byte_array &packed_form) const |
| turns this node into a compact flat form for storage. | |
| virtual bool | unpack (byte_array &packed_form) |
| decompresses the "packed_form" for this node. | |
Public Attributes | |
| filename | _dirname |
| the full directory name at this position. | |
| filename_list | _files |
| the filenames that are at this node in the tree. | |
| int | _depth |
| how far below root node are we. | |
This class has been exported from directory_tree's implementation to avoid redundant code for iteration and such. Note: this is a heavy-weight header that should not be included in other headers.
Definition at line 30 of file filename_tree.h.
| filename_tree::filename_tree | ( | ) |
Definition at line 27 of file filename_tree.cpp.
| filename_tree::~filename_tree | ( | ) | [virtual] |
Definition at line 29 of file filename_tree.cpp.
References _dirname, _files, and amorph< contents >::reset().
| void filename_tree::pack | ( | byte_array & | packed_form | ) | const [virtual] |
turns this node into a compact flat form for storage.
Implements nodes::packable_tree.
Definition at line 31 of file filename_tree.cpp.
References _depth, _dirname, _files, basis::attach(), filename_list::pack(), and filename::pack().
| bool filename_tree::unpack | ( | byte_array & | packed_form | ) | [virtual] |
decompresses the "packed_form" for this node.
Implements nodes::packable_tree.
Definition at line 37 of file filename_tree.cpp.
References _depth, _dirname, _files, basis::detach(), filename_list::unpack(), and filename::unpack().
the full directory name at this position.
Definition at line 33 of file filename_tree.h.
Referenced by directory_tree::add_path(), directory_tree::current(), directory_tree::current_dir(), pack(), directory_tree::remove_path(), directory_tree::seek(), unpack(), and ~filename_tree().
the filenames that are at this node in the tree.
Definition at line 34 of file filename_tree.h.
Referenced by directory_tree::access(), directory_tree::add_path(), directory_tree::compare_trees(), directory_tree::current(), pack(), directory_tree::remove_path(), unpack(), and ~filename_tree().
how far below root node are we.
Definition at line 35 of file filename_tree.h.
Referenced by directory_tree::add_path(), directory_tree::depth(), pack(), and unpack().
1.5.1