C:/Projets/hexamonkey/core/interpreter/scope/constscope.h
Go to the documentation of this file.
00001 #ifndef CONSTSCOPE_H
00002 #define CONSTSCOPE_H
00003 
00004 #include "core/interpreter/scope/scope.h"
00005 
00009 class ConstScope : public Scope
00010 {
00011 public:
00012     ConstScope(Ptr scopePtr);
00013 
00014 protected:
00015     Variable doGet(const Variant &key, bool modifiable) override;
00016     Ptr doGetScope(const Variant &key) override;
00017     Variable doDeclare(const Variant &key, const Variant &initialValue) override;
00018     Variable getValue(bool) override;
00019 
00020 private:
00021     Ptr _scopePtr;
00022     Scope& _scope;
00023 };
00024 
00025 #endif // CONSTSCOPE_H