Lines Matching defs:const
38 inline bool isCurrentTopStatementBlock (const GeneratorState& state)
41 return dynamic_cast<const BlockStatement*>(state.getStatementStackEntry(stackDepth-1)) != DE_NULL;
44 template <class T> float getWeight (const GeneratorState& state) { return T::getWeight(state); }
49 float (*getWeight) (const GeneratorState& state);
53 const StatementSpec* chooseStatement (GeneratorState& state)
55 static const StatementSpec statementSpecs[] =
78 const StatementSpec* spec = DE_NULL;
79 const StatementSpec* lastNonZero = DE_NULL;
128 float ExpressionStatement::getWeight (const GeneratorState& state)
134 void ExpressionStatement::execute (ExecutionContext& execCtx) const
166 catch (const std::exception&)
190 float BlockStatement::getWeight (const GeneratorState& state)
203 void BlockStatement::tokenize (GeneratorState& state, TokenStream& str) const
213 void BlockStatement::execute (ExecutionContext& execCtx) const
219 void ExpressionStatement::tokenize (GeneratorState& state, TokenStream& str) const
229 inline bool canDeclareVariable (const Variable* variable)
234 bool hasDeclarableVars (const VariableManager& varMgr)
236 const vector<Variable*>& liveVars = varMgr.getLiveVariables();
256 const vector<Variable*>& liveVars = state.getVariableManager().getLiveVariables();
271 const ValueEntry* value = state.getVariableManager().getValue(variable);
321 float DeclarationStatement::getWeight (const GeneratorState& state)
332 void DeclarationStatement::tokenize (GeneratorState& state, TokenStream& str) const
345 void DeclarationStatement::execute (ExecutionContext& execCtx) const
368 bool ConditionalStatement::isElseBlockRequired (const GeneratorState& state) const
372 const ConditionalStatement* curChild = this;
377 const ConditionalStatement* curParent = dynamic_cast<const ConditionalStatement*>(state.getStatementStackEntry(curStackNdx));
443 bool isBlockStatement (const Statement* statement)
445 return dynamic_cast<const BlockStatement*>(statement) != DE_NULL;
448 bool isConditionalStatement (const Statement* statement)
450 return dynamic_cast<const ConditionalStatement*>(statement) != DE_NULL;
455 void ConditionalStatement::tokenize (GeneratorState& state, TokenStream& str) const
496 void ConditionalStatement::execute (ExecutionContext& execCtx) const
526 float ConditionalStatement::getWeight (const GeneratorState& state)
535 AssignStatement::AssignStatement (const Variable* variable, Expression* value)
541 AssignStatement::AssignStatement (GeneratorState& state, const Variable* variable, ConstValueRangeAccess valueRange)
555 void AssignStatement::tokenize (GeneratorState& state, TokenStream& str) const
562 void AssignStatement::execute (ExecutionContext& execCtx) const