weak reference to ZFObject More...
#include <zfweak.h>
Public Member Functions | |
| zfbool | valid (void) const |
| true if the holded object is not null | |
| zfany | get (void) const |
| get the holded object | |
| template<typename T_ZFObject> | |
| void | set (T_ZFObject const &obj) |
| set the holded object | |
| void | set (const zfweak &obj) |
| set the holded object | |
| void | set (zft_zfnullT const &) |
| set the holded object | |
| ZFObject * | toObject (void) const |
| get the holded object | |
| template<typename T_ZFObject> | |
| T_ZFObject | to (void) const |
| cast by zfcast | |
| const zfany & | asAny (void) const |
| access as zfany | |
weak reference to ZFObject
usage:
can be used in script with similar rule, lua for example: