Files Classes Functions Hierarchy
#include <visitorprint.h>
Public Member Functions | |
| visitorPrint (T arg_) | |
| Capture the type which is used to in the template part of the simulated virtual function. | |
| void | visit (ElementA &w) const |
| Execute templated virtual funtion print on data type ElementA. | |
| void | visit (ElementB &w) const |
| Execute templated virtual funtion print on data type ElementB. | |
Definition at line 11 of file visitorprint.h.
| visitorPrint< T >::visitorPrint | ( | T | arg_ | ) | [inline] |
Capture the type which is used to in the template part of the simulated virtual function.
Definition at line 19 of file visitorprint.h.
| void visitorPrint< T >::visit | ( | ElementB & | w | ) | const [inline, virtual] |
Execute templated virtual funtion print on data type ElementB.
Reimplemented from Visitor.
Definition at line 24 of file visitorprint.h.
References ElementB::print().
00024 { w.print(arg); }
| void visitorPrint< T >::visit | ( | ElementA & | w | ) | const [inline, virtual] |
Execute templated virtual funtion print on data type ElementA.
Reimplemented from Visitor.
Definition at line 22 of file visitorprint.h.
References ElementA::print().
00022 { w.print(arg); }
1.5.8