38 template<
typename T_ZFObject>
42 template<
typename T_ZFObject>
43 inline zfwrap &operator = (
ZF_IN T_ZFObject
const &obj) {
44 zfauto::operator=(obj);
49 template<
typename T_ZFObject>
50 inline zfbool operator == (
ZF_IN T_ZFObject
const &obj)
const {
51 return zfauto::operator==(obj);
53 template<
typename T_ZFObject>
54 inline zfbool operator != (
ZF_IN T_ZFObject
const &obj)
const {
55 return zfauto::operator!=(obj);
59 inline ZFObject *operator -> (
void)
const {
62 inline operator zfbool (
void)
const {
65 inline operator ZFObject * (void)
const {
68 template<
typename T_ZFObject>
69 inline operator T_ZFObject * (void)
const {
74 static const ZFClass *ClassData(
void) {
75 return zfauto::ClassData();
96 template<
typename T_ZFObject>
98 zfauto::operator=(obj);
111 template<
typename T_ZFObject>
112 inline T_ZFObject
to(
void)
const {
126 v.toObject()->objectInfoT(s);
137template<
typename T_ZFObject>
139 return e.toObject() == _ZFP_zfanyCast(obj);
141template<
typename T_ZFObject>
143 return e.toObject() != _ZFP_zfanyCast(obj);
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define zfclassLikePOD
shows the class is not a POD type, but you may use it like a POD except memset it to 0
Definition ZFCoreTypeDef_ClassType.h:41
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:184
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
#define ZFOUTPUT_TYPE(T_Type, outputAction)
declare your custom type conversion to string, convenient for debug
Definition ZFCoreTypeDef_OtherType.h:221
#define ZFTOKEN_zfnull
string tokens
Definition ZFCoreTypeDef_OtherType.h:16
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZFTYPEID_ACCESS_ONLY_REG(ZFLIB_, TypeName, Type,...)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:205
#define ZFTYPEID_ACCESS_ONLY_DECLARE(ZFLIB_, TypeName, Type)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:195
ZFObject's class info.
Definition ZFClass.h:66
base class of all objects
Definition ZFObjectCore.h:205
util method to cast ZFObject types freely
Definition zfany.h:35
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34
ZFObject * toObject(void) const
get the holded object
Definition zfautoFwd.h:89
const zfany & asAny(void) const
access as zfany
Definition zfautoFwd.h:75
strong reference to ZFObject
Definition zfwrap.h:34
const zfany & asAny(void) const
access as zfany
Definition zfwrap.h:119
zfany get(void) const
get the holded object
Definition zfwrap.h:90
ZFObject * toObject(void) const
get the holded object
Definition zfwrap.h:105
zfbool valid(void) const
true if the holded object is not null
Definition zfwrap.h:83
void set(T_ZFObject const &obj)
set the holded object
Definition zfwrap.h:97
T_ZFObject to(void) const
cast by zfcast
Definition zfwrap.h:112
#define zfcast(T_To, obj)
safely cast ZFObject types, return null if not desired type
Definition zfcast.h:24