MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / evaluate

Method evaluate

src/module/simplifymodule.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30Node* SimplifyModule::evaluate(const Context& ctx) const
31{
32 decimal ratio=0.1;
33 auto* numVal=dynamic_cast<NumberValue*>(getParameterArgument(ctx,0));
34 if(numVal)
35 ratio=numVal->getNumber();
36
37 auto* n=new SimplifyNode();
38 n->setRatio(ratio);
39 n->setChildren(ctx.getInputNodes());
40 return n;
41}

Callers

nothing calls this directly

Calls 4

getNumberMethod · 0.80
setRatioMethod · 0.80
getInputNodesMethod · 0.80
setChildrenMethod · 0.45

Tested by

no test coverage detected