Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.type.Typename Class Reference

Public Member Functions

bool __eq__ (self, other)
 
def __init__ (self, ParseResults t, Sequence[ParseResults] instantiations=())
 
bool __ne__ (self, other)
 
str __repr__ (self)
 
str instantiated_name (self)
 
def qualified_name (self)
 
str to_cpp (self)
 

Static Public Member Functions

def from_parse_result (Union[str, list] parse_result)
 

Public Attributes

 instantiations
 
 name
 
 namespaces
 

Static Public Attributes

 instantiation_name_rule
 
 namespaces_name_rule
 
 rule
 

Detailed Description

Class which holds a type's name, full namespace, and template arguments.

E.g.
```
gtsam::PinholeCamera<gtsam::Cal3S2>
```

will give the name as `PinholeCamera`, namespace as `gtsam`,
and template instantiations as `[gtsam::Cal3S2]`.

Args:
    namespaces_and_name: A list representing the namespaces of the type
        with the type being the last element.
    instantiations: Template parameters to the type.

Definition at line 24 of file type.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.type.Typename.__init__ (   self,
ParseResults  t,
Sequence[ParseResults]   instantiations = () 
)

Definition at line 48 of file type.py.

Member Function Documentation

◆ __eq__()

bool gtwrap.interface_parser.type.Typename.__eq__ (   self,
  other 
)

Definition at line 101 of file type.py.

◆ __ne__()

bool gtwrap.interface_parser.type.Typename.__ne__ (   self,
  other 
)

Definition at line 107 of file type.py.

◆ __repr__()

str gtwrap.interface_parser.type.Typename.__repr__ (   self)

Definition at line 74 of file type.py.

◆ from_parse_result()

def gtwrap.interface_parser.type.Typename.from_parse_result ( Union[str, list parse_result)
static
Unpack the parsed result to get the Typename instance.

Definition at line 70 of file type.py.

◆ instantiated_name()

str gtwrap.interface_parser.type.Typename.instantiated_name (   self)
Get the instantiated name of the type.

Definition at line 77 of file type.py.

◆ qualified_name()

def gtwrap.interface_parser.type.Typename.qualified_name (   self)
Return the fully qualified name, e.g. `gtsam::internal::PoseKey`.

Definition at line 84 of file type.py.

◆ to_cpp()

str gtwrap.interface_parser.type.Typename.to_cpp (   self)
Generate the C++ code for wrapping.

Definition at line 88 of file type.py.

Member Data Documentation

◆ instantiation_name_rule

gtwrap.interface_parser.type.Typename.instantiation_name_rule
static

Definition at line 43 of file type.py.

◆ instantiations

gtwrap.interface_parser.type.Typename.instantiations

Definition at line 58 of file type.py.

◆ name

gtwrap.interface_parser.type.Typename.name

Definition at line 49 of file type.py.

◆ namespaces

gtwrap.interface_parser.type.Typename.namespaces

Definition at line 50 of file type.py.

◆ namespaces_name_rule

gtwrap.interface_parser.type.Typename.namespaces_name_rule
static

Definition at line 42 of file type.py.

◆ rule

gtwrap.interface_parser.type.Typename.rule
static

Definition at line 44 of file type.py.


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


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:14:33