mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-12-20 16:24:28 +00:00
Compiled function: access to source code
This commit is contained in:
@@ -40,8 +40,14 @@ CompiledDoubleFunction::CompiledDoubleFunction(const unsigned nArg,
|
||||
}
|
||||
|
||||
// access //////////////////////////////////////////////////////////////////////
|
||||
string CompiledDoubleFunction::getCode(void)
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
void CompiledDoubleFunction::setCode(const string &code)
|
||||
{
|
||||
code_ = code;
|
||||
interpreter_.reset(new MathInterpreter(code));
|
||||
context_.reset(new RunContext);
|
||||
varAddress_.reset(new std::vector<unsigned int>);
|
||||
|
||||
Reference in New Issue
Block a user