Public Member Functions | Public Attributes | List of all members
gtwrap.template_instantiator.classes.InstantiatedClass Class Reference
Inheritance diagram for gtwrap.template_instantiator.classes.InstantiatedClass:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, parser.Class original, instantiations=(), new_name='')
 
def __repr__ (self)
 
def cpp_typename (self)
 
def instantiate_ctors (self, typenames)
 
def instantiate_methods (self, typenames)
 
def instantiate_operators (self, typenames)
 
def instantiate_parent_class (self, typenames)
 
def instantiate_properties (self, typenames)
 
def instantiate_static_methods (self, typenames)
 
def to_cpp (self)
 

Public Attributes

 ctors
 
 dunder_methods
 
 enums
 
 instantiations
 
 is_virtual
 
 methods
 
 name
 
 operators
 
 original
 
 parent
 
 parent_class
 
 properties
 
 static_methods
 
 template
 

Detailed Description

Instantiate the class defined in the interface file.

Definition at line 14 of file template_instantiator/classes.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.template_instantiator.classes.InstantiatedClass.__init__ (   self,
parser.Class  original,
  instantiations = (),
  new_name = '' 
)
Template <T, U>
Instantiations: [T1, U1]

Definition at line 19 of file template_instantiator/classes.py.

Member Function Documentation

◆ __repr__()

def gtwrap.template_instantiator.classes.InstantiatedClass.__repr__ (   self)

Definition at line 78 of file template_instantiator/classes.py.

◆ cpp_typename()

def gtwrap.template_instantiator.classes.InstantiatedClass.cpp_typename (   self)
Return a parser.Typename including namespaces and cpp name of this
class.

Definition at line 217 of file template_instantiator/classes.py.

◆ instantiate_ctors()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_ctors (   self,
  typenames 
)
Instantiate the class constructors.

Args:
    typenames: List of template types to instantiate.

Return: List of constructors instantiated with provided template args.

Definition at line 108 of file template_instantiator/classes.py.

◆ instantiate_methods()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_methods (   self,
  typenames 
)
Instantiate regular methods in the class.

Args:
    typenames: List of template types to instantiate.

Return: List of methods instantiated with provided template args.

Definition at line 143 of file template_instantiator/classes.py.

◆ instantiate_operators()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_operators (   self,
  typenames 
)
Instantiate the class-level template in the operator overload.

Args:
    typenames: List of template types to instantiate.

Return: List of methods instantiated with provided template args on the class.

Definition at line 161 of file template_instantiator/classes.py.

◆ instantiate_parent_class()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_parent_class (   self,
  typenames 
)
Instantiate the inherited parent names.

Args:
    typenames: List of template types to instantiate.

Return: List of constructors instantiated with provided template args.

Definition at line 91 of file template_instantiator/classes.py.

◆ instantiate_properties()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_properties (   self,
  typenames 
)
Instantiate the class properties.

Args:
    typenames: List of template types to instantiate.

Return: List of properties instantiated with provided template args.

Definition at line 194 of file template_instantiator/classes.py.

◆ instantiate_static_methods()

def gtwrap.template_instantiator.classes.InstantiatedClass.instantiate_static_methods (   self,
  typenames 
)
Instantiate static methods in the class.

Args:
    typenames: List of template types to instantiate.

Return: List of static methods instantiated with provided template args.

Definition at line 126 of file template_instantiator/classes.py.

◆ to_cpp()

def gtwrap.template_instantiator.classes.InstantiatedClass.to_cpp (   self)
Generate the C++ code for wrapping.

Definition at line 232 of file template_instantiator/classes.py.

Member Data Documentation

◆ ctors

gtwrap.template_instantiator.classes.InstantiatedClass.ctors

Definition at line 48 of file template_instantiator/classes.py.

◆ dunder_methods

gtwrap.template_instantiator.classes.InstantiatedClass.dunder_methods

Definition at line 61 of file template_instantiator/classes.py.

◆ enums

gtwrap.template_instantiator.classes.InstantiatedClass.enums

Definition at line 56 of file template_instantiator/classes.py.

◆ instantiations

gtwrap.template_instantiator.classes.InstantiatedClass.instantiations

Definition at line 25 of file template_instantiator/classes.py.

◆ is_virtual

gtwrap.template_instantiator.classes.InstantiatedClass.is_virtual

Definition at line 28 of file template_instantiator/classes.py.

◆ methods

gtwrap.template_instantiator.classes.InstantiatedClass.methods

Definition at line 59 of file template_instantiator/classes.py.

◆ name

gtwrap.template_instantiator.classes.InstantiatedClass.name

Definition at line 38 of file template_instantiator/classes.py.

◆ operators

gtwrap.template_instantiator.classes.InstantiatedClass.operators

Definition at line 53 of file template_instantiator/classes.py.

◆ original

gtwrap.template_instantiator.classes.InstantiatedClass.original

Definition at line 24 of file template_instantiator/classes.py.

◆ parent

gtwrap.template_instantiator.classes.InstantiatedClass.parent

Definition at line 29 of file template_instantiator/classes.py.

◆ parent_class

gtwrap.template_instantiator.classes.InstantiatedClass.parent_class

Definition at line 47 of file template_instantiator/classes.py.

◆ properties

gtwrap.template_instantiator.classes.InstantiatedClass.properties

Definition at line 50 of file template_instantiator/classes.py.

◆ static_methods

gtwrap.template_instantiator.classes.InstantiatedClass.static_methods

Definition at line 49 of file template_instantiator/classes.py.

◆ template

gtwrap.template_instantiator.classes.InstantiatedClass.template

Definition at line 27 of file template_instantiator/classes.py.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:45