这篇教程C++ ConstructData函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中ConstructData函数的典型用法代码示例。如果您正苦于以下问题:C++ ConstructData函数的具体用法?C++ ConstructData怎么用?C++ ConstructData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了ConstructData函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: WatchMethod/********************************************************************** NAME : WatchMethod DESCRIPTION : Prints out a trace of the beginning or end of the execution of a generic function method INPUTS : A string to indicate beginning or end of execution RETURNS : Nothing useful SIDE EFFECTS : None NOTES : Uses the globals CurrentGeneric, CurrentMethod, ProcParamArraySize and ProcParamArray for other trace info **********************************************************************/static void WatchMethod( Environment *theEnv, const char *tstring) { if (ConstructData(theEnv)->ClearReadyInProgress || ConstructData(theEnv)->ClearInProgress) { return; } WriteString(theEnv,STDOUT,"MTH "); WriteString(theEnv,STDOUT,tstring); WriteString(theEnv,STDOUT," "); if (DefgenericData(theEnv)->CurrentGeneric->header.whichModule->theModule != GetCurrentModule(theEnv)) { WriteString(theEnv,STDOUT,DefgenericModule(DefgenericData(theEnv)->CurrentGeneric)); WriteString(theEnv,STDOUT,"::"); } WriteString(theEnv,STDOUT,DefgenericData(theEnv)->CurrentGeneric->header.name->contents); WriteString(theEnv,STDOUT,":#"); if (DefgenericData(theEnv)->CurrentMethod->system) WriteString(theEnv,STDOUT,"SYS"); PrintUnsignedInteger(theEnv,STDOUT,DefgenericData(theEnv)->CurrentMethod->index); WriteString(theEnv,STDOUT," "); WriteString(theEnv,STDOUT," ED:"); WriteInteger(theEnv,STDOUT,EvaluationData(theEnv)->CurrentEvaluationDepth); PrintProcParamArray(theEnv,STDOUT); }
开发者ID:DrItanium,项目名称:maya,代码行数:38,
示例2: RemoveConstructbool RemoveConstruct( Environment *theEnv, const char *name) { Construct *currentPtr, *lastPtr = NULL; for (currentPtr = ConstructData(theEnv)->ListOfConstructs; currentPtr != NULL; currentPtr = currentPtr->next) { if (strcmp(name,currentPtr->constructName) == 0) { if (lastPtr == NULL) { ConstructData(theEnv)->ListOfConstructs = currentPtr->next; } else { lastPtr->next = currentPtr->next; } rtn_struct(theEnv,construct,currentPtr); return true; } lastPtr = currentPtr; } return false; }
开发者ID:DrItanium,项目名称:maya,代码行数:25,
示例3: ReplaceClassNameWithReference/*************************************************** NAME : ReplaceClassNameWithReference DESCRIPTION : In parsing a make instance call, this function replaces a constant class name with an actual pointer to the class INPUTS : The expression RETURNS : TRUE if all OK, FALSE if class cannot be found SIDE EFFECTS : The expression type and value are modified if class is found NOTES : Searches current nd imported modules for reference CHANGES : It's now possible to create an instance of a class that's not in scope if the module name is specified. ***************************************************/static intBool ReplaceClassNameWithReference( void *theEnv, EXPRESSION *theExp) { const char *theClassName; void *theDefclass; if (theExp->type == SYMBOL) { theClassName = ValueToString(theExp->value); //theDefclass = (void *) LookupDefclassInScope(theEnv,theClassName); theDefclass = (void *) LookupDefclassByMdlOrScope(theEnv,theClassName); // Module or scope is now allowed if (theDefclass == NULL) { CantFindItemErrorMessage(theEnv,"class",theClassName); return(FALSE); } if (EnvClassAbstractP(theEnv,theDefclass)) { PrintErrorID(theEnv,"INSMNGR",3,FALSE); EnvPrintRouter(theEnv,WERROR,"Cannot create instances of abstract class "); EnvPrintRouter(theEnv,WERROR,theClassName); EnvPrintRouter(theEnv,WERROR,"./n"); return(FALSE); } theExp->type = DEFCLASS_PTR; theExp->value = theDefclass; #if (! RUN_TIME) && (! BLOAD_ONLY) if (! ConstructData(theEnv)->ParsingConstruct) { ConstructData(theEnv)->DanglingConstructs++; }#endif } return(TRUE); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:52,
示例4: AddSaveFunctiongloble BOOLEAN AddSaveFunction( void *theEnv, char *name, void (*functionPtr)(void *,void *,char *), int priority) {#if (MAC_MCW || IBM_MCW) && (RUN_TIME || BLOAD_ONLY)#pragma unused(name)#pragma unused(functionPtr)#pragma unused(priority)#endif#if (! RUN_TIME) && (! BLOAD_ONLY) ConstructData(theEnv)->ListOfSaveFunctions = AddFunctionToCallList(theEnv,name,priority, (void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfSaveFunctions,TRUE);#else#if MAC_MCW || IBM_MCW#pragma unused(theEnv)#endif#endif return(1); }
开发者ID:pandaxcl,项目名称:CLIPS-unicode,代码行数:25,
示例5: RemoveConstructgloble int RemoveConstruct( void *theEnv, const char *name) { struct construct *currentPtr, *lastPtr = NULL; for (currentPtr = ConstructData(theEnv)->ListOfConstructs; currentPtr != NULL; currentPtr = currentPtr->next) { if (strcmp(name,currentPtr->constructName) == 0) { if (lastPtr == NULL) { ConstructData(theEnv)->ListOfConstructs = currentPtr->next; } else { lastPtr->next = currentPtr->next; } rtn_struct(theEnv,construct,currentPtr); return(TRUE); } lastPtr = currentPtr; } return(FALSE); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:25,
示例6: AddSaveFunctiongloble intBool AddSaveFunction( void *theEnv, EXEC_STATUS, char *name, void (*functionPtr)(void *,EXEC_STATUS,void *,char *), int priority) {#if (MAC_MCW || WIN_MCW) && (RUN_TIME || BLOAD_ONLY)#pragma unused(name)#pragma unused(functionPtr)#pragma unused(priority)#endif#if (! RUN_TIME) && (! BLOAD_ONLY) ConstructData(theEnv,execStatus)->ListOfSaveFunctions = AddFunctionToCallList(theEnv,execStatus,name,priority, (void (*)(void *,EXEC_STATUS)) functionPtr, ConstructData(theEnv,execStatus)->ListOfSaveFunctions,TRUE);#else#if MAC_MCW || WIN_MCW || MAC_XCD#pragma unused(theEnv,execStatus)#endif#endif return(1); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:26,
示例7: intgloble int (*SetBeforeResetFunction(void *theEnv, int (*theFunction)(void *)))(void *) { int (*tempFunction)(void *); tempFunction = ConstructData(theEnv)->BeforeResetFunction; ConstructData(theEnv)->BeforeResetFunction = theFunction; return(tempFunction); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:9,
示例8: ConstructDataBeforeResetFunction *SetBeforeResetFunction( Environment *theEnv, BeforeResetFunction *theFunction) { BeforeResetFunction *tempFunction; tempFunction = ConstructData(theEnv)->BeforeResetCallback; ConstructData(theEnv)->BeforeResetCallback = theFunction; return tempFunction; }
开发者ID:DrItanium,项目名称:maya,代码行数:10,
示例9: voidgloble void (*EnvSetParserErrorCallback(void *theEnv, void (*functionPtr)(void *,const char *,const char *,const char *,long))) (void *,const char *,const char *,const char*,long) { void (*tmpPtr)(void *,const char *,const char *,const char *,long); tmpPtr = ConstructData(theEnv)->ParserErrorCallback; ConstructData(theEnv)->ParserErrorCallback = functionPtr; return(tmpPtr); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:10,
示例10: ParseConstructgloble int ParseConstruct( void *theEnv, char *name, char *logicalName) { struct construct *currentPtr; int rv, ov; /*=================================*/ /* Look for a valid construct name */ /* (e.g. defrule, deffacts). */ /*=================================*/ currentPtr = FindConstruct(theEnv,name); if (currentPtr == NULL) return(-1); /*==================================*/ /* Prepare the parsing environment. */ /*==================================*/ ov = GetHaltExecution(theEnv); SetEvaluationError(theEnv,FALSE); SetHaltExecution(theEnv,FALSE); ClearParsedBindNames(theEnv); PushRtnBrkContexts(theEnv); ExpressionData(theEnv)->ReturnContext = FALSE; ExpressionData(theEnv)->BreakContext = FALSE; EvaluationData(theEnv)->CurrentEvaluationDepth++; /*=======================================*/ /* Call the construct's parsing routine. */ /*=======================================*/ ConstructData(theEnv)->ParsingConstruct = TRUE; rv = (*currentPtr->parseFunction)(theEnv,logicalName); ConstructData(theEnv)->ParsingConstruct = FALSE; /*===============================*/ /* Restore environment settings. */ /*===============================*/ EvaluationData(theEnv)->CurrentEvaluationDepth--; PopRtnBrkContexts(theEnv); ClearParsedBindNames(theEnv); SetPPBufferStatus(theEnv,OFF); SetHaltExecution(theEnv,ov); /*==============================*/ /* Return the status of parsing */ /* the construct. */ /*==============================*/ return(rv); }
开发者ID:Anusaaraka,项目名称:anusaaraka,代码行数:55,
示例11: EnvRemoveResetFunctionbool EnvRemoveResetFunction( void *theEnv, const char *name) { bool found; ConstructData(theEnv)->ListOfResetFunctions = RemoveFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfResetFunctions,&found); return found; }
开发者ID:guitarpoet,项目名称:php-clips,代码行数:11,
示例12: RemoveResetFunctionbool RemoveResetFunction( Environment *theEnv, const char *name) { bool found; ConstructData(theEnv)->ListOfResetFunctions = RemoveVoidFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfResetFunctions,&found); return found; }
开发者ID:DrItanium,项目名称:maya,代码行数:11,
示例13: intgloble int (*SetBeforeResetFunction( void *theEnv, EXEC_STATUS, int (*theFunction)(void *,EXEC_STATUS)))(void *,EXEC_STATUS) { int (*tempFunction)(void *,EXEC_STATUS); tempFunction = ConstructData(theEnv,execStatus)->BeforeResetFunction; ConstructData(theEnv,execStatus)->BeforeResetFunction = theFunction; return(tempFunction); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:11,
示例14: EnvAddResetFunctiongloble intBool EnvAddResetFunction( void *theEnv, const char *name, void (*functionPtr)(void *), int priority) { ConstructData(theEnv)->ListOfResetFunctions = AddFunctionToCallList(theEnv,name,priority, functionPtr, ConstructData(theEnv)->ListOfResetFunctions,TRUE); return(TRUE); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:11,
示例15: EnvAddResetFunctiongloble intBool EnvAddResetFunction( void *theEnv, EXEC_STATUS, char *name, void (*functionPtr)(void *,EXEC_STATUS), int priority) { ConstructData(theEnv,execStatus)->ListOfResetFunctions = AddFunctionToCallList(theEnv,execStatus,name,priority, functionPtr, ConstructData(theEnv,execStatus)->ListOfResetFunctions,TRUE); return(TRUE); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:12,
示例16: EnvAddClearFunctiongloble BOOLEAN EnvAddClearFunction( void *theEnv, char *name, void (*functionPtr)(void *), int priority) { ConstructData(theEnv)->ListOfClearFunctions = AddFunctionToCallList(theEnv,name,priority, (void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfClearFunctions,TRUE); return(1); }
开发者ID:pandaxcl,项目名称:CLIPS-unicode,代码行数:12,
示例17: EnvAddClearFunctionbool EnvAddClearFunction( void *theEnv, const char *name, void (*functionPtr)(void *), int priority) { ConstructData(theEnv)->ListOfClearFunctions = AddFunctionToCallList(theEnv,name,priority, (void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfClearFunctions); return(true); }
开发者ID:guitarpoet,项目名称:php-clips,代码行数:12,
示例18: AddClearReadyFunctiongloble intBool AddClearReadyFunction( void *theEnv, const char *name, int (*functionPtr)(void *), int priority) { ConstructData(theEnv)->ListOfClearReadyFunctions = AddFunctionToCallList(theEnv,name,priority, (void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfClearReadyFunctions,TRUE); return(1); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:12,
示例19: AddClearFunctionbool AddClearFunction( Environment *theEnv, const char *name, VoidCallFunction *functionPtr, int priority, void *context) { ConstructData(theEnv)->ListOfClearFunctions = AddVoidFunctionToCallList(theEnv,name,priority,functionPtr, ConstructData(theEnv)->ListOfClearFunctions,context); return true; }
开发者ID:DrItanium,项目名称:maya,代码行数:12,
示例20: EnvRemoveClearFunctionbool EnvRemoveClearFunction( void *theEnv, const char *name) { bool found; ConstructData(theEnv)->ListOfClearFunctions = RemoveFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfClearFunctions,&found); if (found) return(true); return(false); }
开发者ID:guitarpoet,项目名称:php-clips,代码行数:13,
示例21: AddClearReadyFunctiongloble intBool AddClearReadyFunction( void *theEnv, EXEC_STATUS, char *name, int (*functionPtr)(void *,EXEC_STATUS), int priority) { ConstructData(theEnv,execStatus)->ListOfClearReadyFunctions = AddFunctionToCallList(theEnv,execStatus,name,priority, (void (*)(void *,EXEC_STATUS)) functionPtr, ConstructData(theEnv,execStatus)->ListOfClearReadyFunctions,TRUE); return(1); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:13,
示例22: AddResetFunctiongloble intBool AddResetFunction( char *name, void (*functionPtr)(void), int priority) { void *theEnv = GetCurrentEnvironment(); EXEC_STATUS = GetCurrentExecutionStatus(); ConstructData(theEnv,execStatus)->ListOfResetFunctions = AddFunctionToCallList(theEnv,execStatus,name,priority,(void (*)(void *,EXEC_STATUS)) functionPtr, ConstructData(theEnv,execStatus)->ListOfResetFunctions,FALSE); return(TRUE); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:13,
示例23: RemoveClearFunctionbool RemoveClearFunction( Environment *theEnv, const char *name) { bool found; ConstructData(theEnv)->ListOfClearFunctions = RemoveVoidFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfClearFunctions,&found); if (found) return true; return false; }
开发者ID:DrItanium,项目名称:maya,代码行数:13,
示例24: EnvRemoveResetFunctiongloble BOOLEAN EnvRemoveResetFunction( void *theEnv, char *name) { int found; ConstructData(theEnv)->ListOfResetFunctions = RemoveFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfResetFunctions,&found); if (found) return(TRUE); return(FALSE); }
开发者ID:pandaxcl,项目名称:CLIPS-unicode,代码行数:13,
示例25: EnvRemoveClearFunctiongloble intBool EnvRemoveClearFunction( void *theEnv, const char *name) { int found; ConstructData(theEnv)->ListOfClearFunctions = RemoveFunctionFromCallList(theEnv,name,ConstructData(theEnv)->ListOfClearFunctions,&found); if (found) return(TRUE); return(FALSE); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:13,
示例26: AddResetFunctiongloble intBool AddResetFunction( const char *name, void (*functionPtr)(void), int priority) { void *theEnv; theEnv = GetCurrentEnvironment(); ConstructData(theEnv)->ListOfResetFunctions = AddFunctionToCallList(theEnv,name,priority,(void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfResetFunctions,FALSE); return(TRUE); }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:14,
示例27: EnvRemoveClearFunctiongloble intBool EnvRemoveClearFunction( void *theEnv, EXEC_STATUS, char *name) { int found; ConstructData(theEnv,execStatus)->ListOfClearFunctions = RemoveFunctionFromCallList(theEnv,execStatus,name,ConstructData(theEnv,execStatus)->ListOfClearFunctions,&found); if (found) return(TRUE); return(FALSE); }
开发者ID:atrniv,项目名称:CLIPS,代码行数:14,
示例28: AddClearFunctiongloble BOOLEAN AddClearFunction( char *name, void (*functionPtr)(void), int priority) { void *theEnv; theEnv = GetCurrentEnvironment(); ConstructData(theEnv)->ListOfClearFunctions = AddFunctionToCallList(theEnv,name,priority, (void (*)(void *)) functionPtr, ConstructData(theEnv)->ListOfClearFunctions,FALSE); return(1); }
开发者ID:pandaxcl,项目名称:CLIPS-unicode,代码行数:15,
示例29: DecrementDefclassBusyCount/*************************************************** NAME : DecrementDefclassBusyCount DESCRIPTION : Decrements use count of defclass INPUTS : The class RETURNS : Nothing useful SIDE EFFECTS : Busy count decremented NOTES : Since use counts are ignored on a clear and defclasses might be deleted already anyway, this is a no-op on a clear ***************************************************/globle void DecrementDefclassBusyCount( void *theEnv, void *theDefclass) { if (! ConstructData(theEnv)->ClearInProgress) ((DEFCLASS *) theDefclass)->busy--; }
开发者ID:femto,项目名称:rbclips,代码行数:18,
注:本文中的ConstructData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ Consume函数代码示例 C++ Construct函数代码示例 |