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

def __eq__ (self, other)
 
def __init__
 
def __ne__ (self, other)
 
def __repr__ (self)
 
def instantiated_name (self)
 
def qualified_name (self)
 
def to_cpp (self)
 

Static Public Member Functions

def from_parse_result
 

Public Attributes

 instantiations
 
 name
 
 namespaces
 

Static Public Attributes

 instantiation_name_rule
 
 namespaces_name_rule
 
 rule
 

Detailed Description

Generic type which can be either a basic type or a class type,
similar to C++'s `typename` aka a qualified dependent type.
Contains type name with 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 23 of file type.py.

Constructor & Destructor Documentation

def gtwrap.interface_parser.type.Typename.__init__ (   self,
  t 
)

Definition at line 50 of file type.py.

Member Function Documentation

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

Definition at line 99 of file type.py.

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

Definition at line 105 of file type.py.

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

Definition at line 71 of file type.py.

def gtwrap.interface_parser.type.Typename.from_parse_result (   parse_result)
static

Definition at line 67 of file type.py.

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

Definition at line 74 of file type.py.

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

Definition at line 81 of file type.py.

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

Definition at line 85 of file type.py.

Member Data Documentation

gtwrap.interface_parser.type.Typename.instantiation_name_rule
static

Definition at line 44 of file type.py.

gtwrap.interface_parser.type.Typename.instantiations

Definition at line 57 of file type.py.

gtwrap.interface_parser.type.Typename.name

Definition at line 52 of file type.py.

gtwrap.interface_parser.type.Typename.namespaces

Definition at line 53 of file type.py.

gtwrap.interface_parser.type.Typename.namespaces_name_rule
static

Definition at line 43 of file type.py.

gtwrap.interface_parser.type.Typename.rule
static

Definition at line 45 of file type.py.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:10