Application - GerdHirsch/Cpp-VisitorFrameworkCyclicAcyclic GitHub Wiki
The Application below defines the aliases Visitable
and
Visitables
,
defines some objects and runs the
visitor
against the
visitable
s
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