Design Patterns
interpreter_context.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_INTERPRETER_INTERPRETER_CONTEXT_H_
7 #define OPERATIONAL_INTERPRETER_INTERPRETER_CONTEXT_H_
8 
10 
11 #include <map>
12 
13 namespace operational
14 {
15 namespace interpreter
16 {
18 {
19  public:
21 
22  virtual void Assign(VariableExpInterface* expression, bool) override;
23  virtual bool Lookup(const std::string& name) const override;
24 
25  private:
26  std::map<std::string, bool>* variables_;
27 };
28 }
29 }
30 
31 #endif
32 
InterpreterContext()
Definition: interpreter_context.cc:12
virtual bool Lookup(const std::string &name) const override
Definition: interpreter_context.cc:17
Definition: application.cc:10
virtual void Assign(VariableExpInterface *expression, bool) override
Definition: interpreter_context.cc:22
Definition: interpreter_context_interface.h:17
Definition: interpreter_context.h:17
Definition: variable_exp_interface.h:15