Commit bc00d55e authored by Davis King's avatar Davis King

Slightly simplified the dir_nav interface

parent fcd7abff
......@@ -219,6 +219,22 @@ namespace dlib
queue_of_dirs& dirs
) const;
std::vector<file> get_files (
) const
{
std::vector<file> temp_vector;
get_files(temp_vector);
return temp_vector;
}
std::vector<directory> get_dirs (
) const
{
std::vector<directory> temp_vector;
get_dirs(temp_vector);
return temp_vector;
}
const directory get_parent (
) const;
......
......@@ -212,6 +212,22 @@ namespace dlib
queue_of_dirs& dirs
) const;
std::vector<file> get_files (
) const
{
std::vector<file> temp_vector;
get_files(temp_vector);
return temp_vector;
}
std::vector<directory> get_dirs (
) const
{
std::vector<directory> temp_vector;
get_dirs(temp_vector);
return temp_vector;
}
const directory get_parent (
) const;
......
......@@ -302,6 +302,13 @@ namespace dlib
no effect on *this and #files.size()==0.
!*/
std::vector<file> get_files (
) const;
/*!
ensures
- This function simply calls get_files(temp_vector) and then returns temp_vector.
!*/
template <
typename queue_of_dirs
>
......@@ -330,6 +337,13 @@ namespace dlib
no effect on *this and #dirs.size()==0.
!*/
std::vector<directory> get_dirs (
) const;
/*!
ensures
- This function simply calls get_dirs(temp_vector) and then returns temp_vector.
!*/
bool is_root (
) const;
/*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment