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
f9e63c9d
Commit
f9e63c9d
authored
Nov 18, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified member_function_pointer declarations.
parent
f0705c93
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
18 deletions
+16
-18
bound_function_pointer_kernel_1.h
.../bound_function_pointer/bound_function_pointer_kernel_1.h
+1
-1
base_widgets.h
dlib/gui_widgets/base_widgets.h
+2
-2
widgets.cpp
dlib/gui_widgets/widgets.cpp
+3
-3
logger_kernel_1.h
dlib/logger/logger_kernel_1.h
+1
-1
server_kernel.cpp
dlib/server/server_kernel.cpp
+1
-3
multithreaded_object_extension.h
dlib/threads/multithreaded_object_extension.h
+1
-1
thread_pool_extension.h
dlib/threads/thread_pool_extension.h
+3
-3
threads_kernel_shared.cpp
dlib/threads/threads_kernel_shared.cpp
+1
-1
threads_kernel_shared.h
dlib/threads/threads_kernel_shared.h
+3
-3
No files found.
dlib/bound_function_pointer/bound_function_pointer_kernel_1.h
View file @
f9e63c9d
...
...
@@ -42,7 +42,7 @@ namespace dlib
typename
strip
<
T4
>::
type
*
arg4
;
typename
member_function_pointer
<
T1
,
T2
,
T3
,
T4
>::
kernel_1a_c
mfp
;
member_function_pointer
<
T1
,
T2
,
T3
,
T4
>
mfp
;
};
// ----------------
...
...
dlib/gui_widgets/base_widgets.h
View file @
f9e63c9d
...
...
@@ -2058,7 +2058,7 @@ namespace dlib
{
auto_mutex
M
(
wm
);
member_function_pointer
<>
::
kernel_1a
temp
;
member_function_pointer
<>
temp
;
temp
.
set
(
object
,
event_handler
);
// if this handler isn't already registered then add it
...
...
@@ -2144,7 +2144,7 @@ namespace dlib
array
<
popup_menu
*>
submenus
;
unsigned
long
selected_item
;
bool
submenu_open
;
array
<
member_function_pointer
<>
::
kernel_1a
>
hide_handlers
;
array
<
member_function_pointer
<>
>
hide_handlers
;
// restricted functions
popup_menu
(
popup_menu
&
);
// copy constructor
...
...
dlib/gui_widgets/widgets.cpp
View file @
f9e63c9d
...
...
@@ -5663,11 +5663,11 @@ namespace dlib
class
image_display_functor
{
const
std
::
string
str
;
const
member_function_pointer
<
const
std
::
string
&>
::
kernel_1a
mfp
;
const
member_function_pointer
<
const
std
::
string
&>
mfp
;
public
:
image_display_functor
(
const
std
::
string
&
str_
,
const
member_function_pointer
<
const
std
::
string
&>
::
kernel_1a
&
mfp_
const
member_function_pointer
<
const
std
::
string
&>&
mfp_
)
:
str
(
str_
),
mfp
(
mfp_
)
{}
...
...
@@ -6052,7 +6052,7 @@ namespace dlib
auto_mutex
lock
(
m
);
if
(
part_names
.
insert
(
name
).
second
)
{
member_function_pointer
<
const
std
::
string
&>
::
kernel_1a
mfp
;
member_function_pointer
<
const
std
::
string
&>
mfp
;
mfp
.
set
(
*
this
,
&
image_display
::
on_part_add
);
parts_menu
.
menu
().
add_menu_item
(
menu_item_text
(
"Add "
+
name
,
impl
::
image_display_functor
(
name
,
mfp
)));
}
...
...
dlib/logger/logger_kernel_1.h
View file @
f9e63c9d
...
...
@@ -203,7 +203,7 @@ namespace dlib
public
:
typedef
member_function_pointer
<
const
std
::
string
&
,
const
log_level
&
,
const
uint64
,
const
char
*>
::
kernel_1a_c
hook_mfp
;
const
uint64
,
const
char
*>
hook_mfp
;
logger
(
const
char
*
name_
...
...
dlib/server/server_kernel.cpp
View file @
f9e63c9d
...
...
@@ -184,9 +184,7 @@ namespace dlib
// to report errors back to the user in a very straight forward way.
open_listening_socket
();
member_function_pointer
<>::
kernel_1a
mfp
;
mfp
.
set
(
*
this
,
&
server
::
start_async_helper
);
async_start_thread
.
reset
(
new
thread_function
(
mfp
));
async_start_thread
.
reset
(
new
thread_function
(
make_mfp
(
*
this
,
&
server
::
start_async_helper
)));
}
// ----------------------------------------------------------------------------------------
...
...
dlib/threads/multithreaded_object_extension.h
View file @
f9e63c9d
...
...
@@ -126,7 +126,7 @@ namespace dlib
void
thread_helper
(
);
typedef
member_function_pointer
<>
::
kernel_1a_c
mfp
;
typedef
member_function_pointer
<>
mfp
;
rmutex
m_
;
rsignaler
s
;
...
...
dlib/threads/thread_pool_extension.h
View file @
f9e63c9d
...
...
@@ -445,9 +445,9 @@ namespace dlib
long
arg1
;
long
arg2
;
member_function_pointer
<>
::
kernel_1a
mfp0
;
member_function_pointer
<
long
>
::
kernel_1a
mfp1
;
member_function_pointer
<
long
,
long
>
::
kernel_1a
mfp2
;
member_function_pointer
<>
mfp0
;
member_function_pointer
<
long
>
mfp1
;
member_function_pointer
<
long
,
long
>
mfp2
;
bfp_type
bfp
;
shared_ptr
<
function_object_copy
>
function_copy
;
...
...
dlib/threads/threads_kernel_shared.cpp
View file @
f9e63c9d
...
...
@@ -127,7 +127,7 @@ namespace dlib
reg
.
m
.
lock
();
const
thread_id_type
id
=
get_thread_id
();
thread_id_type
id_copy
;
member_function_pointer
<>
::
kernel_1a
mfp
;
member_function_pointer
<>
mfp
;
// Remove all the member function pointers for this thread from the tree
// and call them.
...
...
dlib/threads/threads_kernel_shared.h
View file @
f9e63c9d
...
...
@@ -92,7 +92,7 @@ namespace dlib
void
(
T
::*
handler
)()
)
{
member_function_pointer
<>
::
kernel_1a
mfp
,
junk_mfp
;
member_function_pointer
<>
mfp
,
junk_mfp
;
mfp
.
set
(
obj
,
handler
);
thread_id_type
junk_id
;
...
...
@@ -119,7 +119,7 @@ namespace dlib
)
{
thread_id_type
id
=
get_thread_id
();
member_function_pointer
<>
::
kernel_1a
mfp
;
member_function_pointer
<>
mfp
;
mfp
.
set
(
obj
,
handler
);
auto_mutex
M
(
reg
.
m
);
...
...
@@ -162,7 +162,7 @@ namespace dlib
mutex
m
;
binary_search_tree
<
thread_id_type
,
member_function_pointer
<>
::
kernel_1a
,
member_function_pointer
<>
,
memory_manager
<
char
>::
kernel_2a
>::
kernel_2a_c
reg
;
};
...
...
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