• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ GET_THIS_VIRTUAL_RV函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GET_THIS_VIRTUAL_RV函数的典型用法代码示例。如果您正苦于以下问题:C++ GET_THIS_VIRTUAL_RV函数的具体用法?C++ GET_THIS_VIRTUAL_RV怎么用?C++ GET_THIS_VIRTUAL_RV使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GET_THIS_VIRTUAL_RV函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: CDlpFile_ResetAllOptions

INT16 CDlpFile_ResetAllOptions(CDlpObject* __this, BOOL bInit)
{
	GET_THIS_VIRTUAL_RV(CDlpFile,NOT_EXEC);
	DEBUGMSG(-1,"CDlpFile_ResetAllOptions;",0,0,0);
	{
	/*{{CGEN_RESETALLOPTIONS*/
	_this->m_bAppend = FALSE;
	_this->m_bBig = FALSE;
	_this->m_bCompress = FALSE;
	_this->m_bDir = FALSE;
	_this->m_bExecute = FALSE;
	_this->m_bLittle = FALSE;
	_this->m_bPstComma = FALSE;
	_this->m_bPstContour = FALSE;
	_this->m_bPstHalfspectrum = FALSE;
	_this->m_bPstLegend = FALSE;
	_this->m_bPstTriglabels = FALSE;
	_this->m_bPstXYPlot = FALSE;
	_this->m_bReverse = FALSE;
	_this->m_bStrings = FALSE;
	_this->m_bTranspose = FALSE;
	_this->m_bZip = FALSE;
	/*}}CGEN_RESETALLOPTIONS*/
	}

	return INVOKE_BASEINST_1(ResetAllOptions,bInit);
}
开发者ID:thias42,项目名称:dLabPro,代码行数:27,代码来源:file.c


示例2: CFsttools_OnRcByUsedPath

INT16 CFsttools_OnRcByUsedPath(CDlpObject* __this)
/* DO NOT CALL THIS FUNCTION FROM C++ SCOPE.     */
/* IT MAY INTERFERE WITH THE INTERPRETER SESSION */
{
    INT16 __nErr    = O_K;
    INT32  __nErrCnt = 0;
    data* idTransRC;
    FLOAT64 nPathWeight;
    INT64 nUnit;
    BOOL bReset;
    data* idUnitTransCount;
    fst* itFst;
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    MIC_CHECK;
    __nErrCnt = CDlpObject_GetErrorCount();
    itFst = MIC_GET_I_EX(itFst,fst,1,1);
    idUnitTransCount = MIC_GET_I_EX(idUnitTransCount,data,2,2);
    bReset = MIC_GET_B(3,0);
    nUnit = (INT64)MIC_GET_N(4,0);
    nPathWeight = MIC_GET_N(5,1);
    idTransRC = MIC_GET_I_EX(idTransRC,data,6,3);
    if (CDlpObject_GetErrorCount()>__nErrCnt) return NOT_EXEC;
    __nErr = CFsttools_RcByUsedPath(_this, idTransRC, nPathWeight, nUnit, bReset, idUnitTransCount, itFst);
    return __nErr;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:25,代码来源:fsttools.c


示例3: CFsttools_IsKindOf

BOOL CFsttools_IsKindOf(CDlpObject* __this, const char* lpClassName)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);

    if (dlp_strncmp(lpClassName,"fsttools",L_NAMES) == 0) return TRUE;
    else return INVOKE_BASEINST_1(IsKindOf,lpClassName);
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:7,代码来源:fsttools.c


示例4: CHelloworld_OnGermanSet

