Register transformation descriptor to transform SourceNode with Transformation.
The tree transformation engine expects this function to return a struct describing how to perform the Transformation for the type SourceNode, which has ImplementationTag Tag. This function has to be specialized for every combination of Transformation and Tag that the transformation engine should support.
- Note
- The arguments are given as pointers to avoid problems with incomplete types.
-
The specialization does not have to placed in the namespace Dune::TypeTree, it can simply reside in the same namespace as either the SourceNode or the Tag.
-
This function will never be really called, the engine only extracts the return type. It is thus not necessary to actually implement the function, it is sufficient to declare it.
- Template Parameters
-
SourceNode | The type of the node in the source tree that should be transformed. |
Transformation | The type of the transformation to apply to the source node. |
Tag | The implementation tag of the source node. |