The root of all hierarchies that can be visited. More...
#include <BaseVisitable.h>
Public Types | |
typedef R | ReturnType |
typedef T | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Protected Member Functions | |
virtual | ~BaseVisitable () |
Destructor. More... | |
The root of all hierarchies that can be visited.
This class defines a pure virtual function that subclasses must implement in order to be visited.
This function may return values (see the R type in template declaration).
Requirements on types:
Definition at line 53 of file BaseVisitable.h.
typedef R te::common::BaseVisitable< T, R >::ReturnType |
Definition at line 58 of file BaseVisitable.h.
typedef T te::common::BaseVisitable< T, R >::VisitorType |
Definition at line 57 of file BaseVisitable.h.
|
inlineprotectedvirtual |
Destructor.
Definition at line 72 of file BaseVisitable.h.
|
pure virtual |
It call the visit method from the guest object.
guest | The guest or visitor. |