ZFFramework
Loading...
Searching...
No Matches
Macros | Functions
ZFMethodFuncDeclare.h File Reference

ZFMethod declaration. More...

#include "ZFMethod.h"

Go to the source code of this file.

Macros

#define ZFMethodFuncAccess(MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_0(MethodNamespace, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_1(MethodNamespace, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_2(MethodNamespace, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_3(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_4(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_5(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_6(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_7(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMethodFuncAccessDetail_8(MethodNamespace, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
 declare function type of ZFMethod
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_0(ZFLIB_, RegSig, ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_0(ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_0(RegSig, ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_0(ZFLIB_, ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_0(ZFLIB_, RegSig, ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_0(ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_0(RegSig, ReturnType, MethodName)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_1(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_1(ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_1(RegSig, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_1(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_1(ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_1(RegSig, ReturnType, MethodName, ZFMP_0)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_2(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_2(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_2(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_2(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_3(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_3(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_3(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_3(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_4(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_4(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_4(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_4(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_4(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_4(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_5(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_5(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_5(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_5(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_5(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_5(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_5(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_5(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_6(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_6(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_6(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_6(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_6(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_6(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_6(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_6(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_7(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_7(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_7(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_7(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_7(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_7(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_7(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_7(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_8(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DECLARE_DETAIL_8(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_8(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_DEFINE_DETAIL_8(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_8(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DECLARE_DETAIL_8(ZFLIB_, RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_8(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 
#define ZFMETHOD_FUNC_INLINE_DEFINE_DETAIL_8(RegSig, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6, ZFMP_7)
 see ZFMETHOD_FUNC_DECLARE_0
 

Functions

const ZFMethodZFMethodFuncForName (const zfchar *methodNamespace, const zfchar *methodName)
 get function type method for name
 
const ZFMethodZFMethodFuncForName (const zfchar *methodNamespace, const zfchar *methodName, const zfchar *methodParamTypeId0, const zfchar *methodParamTypeId1=0, const zfchar *methodParamTypeId2=0, const zfchar *methodParamTypeId3=0, const zfchar *methodParamTypeId4=0, const zfchar *methodParamTypeId5=0, const zfchar *methodParamTypeId6=0, const zfchar *methodParamTypeId7=0)
 see ZFMethodFuncForName
 
void ZFMethodFuncForNameGetAllT (ZFCoreArray< const ZFMethod * > &ret, const zfchar *methodNamespace, const zfchar *methodName)
 see ZFMethodFuncForName
 
ZFCoreArray< const ZFMethod * > ZFMethodFuncForNameGetAll (const zfchar *methodNamespace, const zfchar *methodName)
 see ZFMethodFuncForName
 
void ZFMethodFuncGetAllT (ZFCoreArray< const ZFMethod * > &ret, const ZFFilterForZFMethod *filter=0)
 see ZFMethodFuncGetAll
 
ZFCoreArray< const ZFMethod * > ZFMethodFuncGetAll (const ZFFilterForZFMethod *filter=0)
 get all function type method currently registered, for debug use only
 

Detailed Description

ZFMethod declaration.

Macro Definition Documentation

◆ ZFMETHOD_FUNC_DECLARE_0

#define ZFMETHOD_FUNC_DECLARE_0 ( ZFLIB_,
ReturnType,
MethodName )

declare function type of ZFMethod

usage:

// in header file
// in source file
ZFMETHOD_FUNC_DEFINE_0(void, myFunc) {
// func body
}
#define ZFLIB_APP
used to export symbols
Definition ZFCoreEnvDef.h:35
#define ZFMETHOD_FUNC_DEFINE_0(ReturnType, MethodName)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:537
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:505

similar to ZFMETHOD_INLINE_0, but declared in global scope instead of class scope, declared method can be reflected by ZFMethodFuncForName, and can be invoked by by ZFMethod::execute with null as first param
function type method support at most one level namespace

Function Documentation

◆ ZFMethodFuncForName()

const ZFMethod * ZFMethodFuncForName ( const zfchar * methodNamespace,
const zfchar * methodName )
extern

get function type method for name

note this method would only find function type method declared by ZFMETHOD_FUNC_DECLARE_xxx series, use ZFClass::methodForName to find class static member method, or use ZFMethodForName for short