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 | |
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.
def gtwrap.interface_parser.function.ReturnType.__init__ | ( | self, | |
Union[Type, TemplatedType] | type1, | ||
Type | type2 | ||
) |
Definition at line 123 of file interface_parser/function.py.
str gtwrap.interface_parser.function.ReturnType.__repr__ | ( | self | ) |
Definition at line 137 of file interface_parser/function.py.
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.
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.
|
staticprivate |
Definition at line 111 of file interface_parser/function.py.
|
static |
Definition at line 110 of file interface_parser/function.py.
|
static |
Definition at line 119 of file interface_parser/function.py.
gtwrap.interface_parser.function.ReturnType.type1 |
Definition at line 125 of file interface_parser/function.py.
gtwrap.interface_parser.function.ReturnType.type2 |
Definition at line 126 of file interface_parser/function.py.