summaryrefslogtreecommitdiff
path: root/include/namespace.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-15 16:34:14 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-15 16:34:14 +0100
commitd87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c (patch)
tree6dd3179162d5cecc474fc9028039bd757f6df04b /include/namespace.h
parentd8fe9239959dfeae11daa5de70126e30119d3b75 (diff)
Added the Php::Function class. This is an extension to the Php::Value class that can be used if you want to assign a std::function object to a Value. This is useful if you want to pass a C++ lambda to a PHP userspace function
Diffstat (limited to 'include/namespace.h')
-rw-r--r--include/namespace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/namespace.h b/include/namespace.h
index e713850..84f0740 100644
--- a/include/namespace.h
+++ b/include/namespace.h
@@ -16,7 +16,7 @@ namespace Php {
/**
* Forward declaration
*/
-class Function;
+class NativeFunction;
/**
* Class definition
@@ -34,7 +34,7 @@ protected:
* Functions defined in the namespace
* @var list
*/
- std::list<std::shared_ptr<Function>> _functions;
+ std::list<std::shared_ptr<NativeFunction>> _functions;
/**
* Classes defined in the namespace
@@ -220,7 +220,7 @@ public:
*
* @param callback
*/
- void functions(const std::function<void(const std::string &ns, Function &func)> &callback);
+ void functions(const std::function<void(const std::string &ns, NativeFunction &func)> &callback);
/**
* Apply a callback to each registered class