proj home

Files   Classes   Functions   Hierarchy  

visitor.h

Go to the documentation of this file.
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 

Generated on Fri Mar 4 00:49:31 2011 for Chelton Evans Source by  doxygen 1.5.8