reflectable method definination for ZFFramework More...
Go to the source code of this file.
Classes | |
class | ZFMethod |
reflectable method for ZFObject More... | |
Macros | |
#define | ZFTOKEN_ZFMethodAccessTypePublic |
string tokens | |
#define | ZFTOKEN_ZFMethodAccessTypeProtected |
string tokens | |
#define | ZFTOKEN_ZFMethodAccessTypePrivate |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeNormal |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeStatic |
string tokens | |
#define | ZFTOKEN_ZFMethodTypeVirtual |
string tokens | |
#define | ZFMP_IN(ParamType, paramName) |
macro to wrap param types for ZFMETHOD_INLINE_0 series | |
#define | ZFMP_IN_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
#define | ZFMP_OUT(ParamType, paramName) |
see ZFMP_IN | |
#define | ZFMP_OUT_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
#define | ZFMP_IN_OUT(ParamType, paramName) |
see ZFMP_IN | |
#define | ZFMP_IN_OUT_OPT(ParamType, paramName, DefaultValue) |
see ZFMP_IN | |
Enumerations | |
enum | ZFMethodAccessType { ZFMethodAccessTypePublic , ZFMethodAccessTypeProtected , ZFMethodAccessTypePrivate } |
access type for ZFMethod More... | |
enum | ZFMethodType { ZFMethodTypeNormal , ZFMethodTypeStatic , ZFMethodTypeVirtual } |
the method type More... | |
Functions | |
void | ZFMethodGetAllT (ZFCoreArray< const ZFMethod * > &ret) |
see ZFMethodGetAll | |
ZFCoreArray< const ZFMethod * > | ZFMethodGetAll (void) |
get all method currently registered | |
const ZFMethod * | ZFMethodForName (const zfstring &classNameOrNamespace, const zfstring &methodName) |
util method to find method | |
const ZFMethod * | ZFMethodForName (const zfstring &classNameOrNamespace, const zfstring &methodName, const zfchar *paramTypeId0, const zfchar *paramTypeId1=zft_zfnull, const zfchar *paramTypeId2=zft_zfnull, const zfchar *paramTypeId3=zft_zfnull, const zfchar *paramTypeId4=zft_zfnull, const zfchar *paramTypeId5=zft_zfnull, const zfchar *paramTypeId6=zft_zfnull, const zfchar *paramTypeId7=zft_zfnull) |
see ZFMethodForName | |
void | ZFMethodForNameGetAllT (ZFCoreArray< const ZFMethod * > &ret, const zfstring &classNameOrNamespace, const zfstring &methodName) |
util method to find method, see ZFMethodForName | |
ZFCoreArray< const ZFMethod * > | ZFMethodForNameGetAll (const zfstring &classNameOrNamespace, const zfstring &methodName) |
see ZFMethodForNameGetAllT | |
const ZFMethod * | ZFMethodAlias (const ZFMethod *method, const zfstring &aliasName) |
create new ZFMethod and alias to existing method | |
void | ZFMethodAliasRemove (const ZFMethod *aliasMethod) |
see ZFMethodAlias | |
reflectable method definination for ZFFramework
#define ZFMP_IN | ( | ParamType, | |
paramName ) |
macro to wrap param types for ZFMETHOD_INLINE_0 series
similar to ZF_IN for normal methods, here's a list of these macros used for ZFMETHOD_INLINE_0 series:
enum ZFMethodAccessType |
access type for ZFMethod
Enumerator | |
---|---|
ZFMethodAccessTypePublic | public |
ZFMethodAccessTypeProtected | protected |
ZFMethodAccessTypePrivate | private |
enum ZFMethodType |
|
inline |
get all method currently registered
note, this method may cause performance issue if you have many method registered, use with caution
use ZFClass::methodForName or ZFMethodFuncForName if necessary
|
extern |
util method to find method
method can be class member or function type method, return first registered one if more than one method found, use ZFMethodForNameGetAll to check if you have overloaded method, use ZFMethodFuncForName to explicitly find function type method
create new ZFMethod and alias to existing method