Example #1
0
void apply(const Visitable& v, const Argument& arg)
{
    VisitorWithArgument t(arg);

    v.accept(t);

}
Example #2
0
void apply(const Visitable& v, const Argument1& arg1, const Argument2& arg2)
{
    VisitorWith2Arguments t(arg1, arg2);

    v.accept(t);

}
Example #3
0
void apply(const Visitable& v)
{
    static Visitor t;

    v.accept(t);

}
Example #4
0
typename GeneralQuestion::type ask(const Visitable& v, const Argument& arg)
{
    GeneralQuestion t(arg);

    v.accept(t);

    return t.answer;

}
Example #5
0
typename GeneralQuestion::type ask(const Visitable& v)
{
    GeneralQuestion t;

    v.accept(t);

    return t.answer;

}