Repository - GerdHirsch/Cpp-VisitorFrameworkCyclicAcyclic GitHub Wiki
The Repository is the "Facade" (GoF) to the different templates in the namespaces Cyclic and Acyclic.
It is the single point of decision (SPoD) to choose the properties you want for your implementation.
The technique used is a template as a Repository of properties which provide an unique and easy to use API to the different templates in the namespaces Cyclic
and Acyclic
.
The Repository
generates basetypes for
Visitors
and
Visitables
to inherit from,
and ready to use
Adapters
for NonVisitable types.
For this purpose it needs to know the types to be visited and their properties, storing it and forward the properties to its inner templates.
An example of the usage and SPoD ist here and a description of the implementation is here.