Files Classes Functions Hierarchy
00001 #ifndef VISITOR_H 00002 #define VISITOR_H 00003 00004 #include <cassert> 00005 00006 class ElementA; 00007 class ElementB; 00008 00020 class Visitor 00021 { 00022 public: 00023 00025 virtual void visit(ElementA& a) const {}; 00027 virtual void visit(ElementB& b) const {}; 00028 00029 virtual ~Visitor() {} 00030 }; 00031 00032 00033 #endif 00034 00035
1.5.8