
Polacastify
As many of the polacanthus project are written in C++, and try to use least priviledge design using simple
patterns of function objects and cast operators, the process of enabling these patterns to be used without
to much extra coding has been moved to a preprocessing script. This preprocessing script takes a set of C++
files containing minimal interfaces, and from these creates header
and implementation files needed for the definition of non dynamic castable facets and function objects.
Polacastify implements the folowing 3 cast/facet implementations:
- Casting a class to a facet defined by one of its interfaces.
- Casting a facet to a sub facet function object defined by one of its methods.
- Casting a sub facet function object with maskable argument to a masked sub facet function object.
For more information on the polacastify implementation please have a look at the folowing document: