einstein/cpp-source/visitor.h

19 lines
237 B
C
Raw Normal View History

2013-09-21 21:05:25 +00:00
#ifndef __VISITOR_H__
#define __VISITOR_H__
/// Abstract visitor
template <typename T>
class Visitor
{
public:
virtual ~Visitor() { };
/// Called at every visit
virtual void onVisit(T &t) = 0;
};
#endif