summaryrefslogtreecommitdiff
path: root/include/function.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 14:59:58 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 14:59:58 -0700
commitffdaa0590d33ea89d116f6c56df2474cc0675ec9 (patch)
tree6b0d71337879892b43a4af90e6757d53ecc77853 /include/function.h
parent753402a84b40ff4dc9697dea1d2d4aa037ea7624 (diff)
{auto} PHP objects can now be implemented in C++. Constructors and destructors get called at the appropriate time, but not yet any of the other methods
Diffstat (limited to 'include/function.h')
-rw-r--r--include/function.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/include/function.h b/include/function.h
index c78fdd6..89ec3fd 100644
--- a/include/function.h
+++ b/include/function.h
@@ -28,7 +28,7 @@ class Function
public:
/**
* Constructor
- * @param name Name of the function
+ * @param name Name of the function
* @param min Min number of arguments
* @param max Max number of arguments
*/
@@ -55,42 +55,42 @@ public:
/**
* Comparison
- * @param function The other function
- * @return bool
+ * @param function The other function
+ * @return bool
*/
bool operator<(const Function &function) const
{
- return strcmp(name(), function.name()) < 0;
- }
+ return strcmp(name(), function.name()) < 0;
+ }
/**
* Comparison
- * @param function The other function
- * @return bool
+ * @param function The other function
+ * @return bool
*/
bool operator>(const Function &function) const
{
- return strcmp(name(), function.name()) > 0;
- }
+ return strcmp(name(), function.name()) > 0;
+ }
/**
* Comparison
- * @param function The other function
- * @return bool
+ * @param function The other function
+ * @return bool
*/
bool operator==(const Function &function) const
{
- return strcmp(name(), function.name()) == 0;
- }
+ return strcmp(name(), function.name()) == 0;
+ }
- /**
- * Function name
- * @return const char *
- */
- const char *name() const
- {
- return _ptr.text();
- }
+ /**
+ * Function name
+ * @return const char *
+ */
+ const char *name() const
+ {
+ return _ptr.text();
+ }
/**
* Method that gets called every time the function is executed
@@ -111,17 +111,17 @@ protected:
*/
Type _type = nullType;
- /**
- * Required number of arguments
- * @var integer
- */
- int _required;
-
- /**
- * Total number of arguments
- * @var integer
- */
- int _argc;
+ /**
+ * Required number of arguments
+ * @var integer
+ */
+ int _required;
+
+ /**
+ * Total number of arguments
+ * @var integer
+ */
+ int _argc;
/**
* The arguments
@@ -130,8 +130,8 @@ protected:
struct _zend_arg_info *_argv;
/**
- * The name is stored in a hidden pointer, so that we have access to the function
- * @var HiddenPointer
+ * The object address is stored in a hidden pointer, so that we have access to the function object
+ * @var HiddenPointer
*/
HiddenPointer<Function> _ptr;