Public Member Functions | Public Attributes | List of all members
gtwrap.template_instantiator.helpers.InstantiationHelper Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.template_instantiator.helpers.InstantiationHelper.__init__ (   self,
InstantiatedMembers  instantiation_type 
)

Definition at line 231 of file helpers.py.

Member Function Documentation

◆ instantiate()

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.

◆ multilevel_instantiation()

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.

Member Data Documentation

◆ instantiation_type

gtwrap.template_instantiator.helpers.InstantiationHelper.instantiation_type

Definition at line 232 of file helpers.py.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:25:00