proj home

Files   Classes   Functions   Hierarchy  

visitorprint2.h

Go to the documentation of this file.
00001 #ifndef VISITORPRINT2_H
00002 #define VISITORPRINT2_H
00003 
00004 #include <visitor.h>
00005 
00009 template<typename T>
00010 class visitorPrint2 : public Visitor
00011 {
00012   T arg;
00013   visitorPrint2() { assert(false); }
00014 public:
00015 
00018   visitorPrint2(T arg_) : arg(arg_) {}
00019   
00021   void visit(ElementA & w) const { w.print2(arg); }
00023   void visit(ElementB & w) const { w.print2(arg); }
00024 
00025 };
00026 
00027 
00028 
00029 #endif
00030 
00031 
00032 
00033 

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