ZFFramework
 
Loading...
Searching...
No Matches
zfany Class Reference

util method to cast ZFObject types freely More...

#include <zfany.h>

Inheritance diagram for zfany:
zfanyT< ZFUICell > zfanyT< ZFUIScrollView > zfanyT< T_ZFObjectBase >

Public Member Functions

ZFObjecttoObject (void) const
 get the holded object
 
template<typename T_ZFObject>
T_ZFObject to (void) const
 cast by zfcast
 

Detailed Description

util method to cast ZFObject types freely

usage:

YourObjectType *obj = ...;
zfany any = obj;
// cast to any other object type, return null if not able to cast
AnotherObjectType *another = any;
// or use toObject
ZFObject *orig = any.toObject();
base class of all objects
Definition ZFObjectCore.h:209
util method to cast ZFObject types freely
Definition zfany.h:35
ZFObject * toObject(void) const
get the holded object
Definition zfany.h:85

note: zfany stores raw ZFObject pointer, use zfauto or zfweak for most case, use zfany only if necessary


The documentation for this class was generated from the following file: