Application - GerdHirsch/Cpp-VisitorFrameworkCyclicAcyclic GitHub Wiki

next

The Application below defines the aliases Visitable and Visitables, defines some objects and runs the visitor against the visitables in the container visitables.

using Visitable = std::shared_ptr<Repository::Visitable>;
using Visitables = std::vector<Visitable>;

void demoSwitchCyclicAcyclic(){
    Visitables visitables;

    DemoVisitor visitor;

    visitables.push_back(Visitable(new E1));
    ...
    visitables.push_back(Visitable(new E3));

    demoRunVisitor(visitor, visitables);
}

see also DemoSwitchCyclicAcyclic.cpp

see also demoRunVisitor

next

⚠️ **GitHub.com Fallback** ⚠️