Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
bc00d55e
Commit
bc00d55e
authored
Jun 16, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slightly simplified the dir_nav interface
parent
fcd7abff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
dir_nav_kernel_1.h
dlib/dir_nav/dir_nav_kernel_1.h
+16
-0
dir_nav_kernel_2.h
dlib/dir_nav/dir_nav_kernel_2.h
+16
-0
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
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
;
...
...
dlib/dir_nav/dir_nav_kernel_2.h
View file @
bc00d55e
...
...
@@ -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
;
...
...
dlib/dir_nav/dir_nav_kernel_abstract.h
View file @
bc00d55e
...
...
@@ -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
;
/*!
...
...
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