Home
last modified time | relevance | path

Searched refs:lContext (Results 1 – 25 of 255) sorted by relevance

1234567891011

/dports/textproc/zorba/zorba-2.7.0/test/api/
H A Duserdefined_uri_resolution.cpp166 "lm:foo()", lContext); in test_module_uri()
186 "lm:foo()", lContext); in test_unresolved_module_uri()
204 lContext->registerURIMapper(&lMapper); in test_component_module_uri()
225 lContext->registerURIMapper(&lMapper); in test_schema_uri()
247 lContext->registerURIMapper(&lMapper); in test_unresolved_schema_uri()
271 lContext->registerURIMapper(&lMapper); in test_deny_internal_module_access()
277 "1 + 1", lContext); in test_deny_internal_module_access()
295 lContext->registerURIMapper(&lMapper); in test_deny_external_module_access()
301 "1 + 1", lContext); in test_deny_external_module_access()
352 lContext->setURIPath(lUriPath); in test_deny_access_import()
[all …]
H A Dvalidate.cpp53 StaticContext_t lContext = aZorba->createStaticContext(); in item_validation() local
57 lContext->registerURIMapper(&lMapper); in item_validation()
65 XQuery_t lQuery = aZorba->compileQuery(lQueryStream.str(), lContext); in item_validation()
73 if (!lContext->validate(lItem, lValidatedItem)) { in item_validation()
90 StaticContext_t lContext = aZorba->createStaticContext(); in item_validation_with_error() local
94 lContext->registerURIMapper(&lMapper); in item_validation_with_error()
102 XQuery_t lQuery = aZorba->compileQuery(lQueryStream.str(), lContext); in item_validation_with_error()
110 if (!lContext->validate(lItem, lValidatedItem)) { in item_validation_with_error()
127 StaticContext_t lContext = aZorba->createStaticContext(); in item_validation_with_error2() local
131 lContext->registerURIMapper(&lMapper); in item_validation_with_error2()
[all …]
/dports/textproc/zorba/zorba-2.7.0/doc/c/examples/
H A Dccontext.c68 XQC_DynamicContext* lContext; in ccontext_example_1() local
86 lError = lContext->set_context_item(lContext, lSeq); in ccontext_example_1()
90 lError = lContext->get_context_item(lContext, &lContextItem); in ccontext_example_1()
102 lContext->free(lContext); in ccontext_example_1()
188 XQC_DynamicContext* lContext; in ccontext_example_4() local
203 lExpr2->create_context(lExpr2, &lContext); in ccontext_example_4()
205 lContext->set_variable(lContext, NULL, "var", lSequence1); in ccontext_example_4()
220 lContext->free(lContext); in ccontext_example_4()
236 XQC_DynamicContext* lContext; in ccontext_example_5() local
254 lError = lContext->set_variable(lContext, "http://www.zorba-xquery.com/", in ccontext_example_5()
[all …]
H A Dcparsing.c53 XQC_DynamicContext* lContext; in parse_test() local
66 lError = lExpr->create_context(lExpr, &lContext); in parse_test()
68 lError = lContext->set_context_item(lContext, doc); in parse_test()
72 lError = lExpr->execute(lExpr, lContext, &lResult); in parse_test()
82 lContext->free(lContext); in parse_test()
H A Dcexternal_functions.c129 XQC_StaticContext* lContext; in external_function_example_1() local
133 impl->create_context(impl, &lContext); in external_function_example_1()
135 lContext->get_interface(lContext, "Zorba_StaticContext"); in external_function_example_1()
144 lContext, &lExpr); in external_function_example_1()
199 lContext->free(lContext); in external_function_example_1()
/dports/devel/open-beagle/beagle-3.0.3/beagle/GP/src/
H A DMutationStandardConstrainedOp.cpp126 lContext.setGenotypeIndex(lChoosenTree); in mutate()
127 lContext.setGenotypeHandle(lActualTree); in mutate()
128 lContext.emptyCallStack(); in mutate()
129 lActualTree->setContextToNode(lChoosenNode, lContext); in mutate()
130 lContext.popCallStack(); in mutate()
134 lContext.setGenotypeHandle(lNewTree); in mutate()
142 lContext.setGenotypeIndex(lOldGenotypeIndex); in mutate()
143 lContext.setGenotypeHandle(lOldGenotypeHandle); in mutate()
165 for(unsigned int l=0; l<lContext.getCallStackSize(); l++) { in mutate()
169 lContext.setGenotypeIndex(lOldGenotypeIndex); in mutate()
[all …]
H A DMutationSwapConstrainedOp.cpp94 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in mutate() local
111 GP::Tree::Handle lOldTreeHandle = lContext.getGenotypeHandle(); in mutate()
112 unsigned int lOldTreeIndex = lContext.getGenotypeIndex(); in mutate()
113 lContext.setGenotypeHandle(lIndividual[lChoosenTree]); in mutate()
114 lContext.setGenotypeIndex(lChoosenTree); in mutate()
139 GP::PrimitiveSet& lPrimitiveSet = lTree.getPrimitiveSet(lContext); in mutate()
141 lTree.setContextToNode(lChoosenNode, lContext); in mutate()
143 Primitive::Handle lChoosenPrimitive = lPrimitiveSet.select(lNbArgsPrimit, lContext); in mutate()
155 if(lTree.validateSubTree(lChoosenNode, lContext)) { in mutate()
174 lContext.setGenotypeHandle(lOldTreeHandle); in mutate()
[all …]
H A DMutationShrinkConstrainedOp.cpp92 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in mutate() local
108 GP::Tree::Handle lOldTreeHandle = lContext.getGenotypeHandle(); in mutate()
109 unsigned int lOldTreeIndex = lContext.getGenotypeIndex(); in mutate()
131 lContext.getSystem().getRandomizer().rollInteger(0, in mutate()
145 lActualTree->setContextToNode(lChoosenNode, lContext); in mutate()
148 for(unsigned int l=0; l<(lContext.getCallStackSize()-1); l++) { in mutate()
162 lContext.setGenotypeHandle(lIndividual[lChoosenTree]); in mutate()
163 lContext.setGenotypeIndex(lChoosenTree); in mutate()
164 if(lIndividual[lChoosenTree]->validateSubTree(lChoosenNode, lContext)) { in mutate()
198 lContext.setGenotypeHandle(lOldTreeHandle); in mutate()
[all …]
H A DValidateOp.cpp61 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in operate() local
64 GP::Individual::Handle lOldIndi = lContext.getIndividualHandle(); in operate()
65 unsigned int lOldIndiIndex = lContext.getIndividualIndex(); in operate()
73 lContext.setIndividualHandle(lIndividual); in operate()
74 lContext.setIndividualIndex(i); in operate()
77 if(!lIndividual->validate(lContext)) { in operate()
89 lContext.setIndividualHandle(lOldIndi); in operate()
90 lContext.setIndividualIndex(lOldIndiIndex); in operate()
H A DMutationSwapOp.cpp115 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in mutate() local
119 GP::Tree::Handle lOldTreeHandle = lContext.getGenotypeHandle(); in mutate()
120 unsigned int lOldTreeIndex = lContext.getGenotypeIndex(); in mutate()
136 lContext.setGenotypeHandle(lIndividual[lChosenTree]); in mutate()
137 lContext.setGenotypeIndex(lChosenTree); in mutate()
149 lChosenNode = lContext.getSystem().getRandomizer().rollInteger(0, lTree.size()-1); in mutate()
163 GP::PrimitiveSet& lPrimitiveSet = lTree.getPrimitiveSet(lContext); in mutate()
167 Primitive::Handle lChosenPrimitive = lPrimitiveSet.select(lNbArgsPrimit, lContext); in mutate()
186 lTree[lChosenNode].mPrimitive = lChosenPrimitive->giveReference(lNbArgsPrimit, lContext); in mutate()
189 lContext.setGenotypeHandle(lOldTreeHandle); in mutate()
[all …]
H A DMutationStandardOp.cpp138 unsigned int lOldGenotypeIndex = lContext.getGenotypeIndex(); in mutate()
155 lContext.setGenotypeIndex(lChosenTree); in mutate()
156 lContext.setGenotypeHandle(lOriginalTree); in mutate()
157 lContext.emptyCallStack(); in mutate()
159 lOriginalTree->setContextToNode(lChosenNode, lContext); in mutate()
160 lContext.popCallStack(); in mutate()
161 unsigned int lChosenNodeDepth = lContext.getCallStackSize(); in mutate()
223 lContext.setGenotypeHandle(lNewTree); in mutate()
229 mInitOp->initTree(*lInitTree, 1, lMaxMutationDepth, lContext); in mutate()
271 lContext.setGenotypeIndex(lOldGenotypeIndex); in mutate()
[all …]
H A DInitializationOp.cpp166 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in initIndividual() local
168 const unsigned int lPrimitiveSuperSetSize = lContext.getSystem().getPrimitiveSuperSet().size(); in initIndividual()
187 GP::Tree::Handle lOldTreeHandle = lContext.getGenotypeHandle(); in initIndividual()
188 unsigned int lOldTreeIndex = lContext.getGenotypeIndex(); in initIndividual()
202 lContext.setGenotypeHandle(lIndividual[i]); in initIndividual()
203 lContext.setGenotypeIndex(i); in initIndividual()
205 lContext.getSystem().getRandomizer().rollInteger(lMinDepth,lMaxDepth); in initIndividual()
206 lContext.emptyCallStack(); in initIndividual()
208 initTree(*lIndividual[i], lMinDepth, lTreeDepth, lContext); in initIndividual()
217 lContext.setGenotypeIndex(lOldTreeIndex); in initIndividual()
[all …]
H A DMutationShrinkOp.cpp94 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in mutate() local
120 GP::Tree::Handle lOldTreeHandle = lContext.getGenotypeHandle(); in mutate()
121 unsigned int lOldTreeIndex = lContext.getGenotypeIndex(); in mutate()
134 unsigned int lChosenArg = lContext.getSystem().getRandomizer().rollInteger(0, in mutate()
148 lActualTree->setContextToNode(lChosenNode, lContext); in mutate()
151 for(unsigned int l=0; l<(lContext.getCallStackSize()-1); l++) { in mutate()
152 (*lIndividual[lChosenTree])[lContext.getCallStackElement(l)].mSubTreeSize -= lDiffSize; in mutate()
165 lContext.setGenotypeHandle(lOldTreeHandle); in mutate()
166 lContext.setGenotypeIndex(lOldTreeIndex); in mutate()
/dports/devel/open-beagle/beagle-3.0.3/beagle/src/
H A DEvaluationMultipleOp.cpp107 lContext.getSystem().getLogger(), in enlargeGroup()
118 Deme& lDeme = lContext.getDeme(); in enlargeGroup()
149 lContext.getSystem().getLogger(), in enlargeGroup()
239 lContext.getSystem().getLogger(), in evaluateIndividuals()
264 lContext.getSystem().getLogger(), in evaluateIndividuals()
277 lContext.getSystem().getLogger(), in evaluateIndividuals()
284 lContext.getSystem().getLogger(), in evaluateIndividuals()
316 lContext.getSystem().getLogger(), in evaluateIndividuals()
336 lContext.getSystem().getLogger(), in evaluateIndividuals()
404 Context::Handle lContext = in operate() local
[all …]
H A DIndividualBag.cpp98 Context::Handle lContext = castHandleT<Context>(ioSystem.getContextAllocator().allocate()); in readFromFile() local
99 lContext->setSystemHandle(&ioSystem); in readFromFile()
112 lContext->setIndividualHandle((*this)[lBackIndex]); in readFromFile()
113 lContext->setIndividualIndex(lBackIndex); in readFromFile()
114 (*this)[lBackIndex]->readWithContext(lIter, *lContext); in readFromFile()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.expression/src/test/java/org/springframework/expression/spel/
H A DSetValueTests.java199 StandardEvaluationContext lContext = TestScenarioCreator.getTestEvaluationContext(); in setValueExpectError() local
200 e.setValue(lContext, value); in setValueExpectError()
219 StandardEvaluationContext lContext = TestScenarioCreator.getTestEvaluationContext(); in setValue() local
220 Assert.assertTrue("Expression is not writeable but should be", e.isWritable(lContext)); in setValue()
221 e.setValue(lContext, value); in setValue()
222 …Assert.assertEquals("Retrieved value was not equal to set value", value, e.getValue(lContext,value… in setValue()
245 StandardEvaluationContext lContext = TestScenarioCreator.getTestEvaluationContext(); in setValue() local
246 Assert.assertTrue("Expression is not writeable but should be", e.isWritable(lContext)); in setValue()
247 e.setValue(lContext, value); in setValue()
249 Object b = e.getValue(lContext); in setValue()
/dports/textproc/zorba/zorba-2.7.0/doc/cxx/examples/
H A Duri_resolvers.cpp98 StaticContext_t lContext = aZorba->createStaticContext(); in resolver_example_1() local
102 lContext->registerURLResolver(&lResolver); in resolver_example_1()
105 …ileQuery("import module namespace lm='http://www.zorba-xquery.com/mymodule'; lm:foo()", lContext); in resolver_example_1()
115 …ileQuery("import module namespace lm='http://www.zorba-xquery.com/mymodule'; lm:foo()", lContext); in resolver_example_1()
136 StaticContext_t lContext = aZorba->createStaticContext(); in resolver_example_2() local
140 lContext->registerURIMapper(&lMapper); in resolver_example_2()
146 "validate{ <p>Hello World!</p> }", lContext); in resolver_example_2()
H A Dcontext.cpp315 StaticContext_t lContext = aZorba->createStaticContext(); in context_example_10() local
322 lContext->findFunctions(lQName, lFunctions); in context_example_10()
334 lContext->disableFunction(*lIter); in context_example_10()
339 XQuery_t lQuery = aZorba->compileQuery("fn:doc('test.xml')", lContext); in context_example_10()
404 StaticContext_t lContext = aZorba->createStaticContext(); in context_example_11() local
406 lContext->registerURLResolver(&lResolver); in context_example_11()
417 lContext->loadProlog(lProlog.str(), hints); in context_example_11()
449 StaticContext_t lContext = aZorba->createStaticContext(); in context_example_12() local
452 lContext->declareOption(lTraceQName, "enable"); in context_example_12()
453 lContext->setTraceStream(lTraceStream); in context_example_12()
[all …]
/dports/devel/open-beagle/beagle-3.0.3/beagle/GP/include/beagle/GP/
H A DMutationEphemeralOpT.hpp182 GP::Context& lContext = castObjectT<GP::Context&>(ioContext); in mutate() local
208 unsigned int lOldGenotypeIndex = lContext.getGenotypeIndex(); in mutate()
209 GP::Tree::Handle lOldGenotypeHandle = lContext.getGenotypeHandle(); in mutate()
213 lContext.getSystem().getRandomizer().rollInteger(0,lPotentialParam.size()-1); in mutate()
215 lContext.setGenotypeIndex(lPotentialParam[lSelectedParam].first); in mutate()
216 lContext.setGenotypeHandle(lSelectedTree); in mutate()
232 lSelectedEphemeral->generate(mEphemeralName->getWrappedValue(), lContext); in mutate()
243 lContext.setGenotypeIndex(lOldGenotypeIndex); in mutate()
244 lContext.setGenotypeHandle(lOldGenotypeHandle); in mutate()
/dports/devel/open-beagle/beagle-3.0.3/tests/Roulette/
H A DtestRoulette.cpp12 Beagle::Context lContext; in main() local
13 lContext.setSystemHandle( lSystem ); in main()
20 cout << "Selection: " << lRoulette.select(lContext.getSystem().getRandomizer()) << endl; in main()
22 cout << "Selection: " << lRoulette.select(lContext.getSystem().getRandomizer()) << endl; in main()
/dports/textproc/zorba/zorba-2.7.0/test/rbkt/
H A Dtestdriver.cpp191 addURIMapper(driverContext, lContext, smapper.get() ); in _tmain()
192 addURIMapper(driverContext, lContext, mmapper.get() ); in _tmain()
193 addURIMapper(driverContext, lContext, cmapper.get() ); in _tmain()
196 lContext->setXQueryVersion( zorba::xquery_version_1_0 ); in _tmain()
204 lContext->declareOption(lEnable, "hof"); in _tmain()
205 lContext->declareOption(lDisable, "scripting"); in _tmain()
250 addURIMapper(driverContext, lContext, dmapper.get()); in _tmain()
252 addURLResolver(driverContext, lContext, tresolver.get()); in _tmain()
256 setOptions(driverContext, lContext); in _tmain()
260 setFullTextURIMappers(driverContext, lContext); in _tmain()
[all …]
/dports/lang/zig/zig-0.9.0/lib/libc/include/any-windows-any/
H A Dvsprov.h28 …STDMETHOD_(HRESULT,AreLunsSupported)(THIS_ LONG lLunCount,LONG lContext,VSS_PWSZ *rgwszDevices,VDS… in DECLARE_INTERFACE_()
30 …BeginPrepareSnapshot)(THIS_ VSS_ID SnapshotSetId,VSS_ID SnapshotId,LONG lContext,LONG lLunCount,VS… in DECLARE_INTERFACE_()
41 …ported(This,lLunCount,lContext,rgwszDevices,pLunInformation,pbIsSupported) (This)->lpVtbl->AreLuns… argument
43 …d,SnapshotId,lContext,lLunCount,rgDeviceNames,rgLunInformation) (This)->lpVtbl->BeginPrepareSnapsh… argument
66 …STDMETHOD_(HRESULT,AreLunsSupported)(THIS_ LONG lLunCount,LONG lContext,VSS_PWSZ *rgwszDevices,VDS… in DECLARE_INTERFACE_()
68 …BeginPrepareSnapshot)(THIS_ VSS_ID SnapshotSetId,VSS_ID SnapshotId,LONG lContext,LONG lLunCount,VS… in DECLARE_INTERFACE_()
85 …ported(This,lLunCount,lContext,rgwszDevices,pLunInformation,pbIsSupported) (This)->lpVtbl->AreLuns… argument
87 …d,SnapshotId,lContext,lLunCount,rgDeviceNames,rgLunInformation) (This)->lpVtbl->BeginPrepareSnapsh… argument
179 STDMETHOD_(HRESULT,SetContext)(THIS_ LONG lContext) PURE; in DECLARE_INTERFACE_()
196 …efine IVssSoftwareSnapshotProvider_SetContext(This,lContext) (This)->lpVtbl->SetContext(This,lCont… argument
/dports/lang/zig-devel/zig-0.9.0/lib/libc/include/any-windows-any/
H A Dvsprov.h28 …STDMETHOD_(HRESULT,AreLunsSupported)(THIS_ LONG lLunCount,LONG lContext,VSS_PWSZ *rgwszDevices,VDS… in DECLARE_INTERFACE_()
30 …BeginPrepareSnapshot)(THIS_ VSS_ID SnapshotSetId,VSS_ID SnapshotId,LONG lContext,LONG lLunCount,VS… in DECLARE_INTERFACE_()
41 …ported(This,lLunCount,lContext,rgwszDevices,pLunInformation,pbIsSupported) (This)->lpVtbl->AreLuns… argument
43 …d,SnapshotId,lContext,lLunCount,rgDeviceNames,rgLunInformation) (This)->lpVtbl->BeginPrepareSnapsh… argument
66 …STDMETHOD_(HRESULT,AreLunsSupported)(THIS_ LONG lLunCount,LONG lContext,VSS_PWSZ *rgwszDevices,VDS… in DECLARE_INTERFACE_()
68 …BeginPrepareSnapshot)(THIS_ VSS_ID SnapshotSetId,VSS_ID SnapshotId,LONG lContext,LONG lLunCount,VS… in DECLARE_INTERFACE_()
85 …ported(This,lLunCount,lContext,rgwszDevices,pLunInformation,pbIsSupported) (This)->lpVtbl->AreLuns… argument
87 …d,SnapshotId,lContext,lLunCount,rgDeviceNames,rgLunInformation) (This)->lpVtbl->BeginPrepareSnapsh… argument
179 STDMETHOD_(HRESULT,SetContext)(THIS_ LONG lContext) PURE; in DECLARE_INTERFACE_()
196 …efine IVssSoftwareSnapshotProvider_SetContext(This,lContext) (This)->lpVtbl->SetContext(This,lCont… argument
/dports/cad/opencascade/opencascade-7.6.0/doc/refman/html/
H A Dclass_step_repr___representation_context__inherit__graph.map2 …ic_representation_context.html" title="StepGeom_GeometricRepresentation\lContext" alt="" coords="4…
4 …e="StepGeom_GeometricRepresentation\lContextAndParametricRepresentation\lContext" alt="" coords="4…
7 …__global_unit_assigned_context.html" title="StepRepr_GlobalUnitAssigned\lContext" alt="" coords="4…
8 …c_representation_context.html" title="StepRepr_ParametricRepresentation\lContext" alt="" coords="4…
/dports/devel/open-beagle/beagle-3.0.3/tests/GP/WriteRandomGPIndividual/
H A DWriteRandomGPIndividual.cpp40 Beagle::GP::Context lContext; in main() local
41 lContext.setSystemHandle(lSystem); in main()
48 lInitHalfOp->initIndividual( *lIndividual, lContext ); in main()

1234567891011