/*{{CGEN_COCCF */
INT16 CHelloworld_OnGermanSet(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CHelloworld,NOT_EXEC);
	{
  	printf(   "\nMake it German, baby!");
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:10,代码来源:helloworld.c


示例5: CFstsearch_OnWnormOffChanged

INT16 CFstsearch_OnWnormOffChanged(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CFstsearch,NOT_EXEC);
	{
  	CFstsearch_Restart(_this);
	}

	return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:9,代码来源:fstsearch.c


示例6: CDlpFile_OnFlistDataChanged

INT16 CDlpFile_OnFlistDataChanged(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CDlpFile,NOT_EXEC);
	{
    _this->m_nLen = CData_GetNRecs(AS(CData,_this->m_idFlistData));
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:9,代码来源:file.c


示例7: CHelloworld_OnGreetingGermanChanged

INT16 CHelloworld_OnGreetingGermanChanged(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CHelloworld,NOT_EXEC);
	{
    if (!dlp_strlen(_this->m_greetingGerman))
      return IERROR(_this,PAR_ERROR,"greeting_german",0,0);
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:10,代码来源:helloworld.c


示例8: CDlpFile_OnExtChanged

/*{{CGEN_CFCCF */
INT16 CDlpFile_OnExtChanged(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CDlpFile,NOT_EXEC);
	{
    /* Remove leading dots */
    while (_this->m_lpsExt[0] == '.') memmove(_this->m_lpsExt,&_this->m_lpsExt[1],dlp_strlen(_this->m_lpsExt));
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:11,代码来源:file.c


示例9: CDlpFile_Serialize

INT16 CDlpFile_Serialize(CDlpObject* __this, CDN3Stream* lpDest)
{
	GET_THIS_VIRTUAL_RV(CDlpFile,NOT_EXEC);
	{
	/*{{CGEN_SAVECODE */
  return SAVE;
	/*}}CGEN_SAVECODE */
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:11,代码来源:file.c


示例10: CHelloworld_Copy

INT16 CHelloworld_Copy(CDlpObject* __this, CDlpObject* __iSrc)
{
	GET_THIS_VIRTUAL_RV(CHelloworld,NOT_EXEC);
	{
	/*{{CGEN_COPYCODE */
  return COPY;
	/*}}CGEN_COPYCODE */
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:11,代码来源:helloworld.c


示例11: CHelloworld_ClassProc

INT16 CHelloworld_ClassProc(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CHelloworld,NOT_EXEC);
	{
	/*{{CGEN_CLASSCODE */
  return CLASSPROC;
	/*}}CGEN_CLASSCODE */
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:11,代码来源:helloworld.c


示例12: CFsttools_Copy

INT16 CFsttools_Copy(CDlpObject* __this, CDlpObject* __iSrc)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    {
        /*{{CGEN_COPYCODE */
        return COPY;
        /*}}CGEN_COPYCODE */
    }

    return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:11,代码来源:fsttools.c


示例13: CDlpFile_Deserialize

INT16 CDlpFile_Deserialize(CDlpObject* __this, CDN3Stream* lpSrc)
{
	GET_THIS_VIRTUAL_RV(CDlpFile,NOT_EXEC);
	{
	/*{{CGEN_RESTORECODE */
  return RESTORE;
	/*}}CGEN_RESTORECODE */
	}

	return O_K;
}
开发者ID:thias42,项目名称:dLabPro,代码行数:11,代码来源:file.c


示例14: CFsttools_DeserializeXml

INT16 CFsttools_DeserializeXml(CDlpObject* __this, CXmlStream* lpSrc)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    {
        /*{{CGEN_RESTORECODE */
        return RESTORE;
        /*}}CGEN_RESTORECODE */
    }

    return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:11,代码来源:fsttools.c


示例15: CFsttools_ClassProc

INT16 CFsttools_ClassProc(CDlpObject* __this)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    {
        /*{{CGEN_CLASSCODE */
        return CLASSPROC;
        /*}}CGEN_CLASSCODE */
    }

    return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:11,代码来源:fsttools.c


示例16: CFsttools_SerializeXml

INT16 CFsttools_SerializeXml(CDlpObject* __this, CXmlStream* lpDest)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    {
        /*{{CGEN_SAVECODE */
        return SAVE;
        /*}}CGEN_SAVECODE */
    }

    return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:11,代码来源:fsttools.c


示例17: CFvrtools_ResetAllOptions

INT16 CFvrtools_ResetAllOptions(CDlpObject* __this, BOOL bInit)
{
	GET_THIS_VIRTUAL_RV(CFvrtools,NOT_EXEC);
	DEBUGMSG(-1,"CFvrtools_ResetAllOptions;",0,0,0);
	{
	/*{{CGEN_RESETALLOPTIONS*/
	/*}}CGEN_RESETALLOPTIONS*/
	}

	return INVOKE_BASEINST_1(ResetAllOptions,bInit);
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:11,代码来源:fvrtools.c


示例18: CFstsearch_AutoRegisterWords

INT16 CFstsearch_AutoRegisterWords(CDlpObject* __this)
{
	GET_THIS_VIRTUAL_RV(CFstsearch,NOT_EXEC);
	DEBUGMSG(-1,"CFstsearch_AutoRegisterWords",0,0,0);

	/* Call base class implementation */
	IF_NOK(INVOKE_BASEINST_0(AutoRegisterWords)) return NOT_EXEC;

	/*{{CGEN_REGISTERWORDS */

	/* Register methods */
	REGISTER_METHOD("-backtrack","",LPMF(CFstsearch,OnBacktrack),"Backtrack from the current decoding state",0,"<fst itDst> <fstsearch this>","")
	REGISTER_METHOD("-isearch","",LPMF(CFstsearch,OnIsearch),"Iterative search: decode frames in idWeights",0,"<data idWeights> <fstsearch this>","")
	REGISTER_METHOD("-load","",LPMF(CFstsearch,OnLoad),"Load the source automaton",0,"<fst itSrc> <long nUnit> <fstsearch this>","")
	REGISTER_METHOD("-restart","",LPMF(CFstsearch,OnRestart),"Reset iterative search",0,"<fstsearch this>","")
	REGISTER_METHOD("-search","",LPMF(CFstsearch,OnSearch),"All steps in one method",0,"<fst itSrc> <long nUnit> <data idWeights> <fst itDst> <fstsearch this>","")
	REGISTER_METHOD("-status","",LPMF(CFstsearch,OnStatus),"Prints status information of the search processor.",0,"<fstsearch this>","")

	/* Register options */
	REGISTER_OPTION("/fast","",LPMV(m_bFast),NULL,"Do not copy the source automaton for backtracking",0)
	REGISTER_OPTION("/final","",LPMV(m_bFinal),NULL,"Decode until a final state is reached",0)
	REGISTER_OPTION("/start","",LPMV(m_bStart),NULL,"Start state in every frame",0)

	/* Register fields */
	REGISTER_FIELD("algo","",LPMV(m_lpsAlgo),LPMF(CFstsearch,OnAlgoChanged),"Search algorithm to use",0,5000,1,"string","tp")
	REGISTER_FIELD("as_aheutype","",LPMV(m_lpsAsAheutype),LPMF(CFstsearch,OnAsAheutypeChanged),"Timeinvariant heurisitc type.",0,5000,1,"string","pot")
	REGISTER_FIELD("as_prnf","",LPMV(m_nAsPrnf),LPMF(CFstsearch,OnAsPrnfChanged),"Frame prune threshold",0,2008,1,"long",(INT64)0)
	REGISTER_FIELD("as_prnw","",LPMV(m_nAsPrnw),LPMF(CFstsearch,OnAsPrnwChanged),"Weight prune threshold",0,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("as_qsize","",LPMV(m_nAsQsize),LPMF(CFstsearch,OnAsQsizeChanged),"Queue size",0,2008,1,"long",(INT64)0)
	REGISTER_FIELD("as_sheutype","",LPMV(m_lpsAsSheutype),LPMF(CFstsearch,OnAsSheutypeChanged),"Timevariant heurisitc type.",0,5000,1,"string","min")
	REGISTER_FIELD("bt","",LPMV(m_lpsBt),LPMF(CFstsearch,OnBtChanged),"Backtrack type",0,5000,1,"string","os")
	REGISTER_FIELD("glob","",LPMV(m_lpGlob),NULL,"Internal use: Search status",FF_HIDDEN | FF_NOSET | FF_NOSAVE,6000,1,"void*",NULL)
	REGISTER_FIELD("latprn","",LPMV(m_nLatprn),LPMF(CFstsearch,OnLatprnChanged),"Lattice pruning threshold",0,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("loaded","",LPMV(m_bLoaded),NULL,"TRUE if a transducer is loaded and the decoder ready",FF_NOSET,1000,1,"bool",(BOOL)FALSE)
	REGISTER_FIELD("mem","",LPMV(m_nMem),NULL,"Memory used for last decoding including backtracking in Bytes",FF_NOSET,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("numpaths","",LPMV(m_nNumpaths),LPMF(CFstsearch,OnNumpathsChanged),"Number of paths to decode",0,2008,1,"long",(INT64)1)
	REGISTER_FIELD("sdp_epsremove","",LPMV(m_bSdpEpsremove),LPMF(CFstsearch,OnSdpEpsremoveChanged),"Removes epsilon transitions",0,1000,1,"bool",(BOOL)FALSE)
	REGISTER_FIELD("sdp_fwd","",LPMV(m_bSdpFwd),LPMF(CFstsearch,OnSdpFwdChanged),"Do forward algorithm instead of sdp",0,1000,1,"bool",(BOOL)FALSE)
	REGISTER_FIELD("sdp_prn","",LPMV(m_nSdpPrn),LPMF(CFstsearch,OnSdpPrnChanged),"Pruning constant",0,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("stkprn","",LPMV(m_bStkprn),LPMF(CFstsearch,OnStkprnChanged),"Prune hypothesis with different pushdown memory",0,1000,1,"bool",(BOOL)FALSE)
	REGISTER_FIELD("time","",LPMV(m_nTime),NULL,"Time used for last decoding including backtracking in milliseconds (only Linux!)",FF_NOSET,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("tp_prnh","",LPMV(m_nTpPrnh),LPMF(CFstsearch,OnTpPrnhChanged),"Hypothesis number pruning threshold",0,2008,1,"long",(INT64)0)
	REGISTER_FIELD("tp_prnw","",LPMV(m_nTpPrnw),LPMF(CFstsearch,OnTpPrnwChanged),"Weight pruning threshold",0,3008,1,"double",(FLOAT64)0)
	REGISTER_FIELD("tp_threads","",LPMV(m_nTpThreads),LPMF(CFstsearch,OnTpThreadsChanged),"Number of threads to use for decoding",0,2008,1,"long",(INT64)1)
	REGISTER_FIELD("wnorm_dec","",LPMV(m_nWnormDec),LPMF(CFstsearch,OnWnormDecChanged),"Weight normalization decrement",0,3008,1,"double",(FLOAT64)0.5)
	REGISTER_FIELD("wnorm_off","",LPMV(m_nWnormOff),LPMF(CFstsearch,OnWnormOffChanged),"Weight normalization offset",0,3008,1,"double",(FLOAT64)10)

	/* Register errors */
	REGISTER_ERROR("~e1_0_0__1",EL_ERROR,FSTS_STR,"%s")
	/*}}CGEN_REGISTERWORDS */

	return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:53,代码来源:fstsearch.c


示例19: CFsttools_Reset

INT16 CFsttools_Reset(CDlpObject* __this, BOOL bResetMembers)
{
    GET_THIS_VIRTUAL_RV(CFsttools,NOT_EXEC);
    DEBUGMSG(-1,"CFsttools_Reset; (bResetMembers=%d)",(int)bResetMembers,0,0);
    {
        /*{{CGEN_RESETCODE */
        RESET;
        /*}}CGEN_RESETCODE */
    }

    return O_K;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:12,代码来源:fsttools.c


示例20: CFstsearch_OnRestart

INT16 CFstsearch_OnRestart(CDlpObject* __this)
/* DO NOT CALL THIS FUNCTION FROM C++ SCOPE.     */
/* IT MAY INTERFERE WITH THE INTERPRETER SESSION */
{
	INT16 __nErr    = O_K;
	INT32  __nErrCnt = 0;
	GET_THIS_VIRTUAL_RV(CFstsearch,NOT_EXEC);
	MIC_CHECK;
	__nErrCnt = CDlpObject_GetErrorCount();
	if (CDlpObject_GetErrorCount()>__nErrCnt) return NOT_EXEC;
	__nErr = CFstsearch_Restart(_this);
	return __nErr;
}
开发者ID:gitgun,项目名称:dLabPro,代码行数:13,代码来源:fstsearch.c



注:本文中的GET_THIS_VIRTUAL_RV函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GET_THREAD_ID函数代码示例发布时间:2022-05-30
下一篇:
C++ GET_TEAM函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap