Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
gtwrap.interface_parser.function.ReturnType Class Reference

Public Member Functions

def __init__ (self, Union[Type, TemplatedType] type1, Type type2)
 
str __repr__ (self)
 
bool is_void (self)
 
str to_cpp (self)
 

Public Attributes

 type1
 
 type2
 

Static Public Attributes

 optional_std
 
 rule
 

Static Private Attributes

 _pair
 

Detailed Description

Rule to parse the return type.

The return type can either be a single type or a pair such as <type1, type2>.

Definition at line 103 of file interface_parser/function.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.function.ReturnType.__init__ (   self,
Union[Type, TemplatedType type1,
Type  type2 
)

Definition at line 123 of file interface_parser/function.py.

Member Function Documentation

◆ __repr__()

str gtwrap.interface_parser.function.ReturnType.__repr__ (   self)

Definition at line 137 of file interface_parser/function.py.

◆ is_void()

bool gtwrap.interface_parser.function.ReturnType.is_void (   self)
Check if the return type is void.

Definition at line 131 of file interface_parser/function.py.

◆ to_cpp()

str gtwrap.interface_parser.function.ReturnType.to_cpp (   self)
Generate the C++ code for wrapping.

If there are two return types, we return a pair<>,
otherwise we return the regular return type.

Definition at line 141 of file interface_parser/function.py.

Member Data Documentation

◆ _pair

gtwrap.interface_parser.function.ReturnType._pair
staticprivate

Definition at line 111 of file interface_parser/function.py.

◆ optional_std

gtwrap.interface_parser.function.ReturnType.optional_std
static

Definition at line 110 of file interface_parser/function.py.

◆ rule

gtwrap.interface_parser.function.ReturnType.rule
static

Definition at line 119 of file interface_parser/function.py.

◆ type1

gtwrap.interface_parser.function.ReturnType.type1

Definition at line 125 of file interface_parser/function.py.

◆ type2

gtwrap.interface_parser.function.ReturnType.type2

Definition at line 126 of file interface_parser/function.py.


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


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