This commit is contained in:
@@ -9,18 +9,18 @@ using namespace Porygon::Binder;
|
||||
|
||||
namespace Porygon::Evaluation {
|
||||
class EvaluationScope {
|
||||
map<Utilities::HashedString, shared_ptr<EvalValue>> *_scriptScope;
|
||||
map<uint64_t, shared_ptr<EvalValue>> _localScope;
|
||||
map<Utilities::HashedString, shared_ptr<const EvalValue>> *_scriptScope;
|
||||
map<uint64_t, shared_ptr<const EvalValue>> _localScope;
|
||||
public:
|
||||
explicit EvaluationScope(map<Utilities::HashedString, shared_ptr<EvalValue>> *scriptVariables, int deepestScope);
|
||||
explicit EvaluationScope(map<Utilities::HashedString, shared_ptr<const EvalValue>> *scriptVariables);
|
||||
|
||||
~EvaluationScope() = default;
|
||||
|
||||
void CreateVariable(const BoundVariableKey *key, const shared_ptr<EvalValue> &value);
|
||||
void CreateVariable(const BoundVariableKey *key, const shared_ptr<const EvalValue>&value);
|
||||
|
||||
void SetVariable(const BoundVariableKey *key, const shared_ptr<EvalValue> &value);
|
||||
void SetVariable(const BoundVariableKey *key, const shared_ptr<const EvalValue> &value);
|
||||
|
||||
shared_ptr<EvalValue> GetVariable(const BoundVariableKey *key);
|
||||
shared_ptr<const EvalValue> GetVariable(const BoundVariableKey *key);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user