Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
bc00d55e
Commit
bc00d55e
authored
Jun 16, 2013
by
Davis King
Browse files
Slightly simplified the dir_nav interface
parent
fcd7abff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
dlib/dir_nav/dir_nav_kernel_1.h
dlib/dir_nav/dir_nav_kernel_1.h
+16
-0
dlib/dir_nav/dir_nav_kernel_2.h
dlib/dir_nav/dir_nav_kernel_2.h
+16
-0
dlib/dir_nav/dir_nav_kernel_abstract.h
dlib/dir_nav/dir_nav_kernel_abstract.h
+14
-0
No files found.
dlib/dir_nav/dir_nav_kernel_1.h
View file @
bc00d55e
...
@@ -219,6 +219,22 @@ namespace dlib
...
@@ -219,6 +219,22 @@ namespace dlib
queue_of_dirs
&
dirs
queue_of_dirs
&
dirs
)
const
;
)
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
directory
get_parent
(
)
const
;
)
const
;
...
...
dlib/dir_nav/dir_nav_kernel_2.h
View file @
bc00d55e
...
@@ -212,6 +212,22 @@ namespace dlib
...
@@ -212,6 +212,22 @@ namespace dlib
queue_of_dirs
&
dirs
queue_of_dirs
&
dirs
)
const
;
)
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
directory
get_parent
(
)
const
;
)
const
;
...
...
dlib/dir_nav/dir_nav_kernel_abstract.h
View file @
bc00d55e
...
@@ -302,6 +302,13 @@ namespace dlib
...
@@ -302,6 +302,13 @@ namespace dlib
no effect on *this and #files.size()==0.
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
<
template
<
typename
queue_of_dirs
typename
queue_of_dirs
>
>
...
@@ -330,6 +337,13 @@ namespace dlib
...
@@ -330,6 +337,13 @@ namespace dlib
no effect on *this and #dirs.size()==0.
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
(
bool
is_root
(
)
const
;
)
const
;
/*!
/*!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment