Files Classes Functions Hierarchy
#include <visitorprint2.h>
Public Member Functions | |
| visitorPrint2 (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 10 of file visitorprint2.h.
| visitorPrint2< T >::visitorPrint2 | ( | T | arg_ | ) | [inline] |
Capture the type which is used to in the template part of the simulated virtual function.
Definition at line 18 of file visitorprint2.h.
| void visitorPrint2< T >::visit | ( | ElementB & | w | ) | const [inline, virtual] |
Execute templated virtual funtion print on data type ElementB.
Reimplemented from Visitor.
Definition at line 23 of file visitorprint2.h.
References ElementB::print2().
00023 { w.print2(arg); }
| void visitorPrint2< T >::visit | ( | ElementA & | w | ) | const [inline, virtual] |
Execute templated virtual funtion print on data type ElementA.
Reimplemented from Visitor.
Definition at line 21 of file visitorprint2.h.
References ElementA::print2().
00021 { w.print2(arg); }
1.5.8