summaryrefslogtreecommitdiff
path: root/zend/namespace.cpp
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-10 13:09:43 +0600
committervalmat <ufabiz@gmail.com>2014-04-10 13:09:43 +0600
commitb015506a3b1738405a948d11e221e3948aa42d13 (patch)
tree22ade795098cdf02db039d181a5bea38b551e057 /zend/namespace.cpp
parent14b63ee87dde3688fea7e58fa25b73362117ae11 (diff)
parent6ac0bc83b53ab854baaaba74dd54e60c562751ff (diff)
Merge branch 'master' into ini
Conflicts: include/namespace.h
Diffstat (limited to 'zend/namespace.cpp')
-rw-r--r--zend/namespace.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/zend/namespace.cpp b/zend/namespace.cpp
index e9ec631..8b97c52 100644
--- a/zend/namespace.cpp
+++ b/zend/namespace.cpp
@@ -85,13 +85,13 @@ Namespace &Namespace::add(const char *name, const native_callback_3 &function, c
*
* @param callback
*/
-void Namespace::apply(const std::function<void(const std::string &ns, Function &func)> &callback)
+void Namespace::functions(const std::function<void(const std::string &ns, Function &func)> &callback)
{
// loop through the functions, and apply the callback
for (auto &function : _functions) callback(_name, *function);
// loop through the other namespaces
- for (auto &ns : _namespaces) ns->apply([this, callback](const std::string &ns, Function &func) {
+ for (auto &ns : _namespaces) ns->functions([this, callback](const std::string &ns, Function &func) {
// if this is the root namespace, we don't have to change the prefix
if (_name.size() == 0) return callback(ns, func);
@@ -110,13 +110,13 @@ void Namespace::apply(const std::function<void(const std::string &ns, Function &
*
* @param callback
*/
-void Namespace::apply(const std::function<void(const std::string &ns, ClassBase &clss)> &callback)
+void Namespace::classes(const std::function<void(const std::string &ns, ClassBase &clss)> &callback)
{
// loop through the classes, and apply the callback
for (auto &c : _classes) callback(_name, *c);
// loop through the other namespaces
- for (auto &ns : _namespaces) ns->apply([this, callback](const std::string &ns, ClassBase &clss) {
+ for (auto &ns : _namespaces) ns->classes([this, callback](const std::string &ns, ClassBase &clss) {
// if this is the root namespace, we don't have to change the prefix
if (_name.size() == 0) return callback(ns, clss);