| Public Member Functions | |
| def | __init__ (self, InstantiatedMembers instantiation_type) | 
| def | instantiate (self, List[InstantiatedMembers] instantiated_methods, ClassMembers method, Sequence[str] typenames, Sequence[parser.Typename] class_instantiations, Sequence[parser.Typename] method_instantiations, 'InstantiatedClass' parent) | 
| def | multilevel_instantiation (self, Sequence[ClassMembers] methods_list, Sequence[str] typenames, 'InstantiatedClass' parent) | 
| Public Attributes | |
| instantiation_type | |
Helper class for instantiation templates.
Requires that `instantiation_type` defines a class method called
`construct` to generate the appropriate object type.
Signature for `construct` should be
```
    construct(method,
              typenames,
              class_instantiations,
              method_instantiations,
              instantiated_args,
              parent=parent)
```
 
Definition at line 215 of file helpers.py.
| def gtwrap.template_instantiator.helpers.InstantiationHelper.__init__ | ( | self, | |
| InstantiatedMembers | instantiation_type | ||
| ) | 
Definition at line 231 of file helpers.py.
| def gtwrap.template_instantiator.helpers.InstantiationHelper.instantiate | ( | self, | |
| List[InstantiatedMembers] | instantiated_methods, | ||
| ClassMembers | method, | ||
| Sequence[str] | typenames, | ||
| Sequence[parser.Typename] | class_instantiations, | ||
| Sequence[parser.Typename] | method_instantiations, | ||
| 'InstantiatedClass' | parent | ||
| ) | 
Instantiate both the class and method level templates.
Definition at line 234 of file helpers.py.
| def gtwrap.template_instantiator.helpers.InstantiationHelper.multilevel_instantiation | ( | self, | |
| Sequence[ClassMembers] | methods_list, | ||
| Sequence[str] | typenames, | ||
| 'InstantiatedClass' | parent | ||
| ) | 
Helper to instantiate methods at both the class and method level.
Args:
    methods_list: The list of methods in the class to instantiated.
    typenames: List of class level template parameters, e.g. ['T'].
    parent: The instantiated class to which `methods_list` belongs.
 
Definition at line 258 of file helpers.py.
| gtwrap.template_instantiator.helpers.InstantiationHelper.instantiation_type | 
Definition at line 232 of file helpers.py.