A generic class for visitors. More...
#include <Visitor.h>
Public Types | |
typedef R | ReturnType |
Public Member Functions | |
virtual ReturnType | visit (T &visited)=0 |
Pure virtual function that visitors must implement in order to visit some other object of type T. More... | |
A generic class for visitors.
This class defines a pure virtual function for visiting an object of type T.
This function may return a value (see the R type in template declaration).
Requirements on types:
typedef R te::common::Visitor< T, R >::ReturnType |
|
pure virtual |
Pure virtual function that visitors must implement in order to visit some other object of type T.
visited | The object to be visited. |