File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ class dispatcher {
60
60
detail::tags::nonvoid_result const &,
61
61
detail::tags::nonzero_arg const &);
62
62
63
- // ! \brief removes a functor with given name from callable functors.
64
- void remove (std::string const &name) {
63
+ // ! \brief Unbind a functor with a given name from callable functors.
64
+ void unbind (std::string const &name) {
65
65
funcs_.erase (name);
66
66
}
67
67
68
- // ! \brief returns a list name of all functors binded
69
- std::vector<std::string> names () {
68
+ // ! \brief returns a list of all names which functors are binded to
69
+ std::vector<std::string> names () const {
70
70
std::vector<std::string> names;
71
71
for (auto it = funcs_.begin (); it != funcs_.end (); ++it)
72
72
names.push_back (it->first );
Original file line number Diff line number Diff line change @@ -99,15 +99,15 @@ class server {
99
99
// !
100
100
// ! \param name The name of the functor.
101
101
void unbind (std::string const &name) {
102
- disp_->remove (name);
102
+ disp_->unbind (name);
103
103
}
104
104
105
105
// ! \brief Returns all binded names
106
106
// !
107
107
// ! This function returns a list of all names which functors are binded to
108
108
// !
109
109
// ! \param name The name of the functor.
110
- std::vector<std::string> names () {
110
+ std::vector<std::string> names () const {
111
111
return disp_->names ();
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments