Slightly simplified the dir_nav interface

This commit is contained in:
Davis King 2013-06-16 12:07:23 -04:00
parent fcd7abffac
commit bc00d55eea
3 changed files with 46 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
/*!