summaryrefslogtreecommitdiff
path: root/src/mixedobject.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 11:33:53 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 11:33:53 +0100
commit52fe0c39457421e075959179ee6b64a20b96f0d9 (patch)
treee6dd000114d104bf6286d74682feb694b3cb97a3 /src/mixedobject.h
parentfa02aa127d2c4261d15123829e44f6d997444abc (diff)
types are not a C++11 class, introduced FixedValue class that can not change type, and implemented both Object and Array to make use of that type, implemented - but not yet tested - Base::value() method
Diffstat (limited to 'src/mixedobject.h')
-rw-r--r--src/mixedobject.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mixedobject.h b/src/mixedobject.h
index 55a27ec..4db74da 100644
--- a/src/mixedobject.h
+++ b/src/mixedobject.h
@@ -17,7 +17,17 @@ namespace Php {
*/
struct MixedObject
{
+ /**
+ * The actual object is the first member, so that casting
+ * the MixedObject to a zend_object will also result in a valid pointer
+ * @var zend_object
+ */
zend_object php;
+
+ /**
+ * Pointer to the C++ implementation
+ * @var Base
+ */
Base *cpp;
};