Design Patterns
program_node_interface.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 STRUCTURAL_FACADE_PROGRAM_NODE_INTERFACE_H_
7 #define STRUCTURAL_FACADE_PROGRAM_NODE_INTERFACE_H_
8 
10 
11 namespace structural
12 {
13 namespace facade
14 {
16 {
17  public:
18  virtual ~ProgramNodeInterface() { }
19 
20  virtual void GetSourcePosition(int& line, int& index) = 0;
21  virtual void Add(ProgramNodeInterface*) = 0;
22  virtual void Remove(ProgramNodeInterface*) = 0;
23 
24  virtual void Traverse(CodeGeneratorInterface&) = 0;
25 };
26 }
27 }
28 
29 #endif
30 
virtual void Remove(ProgramNodeInterface *)=0
Definition: shape_interface.h:11
virtual ~ProgramNodeInterface()
Definition: program_node_interface.h:18
virtual void GetSourcePosition(int &line, int &index)=0
Definition: code_generator_interface.h:17
Definition: program_node_interface.h:15
virtual void Add(ProgramNodeInterface *)=0
virtual void Traverse(CodeGeneratorInterface &)=0