summaryrefslogtreecommitdiff
path: root/include/classbase.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 /include/classbase.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 'include/classbase.h')
-rw-r--r--include/classbase.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/classbase.h b/include/classbase.h
index ad501ea..249122a 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -54,14 +54,17 @@ public:
* @todo prefer move
*/
ClassBase(const ClassBase &that) :
- _name(that._name), _type(that._type), _methods(that._methods), _members(that._members) {}
+ _name(that._name), _type(that._type), _methods(that._methods),
+ _members(that._members), _entry(nullptr) {}
/**
* Move constructor
* @param that
*/
ClassBase(ClassBase &&that) :
- _type(that._type), _methods(std::move(that._methods)), _members(std::move(that._members)), _entry(that._entry)
+ _name(std::move(that._name)), _type(that._type),
+ _methods(std::move(that._methods)), _members(std::move(that._members)),
+ _entry(that._entry)
{
// other entry are invalid now (not that it is used..., class objects are
// only moved during extension setup, when the entry pointer has not yet
@@ -165,6 +168,12 @@ private:
std::string _name;
/**
+ * The comment for reflexion, with a stored pointer to ourselves
+ * @var char*
+ */
+ char *_comment = nullptr;
+
+ /**
* The class type (this can be values like Php::Abstract and Php::Final)
* @var ClassType
*/