diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-13 23:54:54 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-13 23:54:54 +0100 |
commit | 681d1e6aa735568a492140d2307a89063e7aadb9 (patch) | |
tree | 98fa482ee64203b1ef75fb0e7c687d57f1abe20f /include/base.h | |
parent | 684f81e8bcbadc3d522e6557161275deaad4fd3b (diff) |
__clone() method is now called directly after a clone operation (and when no custom __clone is registered)
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h index 6cf75df..b9dced2 100644 --- a/include/base.h +++ b/include/base.h @@ -113,6 +113,20 @@ public: } /** + * Overridable method that is called right after an object is cloned + * + * The default implementation does nothing + */ + void __clone() const {} + + /** + * Overridable method that is called right before an object is destructed + * + * The default implementation does nothing + */ + void __destruct() const {} + + /** * Overridable method that is called to check if a property is set * * The default implementation does nothing, and the script will fall back |