|
| | StandardEngine (std::pmr::memory_resource *mr) |
| std::pmr::memory_resource * | resource () const noexcept |
|
void | registerBinaryOp (const std::string &op, BinaryOpFunc func) |
|
void | registerUnaryOp (const std::string &op, UnaryOpFunc func) |
|
void | registerFunction (const std::string &name, ExternalFunc func) |
|
void | registerFunction (const std::string &ns, const std::string &name, ExternalFunc func) |
|
void | registerClass (BuiltinClass cls) |
|
const BuiltinClass * | findClass (const std::string &name) const |
|
void | registerCallbackBuiltin (const std::string &name, std::shared_ptr< CallbackBuiltin > cb) |
|
CallbackBuiltin * | callbackBuiltin (const std::string &name) const |
|
bool | isUserCodeHandle (const Value &handle) const |
|
void | registerBuiltinMSource (const std::string &src) |
|
void | registerBuiltinClassSource (const std::string &src) |
|
void | reinstallBuiltinSources () |
|
void | registerClassDef (const ASTNode *classdef, const std::string &qualifiedName="") |
|
void | clearClassDefs () |
|
std::vector< Value > | invokeClassMethod (const UserFunction &uf, Span< const Value > args, size_t nout) |
|
Value | invokeClassCtor (const UserFunction &ctor, const Value &seed, Span< const Value > args) |
|
const BytecodeChunk * | ensureClassMethodChunk (const UserFunction &uf) |
|
void | enforceMethodAccess (const std::string &className, const std::string &method) |
|
const UserFunction * | classGetter (const std::string &className, const std::string &prop) const |
|
const UserFunction * | classSetter (const std::string &className, const std::string &prop) const |
|
void | enforcePropGetAccess (const std::string &className, const std::string &prop) |
|
void | enforcePropSetAccess (const std::string &className, const std::string &prop) |
|
const BytecodeChunk * | resolveBinaryOpChunk (const std::string &op, const Value &lhs, const Value &rhs, std::string &ownerClassOut) |
|
const BytecodeChunk * | resolveUnaryOpChunk (const std::string &op, const Value &operand, std::string &ownerClassOut) |
|
const BytecodeChunk * | resolveSubsrefChunk (const Value &self, Span< const Value > idx, std::string &ownerClassOut, std::vector< Value > &argsOut) |
|
const BytecodeChunk * | resolveSubsasgnChunk (const Value &self, Span< const Value > idxAndVal, std::string &ownerClassOut, std::vector< Value > &argsOut) |
|
Value | superConstruct (const std::string &base, const Value &seed, Span< const Value > args) |
|
std::vector< Value > | superMethod (const std::string &base, const std::string &method, Span< const Value > args, size_t nout) |
|
void | pushClassCtx (std::string className, bool isCtor) |
|
void | popClassCtx () |
|
bool | classCtxAllows (const std::string &declClass, bool privateOnly) const |
|
bool | classCtxInCtorOf (const std::string &declClass) const |
|
Value | constructChecked (const BuiltinClass *cls, Span< const Value > args, CallContext &ctx) |
|
Value | makeDefaultInstance (const std::string &className) |
|
const UserFunction * | classCtor (const std::string &className) const |
|
void | enforceCtorAccess (const std::string &className) |
|
std::string | formatObjectDisplay (const std::string &name, const Value &obj) const |
|
void | displayObject (const std::string &name, const Value &obj) |
|
bool | tryObjectBinaryOp (const std::string &op, const Value &lhs, const Value &rhs, Environment *env, Value &out) |
|
bool | tryObjectUnaryOp (const std::string &op, const Value &operand, Environment *env, Value &out) |
|
Value | applyBinaryOp (const std::string &op, const Value &lhs, const Value &rhs) |
|
Value | applyUnaryOp (const std::string &op, const Value &operand) |
|
void | objectStoreSlice (Value &dst, const std::vector< std::vector< size_t > > &perDim, const Value &val, Environment *env) |
|
bool | tryObjectSubsref (Value &self, Span< const Value > args, std::size_t nargout, Value &out, Environment *env) |
| const std::vector< std::string > & | namespaces () const |
| const std::unordered_multimap< std::string, std::string > & | shortNameIndex () const |
|
const ExternalFunc * | findExternal (const std::string &name, const Environment *env) const |
|
std::string | bareNameSource (const std::string &name) const |
| bool | isKnownLeafName (const std::string &name) const |
|
void | setVariable (const std::string &name, Value val) |
|
Value * | getVariable (const std::string &name) |
|
Value | eval (const std::string &code, bool suppressTopLevelDisplay=false) |
|
Value | eval (const std::string &code, Environment *scope, bool suppressTopLevelDisplay=false) |
|
Value | evalStatement (const ASTNode *stmt, std::shared_ptr< const std::string > src) |
|
void | rewriteVarHeadedCommands (ASTNode *root) |
|
EvalResult | evalSafe (const std::string &code) |
| void | setBackend (Backend b) |
| Backend | backend () const |
| void | addFusionRule (FusionRule rule) |
| const std::vector< FusionRule > & | fusionRules () const |
| void | setFusion (bool on) |
| bool | fusionEnabled () const |
| void | noteFusionHit () |
| size_t | fusionHits () const |
| void | resetFusionHits () |
|
void | setOutputFunc (OutputFunc f) |
| OutputFunc | outputFunc () const |
| void | setInputProvider (InputProvider p) |
| const InputProvider & | inputProvider () const |
|
void | setMaxRecursionDepth (int depth) |
|
std::vector< std::string > | workspaceVarNames () const |
|
std::string | workspaceJSON () const |
|
void | outputText (const std::string &s) |
| FigureManager & | figureManager () |
| const FigureManager & | figureManager () const |
| Environment & | workspaceEnv () |
| Environment & | constantsEnv () |
| Environment & | globalsEnv () |
|
bool | hasFunction (const std::string &name) const |
|
bool | hasUserFunction (const std::string &name) const |
|
bool | hasExternalFunction (const std::string &name) const |
|
bool | hasCallableName (const std::string &name) const |
|
Value | callFunctionHandle (const Value &handle, Span< const Value > args, Environment *env=nullptr) |
|
std::vector< Value > | callFunctionHandleMulti (const Value &handle, Span< const Value > args, size_t nout, Environment *env=nullptr) |
|
const UserFunction * | lookupUserFunction (const std::string &name, const Environment *env) |
|
const UserFunction * | lookupUserFunctionLocal (const std::string &name) const |
|
void | clearUserFunctions () |
|
void | adoptUserFunction (const std::string &name, UserFunction uf, bool scriptScope=false) |
|
void | addPath (const std::string &dir) |
|
void | rmPath (const std::string &dir) |
| const std::vector< std::string > & | path () const |
|
void | rehashMFiles () |
|
void | refreshStaleMFiles () |
|
void | reloadEvictedClassBases_ (const std::vector< std::string > &bases) |
|
void | beginScript (const ASTNode *ast) |
|
void | endScript () |
|
void | promoteScriptLocalsToWorkspace () |
| DebugFacade | debug () |
|
void | reinstallConstants () |
|
void | registerConstant (const std::string &name, Value val) |
|
bool | isReservedName (const std::string &name) const |
| void | setTicTimer (TimePoint tp) |
| TimePoint | ticTimer () const |
| bool | ticWasCalled () const |
|
bool | isInsideFunctionCall () const |
|
Environment * | callerEnv (int n=0) |
|
int | callerDepth () const |
|
void | assignToCaller (int n, const std::string &name, Value val) |
|
std::string | inputName (int k) |
|
void | registerVirtualFS (std::unique_ptr< VirtualFS > fs) |
|
VirtualFS * | findVirtualFS (const std::string &name) const |
|
void | pushScriptOrigin (const std::string &fsName) |
|
void | pushScriptOrigin (const std::string &fsName, const std::string &scriptDir) |
|
void | popScriptOrigin () |
|
const std::string * | currentScriptOrigin () const |
|
const std::string * | currentScriptDir () const |
| const std::string & | cwd () const |
| void | setCwd (const std::string &p) |
|
ResolvedPath | resolvePath (const std::string &userPath) const |
| FsContext & | fsContext () noexcept |
| const FsContext & | fsContext () const noexcept |
| ops::RngContext & | rng () noexcept |
| const ops::RngContext & | rng () const noexcept |
| int | openFile (const std::string &userPath, const std::string &mode) |
| bool | closeFile (int fid) |
| void | closeAllFiles () |
| OpenFile * | findFile (int fid) |
| std::vector< int > | openFileIds () const |
| const std::string & | lastFopenError () const |
| void | markClearAll () |
| Compiler * | compilerPtr () |